Skip to content

Commit

Permalink
more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
max-hoffman committed Oct 24, 2024
1 parent f555516 commit f65e493
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions packages/dolt/content/other/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,22 @@ and do not impact the correctness of database operations.
If the error is reproducible please [report the
issue](https://github.com/dolthub/dolt/issues/new).

The statistics cache can be removed from the filesystem to silence warnings
Statistics caches can be removed from the filesystem to silence warnings
with `dolt_stats_purge()`:

```sql
call dolt_stats_purge();
```

Version incompatibilities should not hinder the purge command, but if
manual intervention is desirable a specific database's
stats cache can be removed from the filestystem:

```bash
rm -rf .dolt/stats
```

Statistics can be recollected at any time to improve join and indexing
execution performance.
See
execution performance. See
[the stats docs](../reference/sql/sql-support/miscellaneous#stats-controller-functions)
for more details.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Additional notes:

Dolt currently supports table statistics for index and join costing.

Statistics are collected by running `ANALYZE TABLE <table, ...>`.
Statistics are auto-collected by default for servers, but cab be manually collected by running `ANALYZE TABLE <table, ...>`.

Here is an example of how to initialize and observe statistics:

Expand Down

0 comments on commit f65e493

Please sign in to comment.