Irreducible Ambiguous Groups for Database Query Context Management

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current database query context management is inefficient, requiring numerous contexts to resolve ambiguities, especially in large or federated database schemas, leading to high maintenance costs and complexity.

Innovation Solution

The introduction of Irreducible Ambiguous Groups (IAGs) within a database schema, where contexts are categorized into mandatory, excluded, and neutral joins, allowing for automated context creation and reduction, simplifying query resolution by designating specific joins as mandatory or excluded.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traditional context management is used to resolve query ambiguities, then query resolution accuracy is improved, but the number of contexts and maintenance complexity increases significantly

Engineering Contradiction:
Improvequery resolution accuracyVSAvoidcontext management complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent segments the database schema into Irreducible Ambiguous Groups (IAGs), which are minimal subgraphs containing all loops. By dividing the schema into these discrete units, the system can manage ambiguities locally within each IAG rather than globally across the entire schema, reducing the number of contexts needed while maintaining resolution accuracy.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent extracts and isolates ambiguous loops from the larger database schema by identifying IAGs. These IAGs are then handled separately with dedicated context rules, allowing the system to focus computational resources only on ambiguous portions rather than managing contexts for the entire schema, thereby reducing overall complexity.

Inventive Principle:
Principle #2Taking out (Extraction)

2Reliability

If multiple contexts are created to cover all possible query interpretations, then query ambiguity resolution is improved, but maintenance cost and user burden increase

Engineering Contradiction:
Improvequery ambiguity resolutionVSAvoidcontext maintenance ease
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The patent performs preliminary analysis of the database schema to automatically identify IAGs and pre-compute the necessary contexts for each group. This preliminary action eliminates the need for users to manually create and maintain contexts, as the system has already prepared the appropriate context rules before queries are executed, reducing user burden while maintaining reliable ambiguity resolution.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system implements self-service by automatically generating and managing contexts based on the identified IAGs. Rather than requiring users to manually define contexts for each possible query scenario, the system autonomously determines the appropriate contexts from the schema structure, eliminating maintenance overhead for users while ensuring comprehensive query resolution.

Inventive Principle:
Principle #25Self-service

3Adaptability or versatility

If comprehensive contexts are maintained for large or federated database schemas, then query resolution coverage is improved, but system performance and scalability deteriorate

Engineering Contradiction:
Improvequery resolution coverageVSAvoidsystem performance
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

By segmenting the database schema into discrete IAGs, the system can process and manage contexts for each group independently rather than handling the entire schema as a single unit. This segmentation enables better scalability and performance, as the system only needs to activate and process contexts relevant to the specific IAG involved in each query, rather than maintaining comprehensive contexts for all possible queries across the entire schema.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS8423523B2Apparatus and method for utilizing context to resolve ambiguous queries
Publication Date: 2013.04.16 SAP FRANCE
  • US8423523B2 patent drawing
  • US8423523B2 patent drawing
  • US8423523B2 patent drawing

AI summary

A computer readable storage medium includes executable instructions to derive from a database schema an irreducible ambiguous group comprising a sub-schema with a set of vertices wherein any two vertices are part of a loop. Contexts are defined on the sub-schema. For each context, joins in the sub-schema are designated as mandatory joins, excluded joins and neutral joins. A selection of a context from multiple contexts invoked by a path characterizing a query is processed. The query is resolved using the context.