I have a table in MongoDB having UUID field named artwork_id, and i need to create index on that field, which type of index will be better?
db.artwork_images.createIndex( { artwork_id: "text" } )
OR
db.artwork_images.createIndex( { artwork_id: 1 } )
[Image of UUID field here][1] [1]: https://i.stack.imgur.com/XvHsN.png