[SERVER-1627] add createIndexes command Created: 13/Aug/10 Updated: 27/Oct/15 Resolved: 27/Jan/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin, Index Maintenance |
| Affects Version/s: | None |
| Fix Version/s: | 2.5.5 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Scott Hernandez (Inactive) | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
It seems like it would make sense to have a createIndex command; it would then round out the commands for all index operations (like deleteIndex, reIndex). Conceptually this seems consistent and would remove knowledge about "system.indexes" from within the drivers. Drivers can migrate to this syntax if they see the command available. This command should take an array of indexes to build in parallel (like compact does). Tools should be changed to use this command so that they are more efficient; then mongorestore can build all indexes at the same time. Possible format, which will be expanded in the next months:
The "indexes" field should also take a single doc, instead of an array, for simplicity. |
| Comments |
| Comment by Kamran K. [ 28/Feb/14 ] |
|
derick: The 'noChangesMade' issue is filed as |
| Comment by Derick Rethans [ 12/Feb/14 ] |
|
Can somebody please document what the correct command argument structure is? I also would like to point out that: "noChangesMade" : true, Is a bit awkward. It makes much more sense to use: "changesMade" : false, |
| Comment by Githook User [ 29/Jan/14 ] |
|
Author: {u'name': u'Dan Pasette', u'email': u'dan@10mongodb.com'}Message: |
| Comment by Githook User [ 27/Jan/14 ] |
|
Author: {u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}Message: |
| Comment by Daniel Pasette (Inactive) [ 22/Jan/14 ] |
|
derick, same thing you are doing for the new user manipulation commands. |
| Comment by Jeremy Mikola [ 13/Jan/14 ] |
|
Assuming this behaves the same as ensureIndex but handles multiple indexes, shouldn't it be named ensureIndexes for consistency? |
| Comment by Derick Rethans [ 08/Jan/14 ] |
|
"Drivers can migrate to this syntax if they see the command available." How do we see whether this command is available? |
| Comment by Eliot Horowitz (Inactive) [ 31/Jan/11 ] |
|
This should check for valid index patterns as well. |