[SERVER-6600] Make delete and rename a node in a tree atomic Created: 26/Jul/12  Updated: 29/Oct/14  Resolved: 29/Oct/14

Status: Closed
Project: Core Server
Component/s: Usability
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Trivial - P5
Reporter: Garito Assignee: Ramon Fernandez Marina
Resolution: Incomplete Votes: 0
Labels: commands
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Giving the fact that document in a context of a tree seems for linear searches (the document with the lower Price from this node to inside) materialized paths seems to me the best+simplest way to achieve this linear goal

Will be key, in that sense, to convert in atomic something like:

db.nodes.remove({'Path': {$regex: '^Path:to:the:node'}}) to remove a node and its childs
and
db.nodes.update({'Path': {%regex: '^Path:to:the:node'}}, {'Path' {$replace: {'^Path:to:the:node', 'New:path'}}) to rename a node and put the new path to all its childs

Perhaps the syntax needs to be redefined

This two operations are so trivial but so crucial in the sense of the tree that seems pretty interessant as future features
And my intuition says will not be so much painful to implement for the size (so big for me) of the win you obtain

Hope you share my point and decide to implement it

Thanks!



 Comments   
Comment by Garito [ 29/Oct/14 ]

Sure, thanks!

Comment by Ramon Fernandez Marina [ 29/Oct/14 ]

Understood, thanks for getting back to us garito. I'm going to close this ticket then, but if you start using MongoDB again and are interested in pursuing this enhancement please feel free to re-open the ticket.

Regards,
Ramón.

Comment by Garito [ 29/Oct/14 ]

Sorry, I don't use mongo anymore...

Comment by Ramon Fernandez Marina [ 29/Oct/14 ]

Hi garito, looks like we let this ticket fall through the cracks – my apologies for that. If you're still interested in this improvement, would you please elaborate on the requested semantics? Could provide some sample documents and how they would look before and after the remove/update operations?

Thanks,
Ramón.

Generated at Thu Feb 08 03:12:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.