Query Dialect for Dynamic Schema Database Consistency

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing query languages, such as SQL, struggle to execute consistently and accurately on dynamic schema databases due to their reliance on consistent data formats, leading to unexpected, random, or failed results.

Innovation Solution

The implementation of a query dialect, such as 'MongoSQL', that exposes the flexible schemas of dynamic databases, enabling compatibility with structured queries like SQL-92, and allowing for expressive querying native to the dynamic schema system.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If SQL is executed against dynamic data, then query flexibility is improved, but result consistency deteriorates

Engineering Contradiction:
Improvequery flexibilityVSAvoidresult consistency
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The patent introduces an intermediary layer between SQL queries and dynamic database schemas. This intermediary translates SQL's rigid structure into flexible queries that can handle dynamic schemas while maintaining consistent results. The translation layer adapts the query execution to match the actual data structure without requiring schema pre-definition.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent makes the query execution dynamic by allowing the query plan to adapt based on the actual data structure encountered at runtime. Instead of requiring a fixed schema beforehand, the system dynamically adjusts query execution to work with whatever structure the data currently has, while still returning consistent and predictable results.

Inventive Principle:
Principle #15Dynamics

2Adaptability or versatility

If a query dialect is implemented to bridge SQL and dynamic schemas, then compatibility with structured queries is improved, but system complexity increases

Engineering Contradiction:
Improvecompatibility with structured queriesVSAvoidsystem complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent creates a universal query interface that can handle both traditional structured queries and dynamic schema queries through a single system. The query dialect serves multiple functions: it maintains SQL syntax compatibility, adapts to dynamic schemas, and preserves native database semantics, making the system multi-functional without requiring separate query processors.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent implements a query dialect that copies and adapts SQL semantics to work with dynamic schemas rather than fundamentally changing the underlying database architecture. This allows SQL-like queries to be executed on dynamic data by creating a semantic layer that mimics relational behavior while working with non-relational data structures.

Inventive Principle:
Principle #26Copying

3Ease of operation

If prior MySQL-based dialects are used to connect business integration tools to dynamic databases, then tool connectivity is improved, but query expressiveness and performance deteriorate

Engineering Contradiction:
Improvetool connectivityVSAvoidquery expressiveness and performance
Core Design Contradiction:
Ease of operationVSProductivity

Solution Approach 1:

Instead of forcing dynamic database queries to conform to MySQL's rigid relational assumptions, the patent inverts the approach by making MySQL's query semantics adapt to the dynamic schema. This allows business integration tools to connect using familiar SQL syntax while the underlying execution engine adapts to the actual data structure, preserving both tool connectivity and query expressiveness.

Inventive Principle:
Principle #13The other way round (Inversion)

Data Source

PatentUS12265539B2Systems and methods for managing structured query language on dynamic schema databases
Publication Date: 2025.04.01 MONGODB INC
  • US12265539B2 patent drawing
  • US12265539B2 patent drawing
  • US12265539B2 patent drawing

AI summary

In various aspects of the present disclosure, systems and methods are described to identify and resolve structured queries so they execute consistently and accurately against any data architecture, and for example, dynamic or unstructured database stores. According to one embodiment, a dynamic schema data system implements a query dialect that is configured to expose underlying flexible schemas of the dynamic schema data system, any structured data, unstructured or partially structured data, and expressive querying native to the dynamic schema system in a language that is compatible with structured queries, and for example, compatible with SQL-92. In further embodiments, the query dialect is configured to enable consistency with existing dynamic schema database query semantics (e.g., the known MongoDB database and associated query semantics).