Hashed_id as shard key

23 views
Skip to first unread message

Anon

unread,
Oct 12, 2017, 11:08:07 PM10/12/17
to mongodb-dev

hashed_id as a shard key relative to unhashed_id. What are the things that apply?

  1. Increased security due to Hashing 
  2. Range queries may be less efficient 
  3. Inserts on auto-generated object'ids will be distributed across shards

Wan Bachtiar

unread,
Nov 7, 2017, 8:41:10 PM11/7/17
to mongodb-dev

Hi,

I would recommend to review MongoDB hashed sharding and hashed vs ranged sharding in the manual to learn more about hashed keys.

Regards,
Wan.

Reply all
Reply to author
Forward
0 new messages