mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
memory-limited tree
bulk inserts optimization: caching keys in binary tree include/my_base.h: bulk inserts optimization: caching keys in binary tree include/my_tree.h: memory-limited tree include/myisam.h: bulk inserts optimization: caching keys in binary tree isam/isamlog.c: memory-limited tree isam/pack_isam.c: memory-limited tree myisam/ft_boolean_search.c: memory-limited tree myisam/ft_nlq_search.c: memory-limited tree myisam/ft_parser.c: memory-limited tree myisam/ft_stopwords.c: memory-limited tree myisam/mi_extra.c: bulk inserts optimization: caching keys in binary tree myisam/mi_open.c: bulk inserts optimization: caching keys in binary tree myisam/mi_static.c: bulk inserts optimization: caching keys in binary tree myisam/mi_write.c: bulk inserts optimization: caching keys in binary tree myisam/myisamdef.h: bulk inserts optimization: caching keys in binary tree myisam/myisamlog.c: memory-limited tree myisam/myisampack.c: memory-limited tree mysql-test/mysql-test-run.sh: memory-limited tree mysql-test/t/alter_table.test: make it faster mysys/tree.c: memory-limited tree sql/ha_myisam.cc: bulk inserts optimization: caching keys in binary tree sql/item_sum.cc: memory-limited tree sql/mysqld.cc: bulk inserts optimization: caching keys in binary tree sql/sql_analyse.h: memory-limited tree sql/uniques.cc: memory-limited tree
This commit is contained in:
@@ -114,9 +114,9 @@ public:
|
||||
max_arg(""), sum(0),
|
||||
must_be_blob(0), was_zero_fill(0),
|
||||
was_maybe_zerofill(0), can_be_still_num(1)
|
||||
{ init_tree(&tree, 0, sizeof(String), a->binary ?
|
||||
{ init_tree(&tree, 0, 0, sizeof(String), a->binary ?
|
||||
(qsort_cmp2) stringcmp2 : (qsort_cmp2) sortcmp2,
|
||||
0, (void (*)(void*)) free_string); };
|
||||
0, (tree_element_free) free_string, NULL); };
|
||||
|
||||
void add();
|
||||
void get_opt_type(String*, ha_rows);
|
||||
@@ -154,8 +154,8 @@ class field_real: public field_info
|
||||
public:
|
||||
field_real(Item* a, analyse* b) :field_info(a,b),
|
||||
min_arg(0), max_arg(0), sum(0), sum_sqr(0), max_notzero_dec_len(0)
|
||||
{ init_tree(&tree, 0, sizeof(double),
|
||||
(qsort_cmp2) compare_double2, 0, NULL); }
|
||||
{ init_tree(&tree, 0, 0, sizeof(double),
|
||||
(qsort_cmp2) compare_double2, 0, NULL, NULL); }
|
||||
|
||||
void add();
|
||||
void get_opt_type(String*, ha_rows);
|
||||
@@ -200,8 +200,8 @@ class field_longlong: public field_info
|
||||
public:
|
||||
field_longlong(Item* a, analyse* b) :field_info(a,b),
|
||||
min_arg(0), max_arg(0), sum(0), sum_sqr(0)
|
||||
{ init_tree(&tree, 0, sizeof(longlong),
|
||||
(qsort_cmp2) compare_longlong2, 0, NULL); }
|
||||
{ init_tree(&tree, 0, 0, sizeof(longlong),
|
||||
(qsort_cmp2) compare_longlong2, 0, NULL, NULL); }
|
||||
|
||||
void add();
|
||||
void get_opt_type(String*, ha_rows);
|
||||
@@ -245,8 +245,8 @@ class field_ulonglong: public field_info
|
||||
public:
|
||||
field_ulonglong(Item* a, analyse * b) :field_info(a,b),
|
||||
min_arg(0), max_arg(0), sum(0),sum_sqr(0)
|
||||
{ init_tree(&tree, 0, sizeof(ulonglong),
|
||||
(qsort_cmp2) compare_ulonglong2, 0, NULL); }
|
||||
{ init_tree(&tree, 0, 0, sizeof(ulonglong),
|
||||
(qsort_cmp2) compare_ulonglong2, 0, NULL, NULL); }
|
||||
void add();
|
||||
void get_opt_type(String*, ha_rows);
|
||||
String *get_min_arg(String *s) { s->set(min_arg); return s; }
|
||||
|
Reference in New Issue
Block a user