Skip to content

Commit

Permalink
Merge pull request #2366 from dolthub/zachmu/faq-update
Browse files Browse the repository at this point in the history
Added a FAQ on garbage and local storage size
  • Loading branch information
zachmu authored Oct 10, 2024
2 parents 25589ba + c4f095c commit ddda5d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/dolt/content/other/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ us know with an issue](https://github.com/dolthub/dolt/issues) or in
[our Discord](https://discord.gg/s8uVgc3) and we'll [fix it in 24 hours](https://www.dolthub.com/blog/2024-05-15-24-hour-bug-fixes/).
Our goal is to be a 100% drop-in replacement for MySQL.

## Why is my Dolt database so big on disk?

Dolt generates a lot of garbage during some writes, especially during initial import. It's not
unusual to get a local storage size of 20x the actual data size after an import. Running `dolt gc`
will remove the garbage and reclaim local storage. See the [docs on `dolt
gc`](../reference/cli/cli.md#dolt-gc) and the [`dolt_gc` stored
procedure](../reference/sql/version-control/dolt-sql-procedures.md#dolt_gc) for details.

## How do I squash the history of a Dolt database? I only want the latest.

You can perform a shallow [clone](https://docs.dolthub.com/sql-reference/version-control/dolt-sql-procedures#dolt_clone) of a database by using the `--depth` flag. If you only want
Expand Down

0 comments on commit ddda5d9

Please sign in to comment.