[SERVER-6694] C++ driver for GridFS should create unique index on files_id, n Created: 02/Aug/12 Updated: 11/Jul/16 Resolved: 04/Sep/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Tools |
| Affects Version/s: | None |
| Fix Version/s: | 2.3.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Spencer Brody (Inactive) | Assignee: | siddharth.singh@10gen.com |
| Resolution: | Done | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Participants: | |||||
| Description |
|
The mongofiles tool, which uses the C++ driver, will create an index on {files_id:1, n:1}if it doesn't already exist for the fs.chunks collection when storing a file. That index should be created as unique, but it isn't currently. Many drivers (pymongo at least) do this already. |
| Comments |
| Comment by auto [ 04/Sep/12 ] |
|
Author: {u'date': u'2012-09-04T09:19:40-07:00', u'email': u'singhsiddharth@gmail.com', u'name': u'Siddharth Singh'}Message: C++ driver for GridFS should create unique index on files_id, n. |
| Comment by Spencer Brody (Inactive) [ 02/Aug/12 ] |
|
This should probably also be done in any drivers that aren't doing that already. |