Comments (7)
@apkar We like to take up this ticket. The proposed solution is,
- Register new command for Rename
- Validate the collection name for existence
- Use MOVE function to create and update the directory path
- Add internal_doDropIndexesActor function to update system.indexes
Please assign it to me, if this is ok.
from fdb-document-layer.
@apkar the fix is ready. We will be raising PR today under account drkannan
from fdb-document-layer.
@senthil-db-expert Why do you need to drop the indexes ?
from fdb-document-layer.
If we take a simple case with a collection and index like below
db = client['test']
db.coll.create_index('field_a')
db.coll.insert_one({'field_a': 'value_a_1', '_id': 'Bhaskar'})
Assuming it creates directory structure like below
●
├── Status Monitor -> \x15\x35
│ └── Layers -> \x15\x08
└── document -> \x15\x1c
└── test -> \x15\x1d
├── coll -> \x15\x07
│ └── metadata -> \x15\x2c
└── system.indexes -> \x15\x16
└── metadata -> \x15\x31
We will have primary index
`\x15\x07(Bhaskar\x00' is `2'
`\x15\x07(Bhaskar\x00(_id\x00' is `(Bhaskar'
`\x15\x07(Bhaskar\x00(field_a\x00' is `(value_a_1'
And secondary index
`\x15\x2c(indices\x00(field_a\x00(value_a_1\x00(Bhaskar\x00' is `'
We don't have to rewrite any of the primary/secondary index keys. We will need to rename (or move) the directory path and change the entry in system.indexes
to point to new namespace. And it should bump the metadata version for the collection.
from fdb-document-layer.
Agree @apkar Thanks. Will work on it and raise the PR.
from fdb-document-layer.
@apkar any reason why this issue still in open state? Like to understand the process.
from fdb-document-layer.
Usually, if a single PR is closing an issue, we go with the following keywords which would automatically close the issue.
https://help.github.com/en/articles/closing-issues-using-keywords
Also, it's just me being lazy.
from fdb-document-layer.
Related Issues (20)
- Support hostInfo command HOT 1
- Assign UUID to each incoming message HOT 2
- Re-enable tests for failure cases in 'update' tests
- $addToSet operator is not adding None values correctly HOT 1
- Removing all documents can be optimized HOT 1
- Provide a way to define composite keys
- ExtOperatorUpdate::update() is parsing query for each document HOT 2
- Re-enable None value generation in correctness after #135 got fixed
- Cursors house keeping could get some love
- "transaction_timeout" on long running requests HOT 4
- Store arrays containing null values as sparse arrays across the code
- Publish CPU and memory metrics HOT 1
- Audit all reply messages HOT 1
- Support bitwise query operators
- Documentation link typos
- Use index for $in queries HOT 2
- Memory leak on connections
- Problem with $in and $or filters
- With two indexes (a,b) and (a,b,c), with (a,b,c) unique, document layer allows duplicate values
- Is this repo still actively developed ? compatible with mongo 5.0 ?
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 fdb-document-layer.