Foreign-key detection using pruning and scoring

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for determining foreign-key relationships between data tables are often resource-intensive and can lead to time delays, especially when performed in real-time, and may result in unsatisfactory user experiences, particularly when these relationships are not declared a priori or are lost during data format changes.

Innovation Solution

The implementation automatically determines foreign-key relationships by obtaining a set of data tables, employing pruning criteria to eliminate unlikely candidate pairs, and using a scoring function to rank potential relationships, thereby reducing resource utilization while maintaining high accuracy.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If existing methods are used to determine foreign-key relationships between data tables, then comprehensive detection can be achieved, but resource consumption increases and time delays occur

Engineering Contradiction:
Improveforeign-key detection accuracyVSAvoidcomputational resource consumption
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The patent segments the foreign-key detection process into distinct phases: candidate pair generation, filtering, and scoring. This segmentation allows the system to process potential foreign-key relationships in manageable stages, reducing overall computational resource consumption while maintaining detection accuracy through systematic evaluation at each stage.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies local quality by using a scoring function that evaluates candidate foreign-key pairs based on specific local characteristics such as data type compatibility, null value patterns, and referential integrity constraints. This localized evaluation approach focuses computational resources on promising candidates rather than uniformly processing all possible pairs, thereby reducing resource consumption while preserving detection precision.

Inventive Principle:
Principle #3Local quality

2Measurement precision

If existing methods are used to determine foreign-key relationships, then detection can be performed, but time delays occur especially in real-time scenarios

Engineering Contradiction:
Improveforeign-key relationship identification accuracyVSAvoiddetection time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent implements preliminary action by pre-generating candidate foreign-key pairs based on structural characteristics of the data tables before performing comprehensive validation. This preliminary candidate generation step filters out obviously invalid pairs early in the process, reducing the time required for full detection while maintaining accuracy through subsequent scoring and validation stages.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent applies skipping by allowing the detection process to quickly evaluate and discard low-probability candidate pairs using efficient scoring metrics, rather than performing exhaustive validation on all candidates. This rushing through of unlikely candidates significantly reduces detection time while preserving accuracy by focusing detailed analysis only on high-scoring pairs.

Inventive Principle:
Principle #21Skipping (Rushing through)

3Measurement precision

If manual identification of foreign-key relationships is performed, then accuracy can be maintained, but productivity decreases

Engineering Contradiction:
Improveforeign-key relationship detection accuracyVSAvoiddetection speed
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent implements self-service by enabling the system to automatically detect and identify foreign-key relationships without requiring manual intervention. The automated detection process uses scoring functions and validation rules to independently evaluate candidate pairs, achieving both high accuracy and improved productivity by eliminating the time-consuming manual identification process while maintaining reliable detection results.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS8386529B2Foreign-key detection
Publication Date: 2013.02.26 MICROSOFT TECHNOLOGY LICENSING LLC
  • US8386529B2 patent drawing
  • US8386529B2 patent drawing
  • US8386529B2 patent drawing

AI summary

This patent application relates to foreign-key detection. One implementation obtains a set of data tables. This implementation automatically determines foreign-key relationships of columns from separate tables of the set.