Comments (10)
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.
yes, on me ππ½ ππ½
from bbolt.
@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.
@Elbehery Sorry, i find that the subbucket maybe have other subsubbuckets.
from bbolt.
@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.
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.
@ahrtr May I ask how things are goingοΌ
from bbolt.
@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.
@ahrtr What do i need to do to implement it? What things need to be careful?
from bbolt.
FYI. #621
from bbolt.
Related Issues (20)
- Rename cobra commands
- Cursor.Prev() out of range issue v1.3.9 HOT 4
- Add check-page sub command HOT 1
- Introduce benchmarking for PRs HOT 6
- Plan to release v1.3.10 HOT 5
- Race tests timing out trying to run on user forks
- Extend the maintainers of bbolt HOT 6
- Proposal: Add `ForceMunlock` option HOT 9
- Bolt bucket missing when process crashes in the middle of a transaction HOT 3
- Introduce freelist interface HOT 8
- after restart, bbolt db failed to get all reachable pages HOT 9
- Open blocks even the ReadOnly option is set HOT 2
- Refactor freelist management & add more dedicated tests HOT 6
- freelist hashmap/array inconsistency on page reload HOT 1
- The `freelist.allocs` isn't rollbacked when a tx is rollbacked HOT 1
- Improve freelist serialization
- Pin GitHub action dependencies HOT 1
- bbolt cli: Inspect command missing in cmd/bbolt/main.go HOT 6
- Release plan for 1.3.11 HOT 1
- add new func , return root HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bbolt.