[SERVER-11338] GridFS hash base sharding support Created: 23/Oct/13  Updated: 23/Oct/13  Resolved: 23/Oct/13

Status: Closed
Project: Core Server
Component/s: GridFS
Affects Version/s: 2.5.3
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Norberto Fernando Rocha Leite (Inactive) Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-10220 Support hashed fields in compound ind... Closed
Participants:

 Description   

GridFS should be able to shard fs.chunks collection using hash base sharding over file_id field.
This would make it much more efficient in terms of even distribution of data across nodes.
Keep the uniqueness of pair file_id + n but be able to shard based on the hash.



 Comments   
Comment by Norberto Fernando Rocha Leite (Inactive) [ 23/Oct/13 ]

Makes more sense to use SERVER-10220

Comment by Norberto Fernando Rocha Leite (Inactive) [ 23/Oct/13 ]

agree!

Comment by Scott Hernandez (Inactive) [ 23/Oct/13 ]

This doesn't help in the case of large files since they cannot be split across shards. I believe this is a better idea is to support hashing a compound shard key of:

{files_id:1, n:1}

SERVER-10220

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