0

I have _id column in the following format

"date-machineNumber-eventgroup eventid-date-Timestamp-0"

Can this key be used as shard key?

shard key: { "_id" : 1 } unique: false balancing: true

Please note i am not using hashed key. As the _id column has the timestamp, can it be considered monotonically increasing and result in bottleneck in one shard?

Currently all the read and write request are going to the same shard. Please clarify at the earliest

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.