Skip to content

Commit 8df594e

Browse files
Olernovmariadb-tauseefkhan
authored andcommitted
Add versions information to new_mode flags
1 parent 7c05381 commit 8df594e

File tree

1 file changed

+14
-1
lines changed
  • server/server-management/variables-and-modes

1 file changed

+14
-1
lines changed

server/server-management/variables-and-modes/new_mode.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,21 @@ SET new_mode = '';
3838

3939
### FIX_DISK_TMPTABLE_COSTS
4040

41+
From [MariaDB 11.8.4](https://mariadb.com/docs/release-notes/community-server/11.8/11.8.4) to [MariaDB 12.0](https://mariadb.com/docs/release-notes/community-server/12.0). Starting from [MariaDB 12.1.2](https://mariadb.com/docs/release-notes/community-server/12.1/12.1.2/), this behavior is enabled by default.
42+
4143
This flag improves the cost computation for using temporary tables in certain cases, including semi-join subquery materialization ([MDEV-37723](https://jira.mariadb.org/browse/MDEV-37723)).
4244

4345
### FIX_INDEX_STATS_FOR_ALL_NULLS
4446

45-
This flag improves the selection of execution plans when indexed columns contain only NULL values ([MDEV-36761](https://jira.mariadb.org/browse/MDEV-36761)).
47+
From [MariaDB 11.4.9](https://mariadb.com/docs/release-notes/community-server/11.4/11.4.9) to [MariaDB 12.0](https://mariadb.com/docs/release-notes/community-server/12.0).
48+
49+
This flag improves the selection of execution plans when indexed columns contain only NULL values ([MDEV-36761](https://jira.mariadb.org/browse/MDEV-36761)). Starting from [MariaDB 12.1.2](https://mariadb.com/docs/release-notes/community-server/12.1/12.1.2/), this behavior is enabled by default.
50+
51+
For proper application of the fix, [engine-independent statistics](https://mariadb.com/docs/server/reference/sql-statements/table-statements/analyze-table#eits-statistics-persistent-for) must be collected for tables having columns with only NULL values:
52+
```sql
53+
ANALYZE TABLE table_name PERSISTENT FOR ALL;
54+
```
55+
or at least for indexed columns with only NULL values:
56+
```sql
57+
ANALYZE TABLE table_name PERSISTENT FOR COLUMNS (b) INDEXES (key_b);
58+
```

0 commit comments

Comments
 (0)