diff options
author | unknown <stewart@mysql.com> | 2006-06-28 01:07:44 +1000 |
---|---|---|
committer | unknown <stewart@mysql.com> | 2006-06-28 01:07:44 +1000 |
commit | 9512629598687882a2c7abd3ec5af9c732163607 (patch) | |
tree | 1af41eab891b2adb2ec3c89a9040542a04ec7607 /sql/ha_ndbcluster.h | |
parent | 725ab9df20675b2d58044a6c7149785d9187dae6 (diff) | |
download | mariadb-git-9512629598687882a2c7abd3ec5af9c732163607.tar.gz |
BUG#20725 MySQLD cluster use "fast count" is broken
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(*)
Diffstat (limited to 'sql/ha_ndbcluster.h')
-rw-r--r-- | sql/ha_ndbcluster.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/ha_ndbcluster.h b/sql/ha_ndbcluster.h index 2e78a00ef94..d03a6cc4c5d 100644 --- a/sql/ha_ndbcluster.h +++ b/sql/ha_ndbcluster.h @@ -622,6 +622,7 @@ class ha_ndbcluster: public handler int read_multi_range_next(KEY_MULTI_RANGE **found_range_p); bool get_error_message(int error, String *buf); + ha_rows records(); void info(uint); void get_dynamic_partition_info(PARTITION_INFO *stat_info, uint part_id); int extra(enum ha_extra_function operation); |