Two-Sided Halted Range Scan for Database Overlap Enforcement

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current mechanisms for enforcing the 'WITHOUT OVERLAPS' constraint in database operations are inefficient, requiring extensive index scans and lacking an optimal method to prevent overlapping ranges associated with an entity.

Innovation Solution

Implementing a two-sided halted range scan on the index (ENo, EStart, EEnd) to check for overlaps by examining only two neighboring index entries, reducing the need for full-range scans and optimizing database operations by leveraging the prior knowledge that existing rows lack overlaps.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a natural index scan method is used to check for range overlaps, then data integrity is maintained, but search time and computational resources increase significantly

Engineering Contradiction:
Improvedata integrityVSAvoidsearch time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent applies preliminary action by checking only the two neighboring index entries (previous and next) before inserting or updating a range record. This preliminary check ensures data integrity by preventing overlaps while avoiding the need for comprehensive full-range scans, thus resolving the contradiction between maintaining reliability and reducing time loss.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If comprehensive index scans are performed to enforce WITHOUT OVERLAPS constraint, then range overlap prevention is ensured, but device complexity and computational overhead increase

Engineering Contradiction:
Improveconstraint enforcementVSAvoidcomputational overhead
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent applies local quality by focusing the overlap check only on local neighboring entries in the index (the immediate previous and next entries) rather than performing global comprehensive scans. This localized approach ensures constraint enforcement while significantly reducing computational overhead and device complexity.

Inventive Principle:
Principle #3Local quality

3Loss of information

If explicit end dates are stored for all ranges, then data completeness is improved, but storage requirements increase

Engineering Contradiction:
Improvedata completenessVSAvoidstorage requirements
Core Design Contradiction:
Loss of informationVSQuantity of substance

Solution Approach 1:

The patent applies the taking out principle by extracting and storing only the start dates of ranges in the index structure, rather than storing both start and end dates for every range. The end boundaries are implicitly derived from the next range's start date, thus maintaining data completeness while reducing storage requirements.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS12079213B2Automated enforcement of range-keyed data
Publication Date: 2024.09.03 ORACLE INT CORP
  • US12079213B2 patent drawing
  • US12079213B2 patent drawing
  • US12079213B2 patent drawing

AI summary

Techniques are disclosed hereafter for efficiently enforcing a “WITHOUT OVERLAP” range constraint by confirming primary-key integrity for a new or modified row (the “target row”) by checking just two neighboring index entries, using a new “two-sided halted range scan” of the same key index on entities which have range-endpoints data as part of their primary key. Techniques are described for reducing search time and resources in situations where a query specifies an entity and a point within a non-overlapping range. Techniques are also described for optimized handling of queries that do not specify a primary key but have both a range condition and a filter on a non-key column.