Enforcing Uniqueness in Schemaless Data Stores via Intermediary Mapping

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Schemaless data stores lack a built-in mechanism to enforce uniqueness for arbitrary property-value pairs, leading to inefficiencies and resource-intensive workarounds for ensuring uniqueness, such as searching through millions of documents.

Innovation Solution

The method constructs a property-value pair using a system property like document ID or partition key, performing a store-if-unique operation to leverage the data store's built-in uniqueness enforcement, ensuring that the property-value pair is unique by storing it in a secondary collection before allowing storage in the primary collection.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If schemaless data stores are used to provide scalability and access speeds, then productivity is improved, but the ability to enforce uniqueness for arbitrary property-value pairs deteriorates

Engineering Contradiction:
Improveaccess speedsVSAvoiduniqueness enforcement
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent introduces an intermediary mechanism that translates uniqueness enforcement requirements for arbitrary properties into the data store's native uniqueness constraints on system properties. By constructing property-value pairs that map user-defined properties to system-enforced unique properties, the solution mediates between the flexible schemaless model and the need for uniqueness guarantees without requiring full relational database functionality.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If manual uniqueness checking is implemented by searching through documents, then uniqueness enforcement is improved, but use of energy and computational resources worsens

Engineering Contradiction:
Improveuniqueness enforcementVSAvoidcomputational resources
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent applies preliminary action by pre-constructing property-value pairs in a specific format that enables the data store's native uniqueness constraints to automatically enforce uniqueness during the storage operation itself. This eliminates the need for subsequent manual searching and checking, as the uniqueness constraint is built into the storage mechanism from the beginning.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent replaces the mechanical approach of manually searching through documents to check for uniqueness with a more efficient mechanism that leverages the data store's built-in uniqueness enforcement. By transforming the problem into one that the data store can handle natively through its constraint system, the solution substitutes an O(n) search operation with an O(1) constraint check.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

3Adaptability or versatility

If schemaless data stores store data with minimal structure, then adaptability is improved, but the ability to enforce uniqueness constraints deteriorates

Engineering Contradiction:
Improveschema flexibilityVSAvoiduniqueness constraint enforcement
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The patent changes the parameter representation by transforming user-defined property-value pairs into a format that maps to the data store's system properties, which have built-in uniqueness constraints. This parameter transformation allows the same data to be stored flexibly in the schemaless collection while simultaneously enabling uniqueness enforcement through the system property mapping.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS10579612B2Enforcing uniqueness of property-value pairs in a schemaless data store
Publication Date: 2020.03.03 CITRIX SYSTEMS INC
  • US10579612B2 patent drawing
  • US10579612B2 patent drawing
  • US10579612B2 patent drawing

AI summary

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.