Giter VIP home page Giter VIP logo

Comments (1)

azmeuk avatar azmeuk commented on July 18, 2024

I would like to tackle this issue. As discussed in #133, that should need to modify to bucket state to add a pointer to the previous bucket.

Assuming I can provide an acceptable patch for this feature, I would like to discuss with you the strategy to get it merged, as the compatibility issue might be tricky. I suggest this roadmap:

  • BTrees v4: cannot deal with states containing the prev pointer;
  • BTrees v5: can read (but ignore) the prev pointer, do not write it in the state;
  • BTrees v6: reads and write the prev pointer in the bucket state, use fallback mechanisms when prev is not in the state.

I see several benefits with this strategy:

  • In terms of project management, this separation can make things clear:
    • v4 buckets can safely be handled by v5, and vice-versa;
    • v5 buckets can safely be handled by v6, and vice-versa;
    • v4 buckets can safely be handled by v6;
    • v6 buckets cannot be handled by v4, so you should not have projects using v4 and v6 plugged to the same database.
  • No migration is needed as BTrees v6 will still be able to manage buckets states without the prev pointer. Using reverse features simply will be slow as we will need to calculate the previous bucket each time we need to access it. Maybe we can raise a warning when this case appear?
  • This transitional v5 can be used to backport fixes and patches from v6 if some people to stay a bit more time in v5.

What do you think?

from btrees.

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.