user2636123
user2636123

Reputation: 75

Mixing IDs in couchDB

couchDB by default generates IDs like 08b38673484804ee8ea07f464a0015a1 for new documents. However, can I also mix in other IDs like guest10090087 ? so my documents will have couch generated ids and my own ids. would this affect performance and is it safe in the long run ?

assuming all my self generated ids are unique also.

Upvotes: 1

Views: 65

Answers (1)

Akshat Jiwan Sharma
Akshat Jiwan Sharma

Reputation: 16000

It is recommended to generate your own _ids. So yes if you can guarantee the uniqueness of the _id field using your own _ids is a good idea.

Upvotes: 1

Related Questions