Rockbox Development > Feature Ideas

Place Database on External Card When Available

<< < (2/2)

fduniho:
Yes, when you update the internal memory, the database would have to be updated for every card. But this would not increase the frequency with which you need to update the database. You would have to update the database on each card only as you put it in. This is no different than how things already are. But here is the difference. When you update the contents of a card, only the database for that card would have to be updated, and you could freely switch cards without updating the database each time. Overall, it would decrease the frequency with which the database needs to be updated.

torne:
My point was that the right way to handle this is to actually split the database as I assumed you meant, and that doing the work to make it store the database on the card the way you suggest may not be sufficient of an advantage to be worthwhile.

fduniho:
Yes, splitting the database would probably be best. It avoids duplication of data and minimizes the number of times the database needs to be updated. I have downloaded the source to Ubuntu with git, and I already know C, but I've never developed for Rockbox, and I've mainly been programming in PHP. So it may be a while before I identify the right code and understand what it is doing. If you can tell me what files and functions I should be looking at, it would help.

bodymind:
bump!! guys i want to do this feature it is extremely useful! I will start looking into the code this days..

anyway what I read from you guys I believe that the best would be when a card is attached, the database would be merged and copied again to the RAM!

it still has the problem that each index is from A to Z.. but I will start looking into code later.

there is this patch:
http://www.rockbox.org/tracker/task/12474

or we can have a different approach, making a centralized DB of all SD cards.
This could be done, by adding a new element to the database like a "serial number" of the SD card, and hidding and showing this elements everytime we connect/disconnect a new SD card!
what do you think?

Navigation

[0] Message Index

[*] Previous page

Go to full version