| bio | website | |
|---|---|---|
| location | San Mateo, CA | |
| age | 32 | |
| visits | member for | 2 years, 2 months |
| seen | Mar 25 '12 at 21:56 | |
| stats | profile views | 5 |
Blog of Random programming snippets: http://agaffeaday.tumblr.com/
Twitter: @gatesvp
|
Sep 6 |
comment |
Is sharding effective for small collections? Honestly, I find that you can often "cheat" on the indexes too. If you have two collections foo and bar with the same data structure, you can merge them into the baz collection and override the _ids (in code): { _id: "foo123" }, { _id: "bar123" }. You have a larger index, but you have only one index that includes the type. Not a requirement, just "food for thought". |
|
Sep 6 |
comment |
Is sharding effective for small collections? FYI default chunk size is 64MB as of 1.8. |