Skip to content
Snippets Groups Projects
Commit ecd8df95 authored by Vladimir Davydov's avatar Vladimir Davydov
Browse files

vinyl: eliminate reads on recovery

Currently, we use a rather dumb way to determine if a statement from
xlog should be committed or not on recovery - we lookup the statement in
all on-disk runs and, if found, compare its lsn. Obviously, this slows
down the recovery procedure significantly. Actually, we can avoid
reading on-disk runs altogether. All we need to do is compare the xlog
statement's lsn with the range's max lsn - we should only commit the
statement if the former is greater.

Closes #1697
parent 04cb74d6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment