top | item 1761834

(no title)

houseabsolute | 15 years ago

I'm also wondering why this kind of intervention is necessary at all. The NoSQL solution we use at work has load based automatic splitting, and I'd have thought (though I haven't confirmed) that this would be an obvious feature to include.

discuss

order

mcfunley|15 years ago

I would speculate that it's a poorly-chosen shard key. MongoDB's built-in sharding uses range-based indexing. If you choose user_id as your shard key, and those are autoincrementing integers, then you're screwed if newer users tend to be more active on average than older ones.

jrockway|15 years ago

Wait, people shard on a key other than something approximately random, like an sha1 hash!?

dmytton|15 years ago

Load based splitting is on the MongoDB roadmap, but doesn't exist yet.

fizx|15 years ago

Just because the feature exists, doesn't mean it works.