Designing record keys for document-oriented database - best practices
问题 Our team has started development of an application backed by Couchbase DB; for every one of us it's the first experience with a no-SQL database. We've started to define our entities and adopted the practice of using "type" prefixes, suggested by Couchbase manual: Entity "A": key: a#123 Entity "B": key: b#123 But we realized that we're getting confused with choosing the strategy for creating compound document keys. We use counters a lot, and they require their own documents. Our keys have