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
| | |-+  database refreshing
« previous next »
  • Print
Pages: 1 [2] 3

Author Topic: database refreshing  (Read 4960 times)

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: database refreshing
« Reply #15 on: September 12, 2008, 04:51:07 PM »
The icon in the upper corner represents ALL disk access. You might be seeing it for database scanning. Or for dircache scanning. Or because you're browsing and so it accesses the disk, or music is buffering, etc...
Logged

Offline pizza4me

  • Member
  • *
  • Posts: 25
Re: database refreshing
« Reply #16 on: September 12, 2008, 05:11:43 PM »
yeah, I do understand the icon function.  I don't understand what it's doing when it says "committing database" on startup.

The database is very much not completely updated when "committing database" hits 9/9.
« Last Edit: September 12, 2008, 05:13:18 PM by pizza4me »
Logged

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: database refreshing
« Reply #17 on: September 12, 2008, 05:22:31 PM »
The answer probably lies in here:

http://svn.rockbox.org/viewvc.cgi/trunk/apps/tagcache.c.

Or you could pop into IRC and look for Slasheri (spelling?).
Logged

Offline pizza4me

  • Member
  • *
  • Posts: 25
Re: database refreshing
« Reply #18 on: September 12, 2008, 05:43:33 PM »
yeah...probably.

thanks for your help anyway
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: database refreshing
« Reply #19 on: September 12, 2008, 06:07:17 PM »
Quote from: pizza4me on September 12, 2008, 05:11:43 PM
The database is very much not completely updated when "committing database" hits 9/9.

Can you clarify what you mean by that?  I thought you got the database to update properly by allowing it to finish scanning before shutting down and booting again.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: database refreshing
« Reply #20 on: September 12, 2008, 06:29:01 PM »
I was under the impression that although the "committing database" splash had completed, he had to wait for the disk activity icon to stop before the database was actually finished doing it's work.  I seem to remember running into this myself a long time ago when I first tried the database.
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: database refreshing
« Reply #21 on: September 12, 2008, 06:40:14 PM »
I hadn't read pizza4me's messages that way, I guess.   :-\

I just freshly initialized my database.  I rebooted, waited for it to count up through 9/9 and load the main menu.  I immediately went to the database and see what looks like a complete listing.  What evidence should I see that it didn't update properly?
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline pizza4me

  • Member
  • *
  • Posts: 25
Re: database refreshing
« Reply #22 on: September 12, 2008, 09:33:21 PM »
I notice it esp. when I take out a larger card, and reboot with a different large card.  If you go straight to the database after reboot, you'll see files from the old card and not all the ones from the new card - because it hasn't had time to refresh everything.

So even though the Committing Database splash goes through 9/9 it actually hasn't refreshed everything.
« Last Edit: September 12, 2008, 09:35:34 PM by pizza4me »
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: database refreshing
« Reply #23 on: September 12, 2008, 10:55:03 PM »
But if I return to the database once the initial disk access has ceased then I will see the proper listing?  I just want to be clear on the steps since I'm not familiar with this behavior.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: database refreshing
« Reply #24 on: September 13, 2008, 12:51:51 AM »
If the answer to that question is "Yes", which I think it will be from the previous posts, I'd hypothesize that the "committing database" splash is referring to it having completed adding the new songs to the database, but not having removed the old ones from it (note: this only happens with dircache enabled).
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: database refreshing
« Reply #25 on: September 13, 2008, 01:13:50 AM »
As far as I know, "Committing" is a process based on data from the last time your player was booted. Basically, it's part of the initialization process, not the updating process.

If you swap MicroSD cards while the player is turned off, if a commit happens at boot it shouldn't include any data from the new card and after the boot further updating will need to happen.
Logged

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: database refreshing
« Reply #26 on: September 13, 2008, 11:12:44 AM »
That makes sense.  It's retrieving the data from the *.tcd files and building the database with them.  I stand by my earlier statement, then, that it would be a nice feature to tell the user when the updating is complete.
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: database refreshing
« Reply #27 on: September 13, 2008, 05:56:50 PM »
Quote from: Llorean on September 13, 2008, 01:13:50 AM
If you swap MicroSD cards while the player is turned off, if a commit happens at boot it shouldn't include any data from the new card and after the boot further updating will need to happen.

And an additional database commit will be needed after turning the player off and back on again. 
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline pizza4me

  • Member
  • *
  • Posts: 25
Re: database refreshing
« Reply #28 on: September 13, 2008, 07:48:22 PM »
so why doesn't the database "commit" every time the player starts?  When I started this post I was assuming that it was the result of selecting Auto Update.
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: database refreshing
« Reply #29 on: September 13, 2008, 07:52:35 PM »
It should only commit if there are changes to the media on the player that were detected the last time Rockbox ran.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

  • Print
Pages: 1 [2] 3
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  database refreshing
 

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

Page created in 0.086 seconds with 15 queries.