[SERVER-8008] $push to sorted array Created: 21/Dec/12 Updated: 18/Sep/15 Resolved: 27/Dec/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Write Ops |
| Affects Version/s: | None |
| Fix Version/s: | 2.3.2 |
| Type: | New Feature | Priority: | Minor - P4 |
| Reporter: | Yuri Finkelstein | Assignee: | Alberto Lerner |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Now that Let's say the initial document state was:
After
it will be
After
it will be
In this case, The context here is that this mechanism would enable capability similar to |
| Comments |
| Comment by Githook User [ 11/Mar/15 ] | |||||
|
Author: {u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}Message: Revert " This reverts commit 25feddadeef43fb0668350b40282fcdfbb1f2296. | |||||
| Comment by Yuri Finkelstein [ 20/Mar/13 ] | |||||
|
What's g+? Google plus? I barely use it. I can talk about this at MongoSF later this year. | |||||
| Comment by Alberto Lerner [ 20/Mar/13 ] | |||||
|
Yuri, when can we read your g+ post about those usage cases? | |||||
| Comment by Yuri Finkelstein [ 19/Mar/13 ] | |||||
|
Thanks for making this happen. This is a great feature, but perhaps it would require a bit more effort to explain folks what can be done with it. This is in fact a perfect instrument for MVCC-type writes against Mongo. Also, many messaging systems do not guarantee in-order delivery. So, if a user app is storing data to mongo in response to message receipt but needs to order the result in some way (by timestamp, sequence counter, etc) it now can do it with this instrument. Ability to trim the array is paramount to avoid unbounded document growth. I think you need to publicize what these interesting potential applications of this feature. | |||||
| Comment by auto [ 15/Jan/13 ] | |||||
|
Author: {u'date': u'2013-01-15T22:53:57Z', u'email': u'alerner@10gen.com', u'name': u'Alberto Lerner'}Message: | |||||
| Comment by auto [ 15/Jan/13 ] | |||||
|
Author: {u'date': u'2013-01-14T04:16:36Z', u'email': u'alerner@10gen.com', u'name': u'Alberto Lerner'}Message: | |||||
| Comment by auto [ 03/Jan/13 ] | |||||
|
Author: {u'date': u'2013-01-03T21:23:09Z', u'name': u'Alberto Lerner', u'email': u'alerner@10gen.com'}Message: | |||||
| Comment by auto [ 03/Jan/13 ] | |||||
|
Author: {u'date': u'2013-01-03T17:19:13Z', u'name': u'Alberto Lerner', u'email': u'alerner@10gen.com'}Message: | |||||
| Comment by auto [ 27/Dec/12 ] | |||||
|
Author: {u'date': u'2012-12-27T05:47:19Z', u'email': u'alerner@10gen.com', u'name': u'Alberto Lerner'}Message: | |||||
| Comment by auto [ 27/Dec/12 ] | |||||
|
Author: {u'date': u'2012-12-27T04:58:05Z', u'email': u'alerner@10gen.com', u'name': u'Alberto Lerner'}Message: | |||||
| Comment by Alberto Lerner [ 27/Dec/12 ] | |||||
|
Author: {u'date': u'2012-12-27T02:23:22Z', u'email': u'alerner@10gen.com'}Message: | |||||
| Comment by Yuri Finkelstein [ 21/Dec/12 ] | |||||
|
I cloned | |||||
| Comment by Yuri Finkelstein [ 21/Dec/12 ] | |||||
|
Now that Let's say the initial document state was:
After
it will be
After
it will be
In this case, The context here is that this mechanism would enable capability similar to |