mirror of
https://github.com/beetbox/beets.git
synced 2026-11-30 23:31:23 -06:00
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.