[MDEV-3806] Engine independent statistics Created: 2012-01-04 Updated: 2014-01-15 Resolved: 2013-01-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | 10.0.1 |
| Type: | Task | Priority: | Major |
| Reporter: | Rasmus Johansson (Inactive) | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||
| Description |
|
In a special mode the ANALYZE TABLE statement will collect statistics on table cardinality, table columns and table indexes. This statistics will be stored in tables table_stat, column_stat and index_stat in the mysql database.
This task will be implemented in 3 steps:
References:
|
| Comments |
| Comment by Igor Babaev [ 2012-01-04 ] |
|
Worked on the build for mwl#248 after yesterday back-port of the code from lp:~igorb-seattle/mysql-server/mysql-azalea-wl4777. |
| Comment by Igor Babaev [ 2012-01-05 ] |
|
Successfully created a build with all tests passed. |
| Comment by Sergei Petrunia [ 2012-11-27 ] |
|
... Attempted to run ANALYZE with @@tx_isolation='READ-UNCOMMITTED' and with handler->unlock_row() calls. It is is still putting locks on the rows (execution goes through sel_set_rec_lock()), and index scans block updates. Discussed the issue with knielsen. ha_innobase::store_lock() analyzes lex->sql_command, and sets LOCK_S for ANALYZE's scans. Should I make it set LOCK_NONE instead? |
| Comment by Sergei Petrunia [ 2012-11-27 ] |
|
Notes from the optimizer call:
|
| Comment by Sergei Petrunia [ 2012-12-03 ] |
|
Review feedback sent via email. |
| Comment by Sergei Golubchik [ 2013-01-25 ] |
|
pushed in 10.0-base |