HomeSoftware Heritage

Add a new table for "bucketed" object counts

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Add a new table for "bucketed" object counts

This table allows counting objects by bucket, keeping the transactions for
counting objects short (a few dozen seconds at most).

Also add a "single_update" boolean field to the main object_counts table to be
able to discriminate tables that are counted via buckets and tables counted on
one go.

The main table is updated every 256 counted buckets to avoid too much churn on
the table.

Close T962.

Details

Provenance
olasdAuthored on Feb 19 2018, 7:19 PM
olasdPushed on Feb 19 2018, 7:30 PM
Tasks
T962: Counter updates are long queries that bog down the database

Commit No Longer Exists

This commit no longer exists in the repository.