summaryrefslogtreecommitdiff
path: root/src/tangara/database/database.cpp
AgeCommit message (Collapse)Author
2024-09-24Adds audiobook index to available indexesailurux
2024-09-19Include leading slash in media type pathsjacqueline
2024-09-19Introduce a MediaType for each track and indexjacqueline
Initially set based on filepath, or by genre if the filepath doesn't match one of our presets
2024-09-12WIP: Add last_position field to track data and start on implementationailurux
2024-09-06Look for music in "/Music", with the root dir as a fallbackjacqueline
2024-08-12Shard searching for new tracks across multiple tasksjacqueline
This also has the effect of breaking up the enormous 'updateIndexes' method into one call per file, which means database updates also no longer monopolise a single background task for their entire duration. avg. time per new file is now <140ms for a completely fresh database, which is pretty good i think!
2024-08-12Make FileGatherer shaped more like a normal iteratorjacqueline
2024-08-12Batch up the db operations associated with adding new tracksjacqueline
This is ostensibly yet another 'prepare for multithreaded updates' commit, however it does actually save us another 60(!!) odd milliseconds per track.
2024-08-12Derive the next track id from stored track data, instead of tracking it ↵jacqueline
explicitly This saves about 1ms per new track right now, but more importantly means that minting a new track id is now a single atomic operation, rather than being its own database write. This is a useful property that will come in handy in a few commits time.
2024-08-12Use one MMU page per leveldb write bufferjacqueline
Also drop some of the other tuning changes, since they don't seem to impact much.
2024-07-11Break FatfsStreamFactory's dep on ServiceLocatorjacqueline
2024-06-04log db update time-per-trackjacqueline
2024-06-04no more acquire_spi :)jacqueline
2024-05-31Remove now redudantant 'Iterator.next()' care in TrackIteratorjacqueline
With Daniel's fix, this is no longer needed! Hooray!
2024-05-30Fix prev/next behaviour on database iteratorailurux
Fixes issue with apparent duplicated tracks in the infinite list
2024-05-02move driver includes into a subdir as welljacqueline
2024-05-02start moving include files into subdirsjacqueline
2024-05-02WIP merge cyclically dependent components into one big componentjacqueline