Šarūnas Nejus
27900f58fb
Prefer imports from modules that provide import aliases
2026-08-18 23:20:39 +01:00
Alok Saboo
17ffd18b77
playcount: batch all store() calls in a single transaction
...
Each song.store() was opening and committing its own SQLite transaction.
With thousands of unique tracks the WAL grows and each successive write
becomes slower. Wrapping the loop in a single transaction makes writes
O(1) per item instead of progressively slower.
2026-04-08 09:59:41 -04:00
Alok Saboo
8c5c89a844
playcount: log progress every 250 tracks during processing
2026-04-08 09:02:51 -04:00
Šarūnas Nejus
db7c753ebe
Update listenbrainz accordingly
2026-03-31 01:36:08 +01:00
Šarūnas Nejus
d7c9e268f9
Refactor process_tracks and add tests
2026-03-31 01:36:08 +01:00
Šarūnas Nejus
430c9db4e2
Create a function for processing a single track
2026-03-31 01:36:08 +01:00
Šarūnas Nejus
cc9d86fdcf
Add types
2026-03-31 01:36:08 +01:00
Šarūnas Nejus
985e0d2bdb
Import query classes explicitly
2026-03-31 01:36:08 +01:00
Šarūnas Nejus
2041d2e0e7
Move process_tracks to utils
2026-03-31 01:36:08 +01:00