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
| | |-+  Updating database without losing runtime stats?
« previous next »
  • Print
Pages: [1]

Author Topic: Updating database without losing runtime stats?  (Read 2679 times)

Offline Arj

  • Member
  • *
  • Posts: 99
Updating database without losing runtime stats?
« on: March 06, 2007, 07:03:05 PM »
For the last few weeks I have switched over to using the Database view.  One of the things I am finding often is mis-tagged files.  So I've been correcting those.  However, unless I am not understanding things correctly, I see no way to update the database with the new tag information w/o reinitializing it.  I know there is the Update Database choice, but that only considers new or deleted files.

Is there a way to update the database for existing files and not lose the runtime stats in the process?

I should also mention I tried Export Modifications before updating the actual files, then updating the files, then Initialize, then Import Modifications, but that didn't work (and, yeah, I know the Import should happen automatically after the Initialize is completed).
« Last Edit: March 06, 2007, 07:06:48 PM by Arj »
Logged

Offline xlarge

  • Member
  • *
  • Posts: 191
Re: Updating database without losing runtime stats?
« Reply #1 on: March 07, 2007, 02:21:57 AM »
It didn't work?
Export/import modification has always worked for me...
What build are you on? What player? Maybe you've stumbled on a bug?
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Updating database without losing runtime stats?
« Reply #2 on: March 07, 2007, 03:16:17 AM »
Quote from: Arj on March 06, 2007, 07:03:05 PM
I should also mention I tried Export Modifications before updating the actual files, then updating the files, then Initialize, then Import Modifications, but that didn't work
That has always worked for me on my H120 and should work for you.
You should be able to see a database_changelog.txt file in .rockbox/, which is the one the export function creates.

Quote from: Arj on March 06, 2007, 07:03:05 PM
(and, yeah, I know the Import should happen automatically after the Initialize is completed).
Although I keep failing to raise a bug report, this is the same for me. I always have to manually import the database changes after a re-initialisation :(

EDIT: Reported - /task/6751
« Last Edit: March 07, 2007, 10:23:03 AM by bascule »
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline PaulJam

  • Member
  • *
  • Posts: 170
Re: Updating database without losing runtime stats?
« Reply #3 on: March 07, 2007, 08:10:22 AM »
Hi,

as far as i know the automatic import of the runtime data after initialisation only happens if "load to RAM" and "auto update" are enabled.
Did you have these options enabled?
For me the automatic import works.
Logged

Offline Arj

  • Member
  • *
  • Posts: 99
Re: Updating database without losing runtime stats?
« Reply #4 on: March 07, 2007, 09:16:13 AM »
Thanks for the replies everyone.  I will try it again.  Maybe I did something out of sequence.  It's good to know the Export/Import is how this is handled.
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Updating database without losing runtime stats?
« Reply #5 on: March 07, 2007, 09:34:35 AM »
Quote from: PaulJam on March 07, 2007, 08:10:22 AM
Hi,

as far as i know the automatic import of the runtime data after initialisation only happens if "load to RAM" and "auto update" are enabled.
Did you have these options enabled?
For me the automatic import works.

'Load to RAM', yes, but I never have 'auto update' enabled. I'll check it out and revert. If it is that, I'll cancel the 'Settings' bug report and raise a 'Manual' one instead ;)
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline Arj

  • Member
  • *
  • Posts: 99
Re: Updating database without losing runtime stats?
« Reply #6 on: March 07, 2007, 09:45:08 AM »
Quote from: PaulJam on March 07, 2007, 08:10:22 AM
Hi,

as far as i know the automatic import of the runtime data after initialisation only happens if "load to RAM" and "auto update" are enabled.
Did you have these options enabled?
For me the automatic import works.
I don't have Auto Update enabled, so maybe that is why that didn't happen.  The manual does not state that you need to have that enabled for this auto-import to work though.
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Updating database without losing runtime stats?
« Reply #7 on: March 07, 2007, 10:22:32 AM »
Bug deleted and re-raised as a Manual update bug.
http://www.rockbox.org/tracker/task/6753
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Updating database without losing runtime stats?
« Reply #8 on: March 07, 2007, 10:44:20 AM »
Fixed.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Updating database without losing runtime stats?
 

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

Page created in 0.098 seconds with 15 queries.