-
Notifications
You must be signed in to change notification settings - Fork 131
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
Add timestamp support u64::MAX #364
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: yongman <[email protected]>
54b41f1
to
5619b79
Compare
@ekexium @iosmanthus PTAL |
I don't think it a good idea to reveal the concept of timestamp to users. What's your requirement of supporting this? Do you need only point-read or scans as well? |
@ekexium I want take |
Using u64::MAX then it's not snapshot read anymore. You may read inconsistent data. We must first check how TiKV handles the sepecial timestamp and then carefully decide how to use it. |
@ekexium Yes, it is just used for |
@ekexium Any suggestions to use |
I suggest making a new |
I think we should not restrict to get multiple keys with the latest committed in a transaction, just like create a new snapshot with timestamp |
Point-gets, namely And it's not a usual case. So I'd not suggest mix it with current |
I checked the logic in client-go, and it provides option to create a transaction with
Agree. So is it will be safe to create a u64::MAX readonly transaction with write permission check? |
Then
Cause it's supposed to be only used by |
No, I prefer to using an inner transaction directly which can keep my code simple. :-) |
Ah that's a problem of ease of use. Makes sense. |
The pub |
Signed-off-by: yongman <[email protected]>
6c60921
to
4bb6541
Compare
It is useful to get with the latest commit in transaction, we can create a new readonly transaction (not a snapshot wraps transaction)
Signed-off-by: yongman [email protected]