mirror of https://github.com/MariaDB/server
Browse Source
Post recent handler changes, fast count(*) for cluster was broken. Seeing as we maintain an exact count for ndb, we can easily use this for an optimisation. With this patch, and use_exact_count DISABLED, we will use the fast way of getting count(*) but not use the exact count for the optimiser. With this patch and use_exact_count ENABLED, we will use the fast way of getting count(*) and use the exact count for the optimiser. sql/ha_ndbcluster.cc: Implement handler::records() and set appropriate handler flag. sql/ha_ndbcluster.h: we implment handler::records() for fast count(*)pull/374/head
2 changed files with 27 additions and 1 deletions
Loading…
Reference in new issue