diff options
author | unknown <marko@hundin.mysql.fi> | 2005-03-07 15:23:06 +0200 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2005-03-07 15:23:06 +0200 |
commit | 2a66f66dfbed09c6119f8d8495c923f0863762bc (patch) | |
tree | aa33952d8c861dc08d38108fc7180870da0ff073 /innobase/include | |
parent | 77174b3a89c4dcba40841c15bbe18dbc2abd5cc2 (diff) | |
download | mariadb-git-2a66f66dfbed09c6119f8d8495c923f0863762bc.tar.gz |
InnoDB: optimize SELECT performance
innobase/include/row0vers.h:
row_vers_build_for_consistent_read():
Add parameters offsets and offset_heap
in order to avoid recomputing the offsets in the caller.
innobase/row/row0sel.c:
Eliminate some rec_get_offsets() calls.
innobase/row/row0vers.c:
row_vers_build_for_consistent_read():
Add parameters offsets and offset_heap
in order to avoid recomputing the offsets in the caller.
Diffstat (limited to 'innobase/include')
-rw-r--r-- | innobase/include/row0vers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/innobase/include/row0vers.h b/innobase/include/row0vers.h index 0dd40fda65f..079d841f7f3 100644 --- a/innobase/include/row0vers.h +++ b/innobase/include/row0vers.h @@ -79,7 +79,11 @@ row_vers_build_for_consistent_read( mtr_t* mtr, /* in: mtr holding the latch on rec; it will also hold the latch on purge_view */ dict_index_t* index, /* in: the clustered index */ + ulint** offsets,/* in/out: offsets returned by + rec_get_offsets(rec, index) */ read_view_t* view, /* in: the consistent read view */ + mem_heap_t** offset_heap,/* in/out: memory heap from which + the offsets are allocated */ mem_heap_t* in_heap,/* in: memory heap from which the memory for old_vers is allocated; memory for possible intermediate versions is allocated and freed |