Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Database:"Load to RAM" interferes with filtering by filename/directory
« previous next »
  • Print
Pages: [1]

Author Topic: Database:"Load to RAM" interferes with filtering by filename/directory  (Read 713 times)

Offline chris_s

  • Member
  • *
  • Posts: 86
Database:"Load to RAM" interferes with filtering by filename/directory
« on: March 10, 2019, 03:36:20 PM »
I have an entry in my tagnavi.config that looks like this:

Code: [Select]
"xyz" -> artist ? filename ~ "/some directory" -> album -> title = "fmt_title"

It uses a filter so that only tracks from a certain directory are returned. This works perfectly fine as long as "Load to RAM" is not enabled. When I enable it though, as soon as Rockbox has finished loading the database to RAM after a restart, this entry won't return any results anymore.

Anybody know what's going on there?
Logged

Offline chris_s

  • Member
  • *
  • Posts: 86
Re: Database:"Load to RAM" interferes with filtering by filename/directory
« Reply #1 on: March 12, 2019, 07:23:48 AM »
Looks like this can be fixed by turning off the directory cache.
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 537
Re: Database:"Load to RAM" interferes with filtering by filename/directory
« Reply #2 on: March 12, 2019, 08:10:37 AM »
Sounds like a bug
Logged

Offline chris_s

  • Member
  • *
  • Posts: 86
Re: Database:"Load to RAM" interferes with filtering by filename/directory
« Reply #3 on: March 12, 2019, 09:36:15 AM »
yeah, apparently. Had a quick peek at tagcache.c which seems a bit daunting at first glance.

For my personal usage, I think I will leave the directory cache disabled as I only ever use the database. Wasn't really aware that it had been enabled in the first place. I also just realized that either loading the DB to RAM or building the dir cache each, individually, just takes a few seconds after booting, but having both enabled at the same time results in a ~40 second waiting time during which the database is extremely slow to use. This means that turning off the dir cache hugely improves the user experience in my case and is something I should have done much earlier.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Database:"Load to RAM" interferes with filtering by filename/directory
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.064 seconds with 15 queries.