mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
Improve performance of invalid ID fix in DB check
Fixes https://forums.ankiweb.net/t/check-database-is-stuck-on-checking-history/31891
This commit is contained in:
parent
fc0bff4166
commit
9711044290
1 changed files with 2 additions and 1 deletions
|
@ -25,3 +25,4 @@ SELECT id,
|
||||||
) - 1 AS new_id
|
) - 1 AS new_id
|
||||||
FROM "{source_table}"
|
FROM "{source_table}"
|
||||||
WHERE id > "{max_valid_id}";
|
WHERE id > "{max_valid_id}";
|
||||||
|
CREATE INDEX invalid_ids_id_idx ON invalid_ids (id);
|
Loading…
Reference in a new issue