Document Database Version Tagging for Schema Consistency

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current systems lack the ability to verify that the data model version used by an application matches the data model in a document database, leading to potential errors when reading documents with mismatched models.

Innovation Solution

Implementing a data model versioning system that uses version tags in document templates and databases to compare and migrate data models, ensuring compatibility between the application's expected data model and the document database's schema.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If a document database uses a schema-free, freely structured data model, then flexibility and ease of data storage are improved, but the ability to verify data model consistency between application and database deteriorates

Engineering Contradiction:
Improveflexibility of data storageVSAvoiddata model consistency verification
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The patent applies preliminary action by embedding version tags in document templates beforehand, and by automatically comparing these version tags with the application's expected data model version before data operations occur. This pre-verification mechanism ensures data model consistency without restricting the schema-free nature of the document database, resolving the contradiction between flexibility and reliability.

Inventive Principle:
Principle #10Preliminary action

2Adaptability or versatility

If the data model changes over time in new application releases, then adaptability and functionality are improved, but the risk of reading incorrect data or encountering errors increases

Engineering Contradiction:
Improvedata model evolution capabilityVSAvoiddata reading accuracy
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The patent implements feedback by automatically comparing the version tag in the document template with the version tag stored in the document database after data model changes occur in new application releases. When a mismatch is detected, the system provides feedback about the version inconsistency, allowing the application to handle the situation appropriately (such as migrating data or adjusting the data model), thus maintaining data reading accuracy while enabling continuous adaptability.

Inventive Principle:
Principle #23Feedback

3Reliability

If version tagging and comparison mechanisms are implemented, then data model consistency is improved, but system complexity increases

Engineering Contradiction:
Improvedata model consistencyVSAvoidversion management system complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent applies parameter changes by using simple version tags (numeric or string identifiers) to represent different data model versions, rather than implementing complex version control systems. The comparison mechanism simply checks whether the version tag in the template matches the version tag in the database, providing an elegant and low-complexity solution that maintains data model consistency without significantly increasing system complexity.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS9245011B2Data model versioning for document databases
Publication Date: 2016.01.26 RED HAT INC
  • US9245011B2 patent drawing
  • US9245011B2 patent drawing
  • US9245011B2 patent drawing

AI summary

A data model versioning method may read a first version tag associated with a document database. The method compares the first version tag to a second version tag associated with a current document template of an application, the second version tag indicating a document format used by the current document template for documents created by the application. When the first version tag does not match the second version tag, the method performs a version migration operation to update a document format of documents in the document database.