https://github.com/SoftwareHeritage/swh-storage
Revision 6b80cff86bec2376f4610d4f4b2d01d935e54cde authored by Nicolas Dandrimont on 19 February 2018, 18:19:39 UTC, committed by Nicolas Dandrimont on 19 February 2018, 18:30:41 UTC
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.
1 parent 86d68a6
History
Tip revision: 6b80cff86bec2376f4610d4f4b2d01d935e54cde authored by Nicolas Dandrimont on 19 February 2018, 18:19:39 UTC
Add a new table for "bucketed" object counts
Tip revision: 6b80cff
File Mode Size
bin
debian
docs
sql
swh
utils
.gitignore -rw-r--r-- 72 bytes
AUTHORS -rw-r--r-- 112 bytes
LICENSE -rw-r--r-- 34.3 KB
MANIFEST.in -rw-r--r-- 183 bytes
Makefile -rw-r--r-- 163 bytes
Makefile.local -rw-r--r-- 182 bytes
README.db_testing -rw-r--r-- 673 bytes
README.dev -rw-r--r-- 1.7 KB
requirements-swh.txt -rw-r--r-- 88 bytes
requirements.txt -rw-r--r-- 57 bytes
setup.py -rwxr-xr-x 983 bytes

README.db_testing

back to top