rebuild¶
vb rebuild [REPOSITORY] [OPTIONS]
Description¶
Reconstruct the named repository database from the core records. Run this command after updating the vb executable in a way that changes the database schema.
Options¶
- --analyze¶
Run ANALYZE on the database after rebuilding
- --cluster¶
Compute clusters for unclustered artifacts
- --compress¶
Strive to make the database as small as possible
- --compress-only¶
Skip the rebuilding step. Do –compress only
- --force¶
Force the rebuild to complete even if errors are seen
- --ifneeded¶
Only do the rebuild if it would change the schema version
- --index¶
Always add in the full-text search index
- --noverify¶
Skip the verification of changes to the BLOB table
- --noindex¶
Always omit the full-text search index
- --pagesize N¶
Set the database pagesize to N (512..65536, power of 2)
- --quiet¶
Only show output if there are errors
- --stats¶
Show artifact statistics after rebuilding
- --vacuum¶
Run VACUUM on the database after rebuilding
- --wal¶
Set Write-Ahead-Log journalling mode on the database
Examples¶
Rebuild repository data structures (small test repo)
$ vb rebuild --noverify
0.0% complete...
33.3% complete...
66.6% complete...
100.0% complete...
Rebuild only if needed and show statistics
$ vb rebuild --ifneeded --stats --noverify
Rebuild and recompress database pages
$ vb rebuild --compress --vacuum --noverify
0.0% complete...
33.3% complete...
66.6% complete...
100.0% complete...
Extra delta compression... none found
Vacuuming the database... done