Giter VIP home page Giter VIP logo

Comments (3)

Yonezawa-T2 avatar Yonezawa-T2 commented on May 14, 2024 1

Cheap solution: randomize initial version.
Precise solution: check tx_id and tx_version in the prepare phase.

Randomizing initial version almost fix the issue except 1/2^32 of collision.

tx_id is a UUIDv4 value newly generated for each transaction, so the collision is neglectable. Checking two values may impact the performance, although it might not be significant.

from scalardb.

feeblefakie avatar feeblefakie commented on May 14, 2024

@Yonezawa-T2 Thanks. That randomize solution sounds a bit tricky and makes verification more difficult.
Checking tx_id additionally might be good enough for this.

I feel introducing logical delete and guaranteeing monotonic version increase would probably be good from many perspectives as well. Physical delete is a bit scary from verification perspective actually. (it depends how well C*/underlining conditional delete is implemented)

from scalardb.

feeblefakie avatar feeblefakie commented on May 14, 2024

It is closed since it is fixed.
@Yonezawa-T2 Thank you very much for the report.

from scalardb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.