[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:
Related
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: SERVER-6694 create unique index on files_id, n

C++ driver for GridFS should create unique index on files_id, n.
Branch: master
https://github.com/mongodb/mongo/commit/02c7231335b8e500bf810df4fdb165fbcd63dde8

Comment by Spencer Brody (Inactive) [ 02/Aug/12 ]

This should probably also be done in any drivers that aren't doing that already.

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