Citrix Systems, Inc.
Enforcing uniqueness of property-value pairs in a schemaless data store
Last updated:
Abstract:
A technique for enforcing uniqueness of property-value pairs in a schemaless data store includes receiving a request to uniquely store a property-value pair PV1 in a first collection of the data store. In response to receiving the request, a property-value pair PV2 is constructed that includes (a) a property on which the data store enforces uniqueness in a second collection of the data store and (b) a corresponding value that provides a formatted version of PV1. The technique includes performing a store-if-unique operation configured to (i) generate a failing result in response to PV2 already existing in the second collection and (ii) store PV2 in the second collection in response to PV2 not already existing in the second collection. If the store-if-unique operation fails, the request to store PV1 in the first collection is denied; otherwise, the request is granted.
Utility
3 Apr 2017
3 Mar 2020