Page MenuHomePhorge

Compress the data in syncroton_relations_state
ClosedPublic

Authored by mollekopf on Tue, Oct 29, 7:35 PM.

Details

Summary

We have entries up to 1.8MB, which compresses down to ~450kb.
This is backwards compatible because we compress new entries, and fall
back to uncompressed if we fail to decompress. That's the same approach
as what we already use for pendingdata.

Diff Detail

Repository
rS syncroton
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mollekopf created this revision.
This revision is now accepted and ready to land.Tue, Oct 29, 9:42 PM

I feel uneasy about using binary data in sql queries, without special blob handling, but I guess it should work until we're proven otherwise.

I feel uneasy about using binary data in sql queries, without special blob handling, but I guess it should work until we're proven otherwise.

I'm assuming it's ok because it seems to me it's the same approach as for pendingdata (same column type etc).