Skip to content

Commit

Permalink
Run VACUUM to minimize the size of the SQLite3 database
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaochao Dong (@damnever) <[email protected]>
  • Loading branch information
damnever committed Feb 18, 2024
1 parent a493f06 commit 0e32358
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ run-tests:


generate-requirements:
pigar gen --exclude-glob '**/tests/data/*' --exclude-glob '**/_vendor/pip/_vendor/*' --with-referenced-comments -f ./requirements/py$(shell python -c "import sys; v=sys.version_info; print(f'{v.major}.{v.minor}')").txt pigar
pigar gen --exclude-glob '**/tests/data/*' --exclude-glob '**/_vendor/pip/*' --with-referenced-comments -f ./requirements/py$(shell python -c "import sys; v=sys.version_info; print(f'{v.major}.{v.minor}')").txt pigar


sqlite3-vacuum:
sqlite3 pigar/.db.sqlite3 'VACUUM;'
Binary file modified pigar/.db.sqlite3
Binary file not shown.

0 comments on commit 0e32358

Please sign in to comment.