Skip to content

Transaction support TwoPhaseCommiter #631

Open

Description

@gmatej

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?

Activity

  1. gmatej commented on Jul 5, 2022

    @gmatej
    Author

    There are still more Java devs than Go devs. A working java client would be very useful for the community I would say.

  2. iosmanthus commented on Jul 5, 2022

    @iosmanthus
    Member

    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 tikv/rfcs#69 is fully implemented.

  3. gmatej commented on Jul 5, 2022

    @gmatej
    Author

    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.

  4. T-TRz879 commented on Jul 6, 2022

    @T-TRz879

    @gmatej Hi gays! Do you know how to use KvClient scan,this method scan(ByteString startKey, long version, int limit)

  5. github-actions commented on Aug 6, 2022

    @github-actions

    This issue is stale because it has been open 30 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions