brave / go-sync

Brave sync server v2
Mozilla Public License 2.0
185 stars 44 forks source link

Sync item count does not update when history items expire #248

Closed DJAndries closed 3 months ago

DJAndries commented 4 months ago

We depend on a self-managed item count stored in a DB entry for enforcing item quotas. Since DynamoDB automatically handles removal of history-related entities due to expiry, the item count does not get updated when history items expire. This results in the actual item count potentially being lower than the recorded item count, which results in an OVER_QUOTA error which results in the Sync client backing off indefinitely.

Reduce total quota to 60k.