diff options
author | igor@rurik.mysql.com <> | 2006-10-31 17:31:56 -0800 |
---|---|---|
committer | igor@rurik.mysql.com <> | 2006-10-31 17:31:56 -0800 |
commit | 2a7acba7e10197ec4a651ae828ff51c0a2ff4747 (patch) | |
tree | b8cf0e80a37eba77a6cccf9e41a8871266533675 /sql/mysql_priv.h | |
parent | 17eb0b353e5a112e1d0005b71190c1e3278e0583 (diff) | |
download | mariadb-git-2a7acba7e10197ec4a651ae828ff51c0a2ff4747.tar.gz |
Fixed bug #21727.
This is a performance issue for queries with subqueries evaluation
of which requires filesort.
Allocation of memory for the sort buffer at each evaluation of a
subquery may take a significant amount of time if the buffer is rather big.
With the fix we allocate the buffer at the first evaluation of the
subquery and reuse it at each subsequent evaluation.
Diffstat (limited to 'sql/mysql_priv.h')
-rw-r--r-- | sql/mysql_priv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h index ea3b3a9bd83..13e44b49b53 100644 --- a/sql/mysql_priv.h +++ b/sql/mysql_priv.h @@ -1465,7 +1465,7 @@ void end_read_record(READ_RECORD *info); ha_rows filesort(THD *thd, TABLE *form,struct st_sort_field *sortorder, uint s_length, SQL_SELECT *select, ha_rows max_rows, ha_rows *examined_rows); -void filesort_free_buffers(TABLE *table); +void filesort_free_buffers(TABLE *table, bool full); void change_double_for_sort(double nr,byte *to); double my_double_round(double value, int dec, bool truncate); int get_quick_record(SQL_SELECT *select); |