Conversation
Signed-off-by: yongman <yming0221@gmail.com>
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 <yming0221@gmail.com>
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 yming0221@gmail.com