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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  will r15955 change to database metadata handling break non-dircache targets?
« previous next »
  • Print
Pages: [1]

Author Topic: will r15955 change to database metadata handling break non-dircache targets?  (Read 1021 times)

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
will r15955 change to database metadata handling break non-dircache targets?
« on: December 19, 2007, 03:57:27 AM »
Quote from: www.rockbox.org
Preserve song statistics when moving files or altering metadata. Conditions required to apply: song length must not change AND either filenames (with path) must match or two of the following tags matches: artist, album, title. IMPORTANT: Currently dircache enabled and DB loaded to RAM is required for reliable operation of this feature.

This sounds like a useful feature for me, as I tend to tweak metadata and also operate more than one target with slightly different directory structures that I would like to move database information between.

So what do I do on my Sansa e280, where I don't have the directory cache option?

I'm sure I read somewhere on the site, although I can't find it now, that the sansa does not have dircache because it's a flash memory player.

I believe the lack of it means that both database refresh on startup and browsing through the database are slow and/or clunky.

Is there a technical reason why dircache can't be implemented and, if not, is this change going to cause buggy database imports?
« Last Edit: December 19, 2007, 03:59:07 AM by bascule »
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline pondlife

  • Developer
  • Member
  • *
  • Posts: 248
Re: will r15955 change to database metadata handling break non-dircache targets?
« Reply #1 on: December 19, 2007, 04:49:30 AM »
I'd think the intention was that flash players don't need dircache as there's no major delay waiting for the disk to spin up.

Hopefully any code (e.g. in the database handling) that checks whether dircache is enabled also checks if it's a flash target, so as not to penalise users of such devices.

I'm not familiar with the database code myself, but I'm of the general opinion that we should avoid having such checks, so the outcome of an update would at least be consistent, even if it takes a stupid amount of time and battery on a non-dircached HD target.  Simple is good.

pondlife
Logged

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: will r15955 change to database metadata handling break non-dircache targets?
« Reply #2 on: December 19, 2007, 05:14:47 AM »
To my knowledge the reason for Sansas not having dircache is that they have multivolume and thus dircache size would vary, I think the e200 had dircache as long as it didn't support the microSD slot. Personally I don't see the necessity for dircache on flash devices though.

The problem is that some database features like for example "auto-update" rely somewhat on dircache. I've been told that "auto-update" would work without it (when I tried on my Ondio) and that it only would be slower - but: even a manual "update now" never worked reliably for me when trying with and without MMC. This dependency is a long standing issue and even though I don't care much about the database I'd rather like to see something done about that...  :-\
« Last Edit: December 19, 2007, 05:17:01 AM by pixelma »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  will r15955 change to database metadata handling break non-dircache targets?
 

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

Page created in 0.074 seconds with 15 queries.