heikkilevanto / beertracker

Simple script to track the beers I drink
GNU General Public License v2.0
2 stars 1 forks source link

Split the data file #309

Open heikkilevanto opened 2 months ago

heikkilevanto commented 2 months ago

At some point it will be too much to load the whole file every time. Split it into one file per year, and read only as much as needed. Normally this year and the previous would be sufficient.

Might need a bit of rethinking of the way we limit the size of various lists

heikkilevanto commented 1 week ago

Actually, I can afford to read quite big files. It is the parsing that takes time, see #317. Just avoiding unnecessary parsing will help a lot.