[MDEV-10922] optimization on count distinct on primary key Created: 2016-09-29 Updated: 2023-11-24 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.0, 10.1, 10.2 |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Puggan Se | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Package: mariadb-server |
||
| Issue Links: |
|
||||||||
| Description |
|
As all 3 queries just returns the number of rows in products, they should be able to run alot faster.
// Add some data
A count on a non-null-column on a table witout where-parts or joins, is always the number of rows in that table? A distinct count non-null-uniqe-column on a table without where-parts, is always the number of rows in that table? A distinct count on a table, is not influenced by a left join of another table, if that table have no where-parts? |
| Comments |
| Comment by Dipti Joshi (Inactive) [ 2016-09-29 ] |
|
puggan This issue is on MariaDB Server and not on MariaDB ColumnStore. It should be filed with the project "MDEV" and not "MCOL" Moving it to MDEV project. |