Homekolab.org

Optimize the full-sync for removal case.

Authored by Christian Mollekopf <chrigi_1@fastmail.fm> on Sep 2 2016, 5:55 PM.

Description

Optimize the full-sync for removal case.

If we deliver a full set of items (that are mostly empty) to remove
superfluous items, we first off don't want to trigger a MERGE per item
(that doesn't add anything new anyways), and we second don't want to
retrieve more data than necessary when getting the full list (so we
have a single mysql query).