mongodb - Mongo UUIDs vs ObjectId creation and performance -



mongodb - Mongo UUIDs vs ObjectId creation and performance -

i considering using uuids v1 document indexes instead of objectid. concerned performance , unsure of best way proceed switching uuids.

my performance concern stems comments objectid beingness more efficient b-tree/indexing. kind of performance issues looking at?

my other concern unique factor. creating api store publicly accessible documents , have consider sharding. , there document mongo issues objectids uniqueness , sharding.

i not clear on issues might arise ability check uniqueness across shards , if create problems situation. (basically people can create documents website or api , search them same way. lets think in low millions of documents sake of question. more concerned fetches lots of parallels inserts).

it seems there pros , cons both types of ids. can clarify this?

mongodb

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -