Skip to content

Full sync every time? #125

@hutcheon

Description

@hutcheon

Just set this up, and am loving it, but sync takes a long time (about 2.5 hours). Every time it syncs, it pulls everything from audiobookshelf (that only takes a couple minutes), and the rest of the time is searching for matching hardcover books.

Maybe I'm missing something, or there's a problem with my setup, but after a first full sync, shelfbridge has a database of everything. I was expecting additional syncs to be quick... only acting on changed progress or new books on audiobookshelf side, not throwing out all of that progress and searching for a match for every book from scratch again on every sync.

This is two syncs, less than 10 hours apart (docker container didn't stop, but I did fix the cause of that error):

✅ Sync complete for user: tyler in 8839.1s
══════════════════════════════════════════════════
📚 SYNC COMPLETE (8839.1s)
══════════════════════════════════════════════════
📚 Library Status                  🌐 Hardcover Updates
├─ 1 of 2 libraries processed      ├─ 205 API calls made
├─ 1 libraries excluded by filter  ├─ 205 successful
├─ 942 total books                 ├─ 1 failed
├─ 2 currently reading             └─ 78 skipped (no changes)
├─ 282 completed
└─ 658 never started               ✅ Sync Status
                                   ├─ 1 error occurred
📊 Processing Results              ├─ Cache updated
├─ 205 marked complete             └─ Ready for next sync
└─ 78 skipped (no change
══════════════════════════════════════════════════


✅ Sync complete for user: tyler in 8801.9s
══════════════════════════════════════════════════
📚 SYNC COMPLETE (8801.9s)
══════════════════════════════════════════════════
📚 Library Status                  🌐 Hardcover Updates
├─ 1 of 2 libraries processed      ├─ 207 API calls made
├─ 1 libraries excluded by filter  ├─ 207 successful
├─ 942 total books                 ├─ 0 failed
├─ 2 currently reading             └─ 77 skipped (no changes)
├─ 282 completed                   
└─ 658 never started               ✅ Sync Status
                                   ├─ All updates successful
📊 Processing Results              ├─ No errors occurred
├─ 2 progress updated              ├─ Cache updated
├─ 205 marked complete             └─ Ready for next sync
└─ 77 skipped (no change)          
══════════════════════════════════════════════════

Config:

users:
  - id: tyler
    abs_url: https://snip
    abs_token: secret
    hardcover_token: secret
    libraries:
      exclude: ["Podcasts"]    # Skip these libraries

global:
   timezone: "America/Toronto"
   sync_schedule: "27 3 * * *"
   auto_add_books: false
   audiobookshelf_semaphore: 5
   audiobookshelf_rate_limit: 1200

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions