• unknown's avatar
    BUG#20725 MySQLD cluster use "fast count" is broken · 95126295
    unknown authored
    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(*)
    95126295
ha_ndbcluster.h 28.1 KB