Replies: 1 comment 2 replies
-
The progress reporting was added because the initial migration implementation was very slow. See #6367:
🤔 this is interesting - my library of a similar size took 2s to migrate - we considered running migrations separately, but decided to perform them automatically because the operation was assumed to be very quick, even for large libraries. Would you mind making a copy of your library, re-running this migration and measuring the time it takes to run? I want to understand why is it taking so long. $ sqlite3 <your-library-copy> "DELETE FROM migrations WHERE name == 'multi_genre_field'"
$ sqlite3 <your-library-copy> "UPDATE items SET genres = NULL"
$ sqlite3 <your-library-copy> "UPDATE albums SET genres = NULL"
$ time beet --library=<your-library-copy> help |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I vaguely remembered reading about the database migration in the release notes, though I only today needed to reach for
beetand was surprised that calling--helpstarted a migration:This isn't ideal when you're connected to a remote server over a flaky connection! It's unclear what would happen if interrupted -- with the progress reporting I'm assuming this wasn't an atomic operation. It took about 4-5 minutes to run in the end, after which I got the help I requested:
Ultimately this was a one and done, but for future migrations it would be nice to make running the migration an explicit action, e.g.
...or at least exclude no-op commands like
--helpfrom starting it.Beta Was this translation helpful? Give feedback.
All reactions