|
IF we need to add a additional level of sub-directory (which is very unlikely to happen), I don't think using IDs is a good idea because it would unnecessarily fragment authors and make the library difficult to navigate.
Example:
root_biblio/Isaac Asimov/Fondation (987)/
root_biblio/Isaac Asimov/Robot dreams (1234)/
The two books will moved respectively:
root_biblio/000000/Isaac Asimov/Fondation (987)/
root_biblio/001000/Isaac Asimov/Robot dreams (1234)/
If you are trying to browse your library, you should browse each top level to see if it contains the authors you are looking for, and when you look at the author folder, you may not find the book you want because it is under a other top level sub-directory.
Nah. Better to split and use the first letter of the author value, wich will result to:
root_biblio/I/Isaac Asimov/Fondation (987)/
root_biblio/I/Isaac Asimov/Robot dreams (1234)/
This is much more intuitive to navigate. Yes, it limits to ~24 top folders, but that should simplify the directory structure enough. And at worst, we can use the first two letters instead of just one to create your top-level folders.
@DNSB, honestly, I think that Calibre is resilient and well-built enough that it could handle a format change of the directory structure. It wouldn't even be a "major" change, I think that only one function need to be edit, and it would go smoothly. Calibre would keep the old structure for old books and update it gradually as metadata is modified for a book, without breaking anything (almost).
The real problem would be the operation to restore the library in the event of DB corruption. This operation uses the directory structure to recreat the database, and ensured a good restoration whereas a library could contain two directory structures at the same time, would be a real hell.
Else, regadless of this funny intellectual exercises, the current directory structure is well good enough. Except you have a lot of authors with a single book, the current format do a pretty decent job to reduce the number of top-level directory: In my library of 80 000 books, their is only 14 000 top-level/authors folders and it still load pretty quickly.
|