Using Check Database for error (non-urgent question)

Hello! I was just wondering what Check Database does (specifically for fixing errors). It popped up in an error message (telling me to use Check Database) and someone replied to me in a forum telling me to use Check Database to fix an error, but I don’t know what it actually does. Can someone please explain to me if they can spare the time? Thank you!

Generally speaking, it ascertains that all kinds of constraints, that other parts of Anki rely on, are observed. A few examples:

  • Orphaned cards are deleted.
  • Missing decks and notetypes are recovered.
  • Broken UTF-8 is fixed.
  • The next position for new cards is updated.

Thank you!

1 Like