mirror of
https://github.com/beetbox/beets.git
synced 2026-05-16 21:50:59 -04: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.