Transaction support TwoPhaseCommiter
Is the transaction support in Java Client useful?
We are testing compared to go and it's very slow. It takes 8s for go to persist 1M keys. And probably 1minute or more to do the same in java.
Is there a special tactic that should be written in primary key. Why is GO so much faster?
There are still more Java devs than Go devs. A working java client would be very useful for the community I would say.
In client-go, many optimisations are applied to txnkv since TiDB uses it. client-go will batch the writes and has a write buffer for transactions, client-java just has the primitive operation for 2PC. Client java will focus on rawkv for now, but we might refactor the transaction function in the future once the https://github.com/tikv/rfcs/pull/69 is fully implemented.
Thanks. For the info. Maybe it would be better to make a JNI wrapper. As it seems all client development is in GO. And the client is not really lightweight.
@gmatej Hi gays! Do you know how to use KvClient scan,this method scan(ByteString startKey, long version, int limit)
This issue is stale because it has been open 30 days with no activity.