midenok / mariadb

MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
GNU General Public License v2.0
0 stars 0 forks source link

InnoDB undo records scanning O(log n) complexity #17

Open midenok opened 7 years ago

midenok commented 7 years ago

Implementation: undo index and binary search

Local undo index as alternative

Scan undo records in row_vers_build_for_consistent_read() without trx_undo_prev_version_build(), build temporary undo index. Then do binary search. This avoids copying of whole records in linear scan.

This is much easier to implement than permanent undo index and it can be used as first stage of development.

References