From 4d6afa9c206150340272e5513ca40e8abb169b06 Mon Sep 17 00:00:00 2001 From: Zach Musgrave Date: Wed, 9 Oct 2024 16:45:10 -0700 Subject: [PATCH 1/2] Added a FAQ on garbage and local storage size --- packages/dolt/content/other/faq.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/dolt/content/other/faq.md b/packages/dolt/content/other/faq.md index 35ef8a7bc..059a5d911 100644 --- a/packages/dolt/content/other/faq.md +++ b/packages/dolt/content/other/faq.md @@ -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 From c4f095c3f97c90957060c2566db69b015372ff57 Mon Sep 17 00:00:00 2001 From: Zach Musgrave Date: Wed, 9 Oct 2024 16:46:08 -0700 Subject: [PATCH 2/2] typo --- packages/dolt/content/other/faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dolt/content/other/faq.md b/packages/dolt/content/other/faq.md index 059a5d911..b9675efcd 100644 --- a/packages/dolt/content/other/faq.md +++ b/packages/dolt/content/other/faq.md @@ -93,7 +93,7 @@ Dolt generates a lot of garbage during some writes, especially during initial im 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. +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.