Skip to content

Commit

Permalink
Add docs for table stats with MariaDB
Browse files Browse the repository at this point in the history
  • Loading branch information
mosabua committed Oct 21, 2023
1 parent a5ce83d commit 0d7ba94
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/src/main/sphinx/connector/mariadb.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,26 @@ FROM
The connector includes a number of performance improvements, detailed in the
following sections.

(mariadb-table-statistics)=
### Table statistics

The MariaDB connector can use [table and column
statistics](/optimizer/statistics) for [cost based
optimizations](/optimizer/cost-based-optimizations) to improve query processing
performance based on the actual data in the data source.

The statistics are collected by MariaDB and retrieved by the connector.

To collect statistics for a table, execute the following statement in
MariaDB.

```text
ANALYZE TABLE table_name;
```

Refer to [MariaDB documentation](https://mariadb.com/kb/en/analyze-table/) for
additional information.

(mariadb-pushdown)=

### Pushdown
Expand Down

0 comments on commit 0d7ba94

Please sign in to comment.