You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
The database becomes quite large in large setups and this reduces performance, due to writes and compaction. Currently we keep a copy of each file info for each peer. This is simple but wasteful, especially for the block list. There are attributes we need to remember per device (the invalid bits, for example) but it should be enough to keep one copy of the block list, keyed by folder/file name/version.
The block list data and dedup block list data is just how many bytes out of the fileinfos are the marshalled block list, and what it would look like if we stored each block list only once, keyed by the hash of the marshalled block list in this case. That's almost half of the database, 4.7 gigs of unnecessary block lists.
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
calmh commentedon Jan 20, 2020
About the block list, here are database per-key-type sizes from a real world database:
(
00is the FileInfos,01the globals index)The block list data and dedup block list data is just how many bytes out of the fileinfos are the marshalled block list, and what it would look like if we stored each block list only once, keyed by the hash of the marshalled block list in this case. That's almost half of the database, 4.7 gigs of unnecessary block lists.
lib/db: Deduplicate block lists in database (fixes syncthing#5898)
Merge branch 'master' into badgermerge
Merge branch 'master' into encryption