[MDEV-12313] Histograms with equal-width bins in MariaDB Created: 2017-03-20 Updated: 2020-03-31 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Igor Babaev | Assignee: | Vicențiu Ciorbaru |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | eits, gsoc17, gsoc18, gsoc19 | ||
| Description |
|
Histograms with equal-width bins are easy to construct using samples. For this it's enough
It means that if the sample rows have been chosen randomly the expected number of rows with the values of f from this interval can be approximated by the number m[i]*/100 * N. To collect such statistics it is suggested to use the following variant of the ANALYZE TABLE command:
Here:
|
| Comments |
| Comment by Teodor-Vicentiu Niculescu [ 2018-05-29 ] |
|
Project Update All changes can be seen on my github page: What I have done so far:
ANALYZE FAST TABLE table [ WITH n ROWS ] [ SAMPLING p PERCENT ] [ LASTS s SECONDS ]
Follow-up:
|
| Comment by Teodor-Vicentiu Niculescu [ 2018-07-12 ] |
|
Project Update All changes are on the MariaDB 10.3 fork on my GitHub page: Commit hash: What is new:
Follow-up:
Any advice, criticism or questions will be greatly appreciated! |
| Comment by Sergei Petrunia [ 2018-10-05 ] |
|
Notes from discussion with Igor
|