Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage: add store.LastTxnEvents to improve watch #3817

Closed
wants to merge 1 commit into from

Conversation

yichengq
Copy link
Contributor

@yichengq yichengq commented Nov 5, 2015

This fixes the wrong range statistics when using watch.

This avoids heavy Range call to watch events, and kills related TODO.

This makes the code cleaner.

This keeps the original logic that only returns last event on one key in one txn, but it doesn't need heavy ongoingTxn anymore. I may improve the behavior of returned events in follow-ups.

LatestTxnEvents returns events struct today, and it may return raw kv data in the future to save the cost of marshaling and unmarshaling.

This fixes the wrong range statistics when using watch.

This avoids heavy Range call to watch events, and kills related TODO.

This makes the code cleaner.
@gyuho gyuho self-assigned this Dec 28, 2015
@gyuho
Copy link
Contributor

gyuho commented Dec 28, 2015

I will take this over and use the same approach to batch events sending to watchings.

@gyuho
Copy link
Contributor

gyuho commented Dec 30, 2015

Closing this in favor of #4091.

@gyuho gyuho closed this Dec 30, 2015
@yichengq yichengq mentioned this pull request Dec 31, 2015
1 task
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants