News for hackers. Stuff that matters.
Re:Azure Cosmos DB: Microsoft's Cloud-Born Globally Distribu... by unoti on Sunday April 14, 2019 @02:00PM (#19660728)
I usually put multiple document types into a single collection and have a “type” field to get around this. The fields are indexed so this is efficient. To decide when to use a different collection I look at the scalability and other settings at the collection level, and group things that have similar needs together.
Re:Azure Cosmos DB: Microsoft's Cloud-Born Globally Distribu... by tracker1 on Thursday April 18, 2019 @01:13AM (#19688894)
If you only have a few "type" options, that may be a poorly performing index unless it's used as a secondary to a query that narrows results more.