[CSHARP-39] By default add index on filename to the fs.files collection Created: 06/May/10 Updated: 19/Oct/16 Resolved: 29/Oct/10 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | SAMUS |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Daniel Knippers | Assignee: | Sam Corder |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
I am opting to add an standard index on filename field in fs.files collection (mongo shell create statement: db.fs.files.ensureIndex( {filename:1})). This will increase insert/update performance on GridFS files dramatically. Of course any extra index will cost extra storage so maybe an override option to disable creation of this index might be good. |
| Comments |
| Comment by Steve Wagner [ 29/Oct/10 ] |
|
Migrated to GitHub http://github.com/mongodb-csharp/mongodb-csharp/issues/issue/18 |