Random card transfers when changing deck structure
I discovered a persistent and hard-to-track bug a long time ago, and although I don’t know how to reproduce it consistently, I’ll describe the scenario in which it has appeared several times over the last 4 or 5 releases. I suspect it may also appear in the next release.
The core of the issue is that when I manipulate my decks, at some point some cards randomly get transferred into other decks for no clear reason.
Here’s what happened: I had a nested deck structure four levels deep, with the actual cards residing at the lowest level. The card types had automatic deck reposition enabled.
For my own reasons, I needed to add another level of hierarchy and move cards between decks.
I created the new decks in the root via the main window and then dragged them with the mouse to the desired position in the tree.
Next, I updated the automatic deck reposition settings to point to the new decks.
After that, I started transferring existing cards into the new decks. I opened the browser, sorted the cards by card type, selected the relevant entries, and assigned a new deck via the context menu.
But at some point, I noticed that, for example, some Infinitiv cards that I had already moved earlier were now showing up in Union. Not all of them. Just a seemingly random portion.
A year ago, when I first started using Anki, I thought I had made a mistake. But over the past year, as I refined my deck structure, I’ve encountered this behavior multiple times.
My database isn’t very large: around 2,200 notes and 9,500 cards in total. At the moment of the changes, there were no empty cards, and the database had passed validation successfully.
Perhaps the problem is somewhere in the indexing phase (if there is such a process), when I start a new move before the previous move is finished. Although the time to move from one sample to another is minutes. I am human after all.
Perhaps there is some sort of index overflow going on at some point. I don’t know…