![]() |
How Do I Refresh Calibre ID Numbers?
So, as part of the set-in-stone directory and file naming scheme (the reasoning for which, by the way, I don't buy) Calibre includes its "id number" at the end of the directories. If you have to remove a book, and later add more, the numbers continue to increase (leaving gaps).
How can I get Calibre to refresh these ids? It seems this functionality would be a basic element of library maintenance...no? Thanks for the help! |
The id numbers are never re-used so it is normal to have gaps. The numbers actually relate to Id's internal to the database structure and it is typical of databases to never re-use them.
In normal use most users never worry about the Id values - is there some reason they concern you. |
Quote:
But, as itimpi implied, why bother? You shouldn't be messing around inside the Library folder anyway. See: Want to change the folder structure of the Calibre library?, sticky by Manichean, spoiler content by Worldwalker. |
Hmmm...I imagine it's a combination of me (at the moment) having to do a lot of combining the same book in multiple formats (I don't like converting, I like having the retails of whatever formats I can get) and the fact that I'm a bit OCD (so it's driving me crazy that the numbers would indicate I have thrice the number of books I actually have).
By the way, I know that's the purpose of the id numbers, but iterating over the books and adjusting the id numbers as part of database maintenance would in no way harm their functionality as ids. If anything, it would optimize it because some functions (I'm sure) would iterate over id numbers sequentially. So, for every id number without a corresponding entry Calibre would have to identify the situation and move to the next number. |
Another voice:
{ID} is just for bookkeeping (ooo, a pun :p ) You may need ID if you are using the CLI. The CLI also has tools to return the ID from other CLI activities so there is little reason to actually be IN the folder. You may want ID for device file (duplicate?) management Calibre reports 2books on device, having {ID} at the end of the template may help. As for Gaps, so what. This is not {Series_index}, where a gap means another book to buy :rolleyes: |
Quote:
Quote:
Quote:
|
Funny how the directory structure bugs almost every new user of Calibre.
For me it kept me from really "USING" Calibre as more than a conversion program. Once you buy into the idea that Calibre is primarily a database that contains ebooks as part of it's record and that the directory structure is the database itself it becomes easier to ignore that directory entirely. I tend to complete the quality checking and corrections of the books, title, author name, tags etc and then use modify epub to write the new metadata into the epub. To read the books I then do a save to disk to a library location (double checking the directories of dual author titles) and organize that directory to be copied to a micro sd to use on my tablet. By doing this I can indulge my ocd about the library while leaving the "database" alone. As for it taking more disk space, well I just picked up a new 4TB usb drive for 160.00 cdn and you really need a backup or three of an important library to be safe. |
If you want to KNOW how many books(titles) you have.
Look at the Status Line in the GUI. This will even show the amount of the whole when using a VL [2129 books, 1 selected, 4901 total] |
:offtopic: - as well as the integer book id, I think calibre also assigns a UUID to each book, which is written as a ID in the opf that is embedded into EPUBs at least - you can see the value if you press 'I' on a book
Just out of curiosity what is it for? BR |
Quote:
|
I've looked at this thread because of a reason which is not related to OCD but future problems: which is the maximum id? If it's more that 2^32 or 2^64, I can forget it, I'll never reach it in my life. If it isn't, it can be a problem when the id reaches its limits.
|
It will be at least 2^32, and may well be 2^64 - I cannot remember off-hand which it is.
|
Quote:
Quote:
I only keep what I'm reading on my device so I don't use calibre synching. I copy other things to it with my file manager so why not copy books. BR |
Quote:
|
Quote:
A 2 billion book calibre library - nuh, not in all our lifetimes laid end to end :rofl: BR |
| All times are GMT -4. The time now is 06:09 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.