View Single Post
Old 06-06-2020, 02:21 PM   #27
kjdavies
Zealot
kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.kjdavies is no e-book dilettante.
 
Posts: 112
Karma: 53342
Join Date: Jun 2013
Device: Sony PRS-600
Quote:
Originally Posted by kovidgoyal View Post
No, I mean use calibredb but connect it to the server. See the first couple of paras at https://manual.calibre-ebook.com/gen...calibredb.html
I did. In both cases I was making the same calibredb calls:
  • Start content server
  • calibredb add <entry parameters here>
  • calibredb set_metadata -f publisher 'publisher name' id
  • calibredb set_custom <field> <id> <value>
  • calibredb set_custom <field> <id> <value>
  • calibredb set_custom <field> <id> <value>
  • calibredb set_custom <field> <id> <value>
  • calibredb set_custom <field> <id> <value>

When "--with-library=n:/libraries/rpg-auto", run time was ~20 seconds per entry.

When "--with-library='http://localhost:8080/#rpg-auto'", run time was ~50 seconds per entry.

It does work. It just works very slowly.

If I can instead do the entire add in one call, or do add and set metadata (built-in and custom) in two calls, I expect I can greatly reduce the time needed.

I'm not an efficiency freak, but I think in a use case like mine it could reduce the run time by a factor of four or five, and could reduce a job that I started last weekend to one day (67 hours runtime down to perhaps 15... not quite 'overnight', but two nights or night-and-while-working).

Last edited by kjdavies; 06-06-2020 at 02:24 PM. Reason: added 'efficiency' comment
kjdavies is offline   Reply With Quote