SQL Blob Querying via JSON Document Node Mapping

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Traditional SQL database systems face limitations in storing and querying non-relational data, such as document and semi-structured data, which are often stored as 'blobs' and are inaccessible for analysis, leading to complex and performance-penalty-ridden data retrieval processes.

Innovation Solution

The use of JSON document data type as an intermediate step to convert General Data Type Documents (GDTD) into a format that can be natively stored and queried in SQL relational databases, allowing for the creation of GDT-document-node records and relational schemas that enable precise analysis and storage of complex data structures.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If non-relational data (document, graph, key-value data) is stored as blob fields in relational table columns, then the data can be stored in the SQL database, but the data inside the blob becomes hidden or inaccessible to SQL queries and cannot be analyzed

Engineering Contradiction:
Improvedata storage capabilityVSAvoiddata accessibility
Core Design Contradiction:
ReliabilityVSLoss of information

Solution Approach 1:

The patent segments non-relational data into structured components that can be stored in separate relational table columns. Instead of storing entire documents as single blob entities, the data is divided into extractable fields and elements that can be individually accessed and queried through SQL, while preserving the original data structure through hierarchical path tracking.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary layer between blob storage and SQL queries. This layer includes metadata tables that store hierarchical path information, data type information, and extraction rules, enabling SQL queries to access and analyze blob contents without directly parsing the binary data.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If traditional SQL methods are used to store non-relational data as blobs, then storage is achieved, but data retrieval and analysis require complex processes with huge performance penalties

Engineering Contradiction:
Improvedata storageVSAvoiddata retrieval efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent performs preliminary actions by pre-extracting and pre-storing metadata about blob contents during the data insertion phase. Hierarchical paths, data types, and key field information are extracted and stored in separate tables before SQL queries are executed, eliminating the need for complex runtime parsing and significantly improving query performance.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent replaces the mechanical process of runtime blob parsing and analysis with a more efficient system based on pre-computed metadata and structured query operations. Instead of mechanically parsing binary data during queries, the system uses prepared metadata tables and optimized SQL joins to achieve the same analytical goals with much higher efficiency.

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

3Device complexity

If all non-relational data is stored as single blob entities, then storage simplicity is maintained, but the data cannot be decomposed and stored as multiple entities distributed over regular database fields

Engineering Contradiction:
Improvestorage structure simplicityVSAvoiddata structure flexibility
Core Design Contradiction:
Device complexityVSAdaptability or versatility

Solution Approach 1:

The patent creates a dynamic storage system where data can exist in multiple representations simultaneously. The same non-relational data can be stored as a complete blob for simplicity, while also being decomposed into structured components across multiple fields for flexibility. The system dynamically selects the appropriate representation based on query requirements, allowing both simplicity and versatility to coexist.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS11768834B1Storing and querying general data type documents in SQL relational databases
Publication Date: 2023.09.26 NEWDAY DATABASE TECH INC
  • US11768834B1 patent drawing
  • US11768834B1 patent drawing
  • US11768834B1 patent drawing

AI summary

Many types of data files can only be stored in SQL databases as Blobs—Binary Large Objects, that the database can only handle as a whole. This limits searches within the Blob. Here improved methods are taught for automatically analyzing potential Blob files, and assigning at least certain classes of potential Blob files to General Data Type documents. In some cases, the potential Blob may be automatically analyzed and mapped to a JSON document type, and this JSON document type then automatically mapped into appropriate lists of JSON-document-nodes and tables that can be stored in the SQL database, and subsequently queried. This enables much data within the (to prior art) Blob to be queried at more detailed granularity. This data can then be retrieved and used to reconstruct some or all of the original General Data Type document, which would otherwise be a Blob to prior art methods.