Giter Club home page Giter Club logo

Comments (10)

ahrtr avatar ahrtr commented on August 26, 2024 2

Is it possible that change the path of the subbucket to A/D/C without having to delete and rebuild the subbucket again?

It should be possible to move a sub-bucket into another bucket with a simple program .

@Elbehery are you interested to provide a demo on this?

from bbolt.

Elbehery avatar Elbehery commented on August 26, 2024 1

yes, on me πŸ‘πŸ½ πŸ™πŸ½

from bbolt.

Elbehery avatar Elbehery commented on August 26, 2024 1

@ahrtr just few questions

  • moving sub-buckets inside the b+tree, should also update the internals node, since the key range changes, no ?
  • a solution which will hidden from the user, would to delete the sub-bucket and insert it into the dst path, no optimal though

from bbolt.

qi0523 avatar qi0523 commented on August 26, 2024

@Elbehery Sorry, i find that the subbucket maybe have other subsubbuckets.

from bbolt.

ahrtr avatar ahrtr commented on August 26, 2024

@Elbehery Sorry, i find that the subbucket maybe have other subsubbuckets.

It shouldn't be a problem. Essentially, we just move a subtree in a b+tree to another place, no matter what are included in the sub-tree. The only comment/concern is some methods or functions (used to move the sub-tree) in bbolt may not be public yet, but anyway it's a good topic to learn bbolt.

from bbolt.

Elbehery avatar Elbehery commented on August 26, 2024

I started investigating this, and I found an opportunity to refactor, i raised #606

@ahrtr would you kindly assign this to me, i already started working on it πŸ‘πŸ½

from bbolt.

qi0523 avatar qi0523 commented on August 26, 2024

@ahrtr May I ask how things are going?

from bbolt.

ahrtr avatar ahrtr commented on August 26, 2024

@ahrtr May I ask how things are going?

There is no plan to change bbolt to support the case so far. This ticket is just used as an example for the mentorship program.

from bbolt.

qi0523 avatar qi0523 commented on August 26, 2024

@ahrtr What do i need to do to implement it? What things need to be careful?

from bbolt.

ahrtr avatar ahrtr commented on August 26, 2024

FYI. #621

from bbolt.

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.