jellyfin / jellyfin-kodi

Jellyfin Plugin for Kodi
https://jellyfin.org
GNU General Public License v3.0
785 stars 105 forks source link

Slow sync #848

Open Cissoubaka opened 3 months ago

Cissoubaka commented 3 months ago

Describe the bug Very slow sync compared to 0.7.12 with 1.0.x with 1500 new records, yesterday it took almost 20 min to sync on the 0.7.12 version, it was just 2 min even less

[2024-04-01 21:19:40.993 +02:00] [INF] [37] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.LibrarySyncNotification: Library Sync: Updated 1438 items [2024-04-01 21:19:40.993 +02:00] [INF] [37] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.LibrarySyncNotification: Finished library sync, taking "00:17:30.6130013"

System (please complete the following information):

mcarlton00 commented 3 months ago

Syncing ~30k items takes roughly 4 minutes on my system. If I include my music library and increase that item count to closer to 80k items, it takes roughly 25 minutes.

There's no evidence here that there's a bug, and as far as I'm aware nothing significant has changed in the sync process that could influence this. It sounds like something in your setup was just behaving slow. It's also worth noting that the number of changed items can be artificially inflated drastically by having music libraries synced, and music libraries also just generally take longer due to the metadata involved.

Cissoubaka commented 3 months ago

everything is connected in 1000 full duplex, it append on my 4 pi connected to my local jellyfin, i'm not using music with jelly only video. I'll deeply look into it, on my side.