Relational database joins for inexact matching
AssigneeTIBCO Software Inc.
InventorsFletcher Foti, Bruce Zuidema
Life of this patent
Estimating the term…
Abstract
Methods and systems for performing a query over joined tables in the context of inexact matching provide efficient search engine functionality. The systems and methods are used to perform an efficient query on a parent table and joined child tables. Search grams are determined based on the query and parent records and child records are scanned for the search grams. Gram scores are computed based on a degree of matching between the parent and child records and the search grams.
Claims19
A method for performing an efficient query on a parent table and one or more joined child tables, the method comprising:
- determining one or more search grams based on the query;
- identifying a parent table having one or more parent table partitions including one or more respective parent records grouped therein;
- identifying one or more child table partitions from one or more joined child tables, the one or more child table partitions including one or more respective child records grouped therein, wherein the identified one or more child table partitions are associated with a first of the one or more parent table partitions, and wherein the child records grouped within the identified one or more child table partitions are associated with the one or more parent records of the associated first of the one or more parent table partitions;
- scanning parent records in the first of the parent table partitions for the one or more search grams;
- scanning child records in the identified one or more child table partitions associated with the first of the parent table partitions for the one or more search grams;
- computing parent gram scores for scanned parent records based on a degree of matching with the one or more search grams;
- computing child gram scores for scanned child records based on a degree of matching with the one or more search grams;
- computing aggregate scores for each parent record and its associated child records based on parent and child gram scores;
- and
- repeating the identifying one or more child tables, scanning parent and child records, and computing parent and child gram scores and aggregate scores for each of the parent table partitions.
A system for performing an efficient query on a parent table and one or more joined child tables, the system comprising:
- a processor;
- a memory element;
- and
- a communications device, wherein the processor and memory element are in communication via the communications device, and wherein the processor is operable for:
- determining one or more search grams based on the query;
- identifying a parent table having one or more parent table partitions including one or more respective parent records grouped therein;
- identifying one or more child table partitions from one or more joined child tables, the one or more child table partitions including one or more respective child records grouped therein, wherein the identified one or more child table partitions are associated with a first of the one or more parent table partitions, and wherein the child records grouped within the identified one or more child table partitions are associated with the one or more parent records of the associated first of the one or more parent table partitions;
- scanning parent records in the first of the parent table partitions for the one or more search grams;
- scanning child records in the identified one or more child table partitions associated with the first of the parent table partitions for the one or more search grams;
- computing parent gram scores for scanned parent records based on a degree of matching with the one or more search grams;
- computing child gram scores for scanned child records based on a degree of matching with the one or more search grams;
- computing aggregate scores for each parent record and its associated child records based on parent and child gram scores;
- and
- repeating the identifying one or more child tables, scanning parent and child records, and computing parent and child gram scores and aggregate scores for each of the parent table partitions.
Determining one or more search grams based on the query;
- identifying a parent table having one or more parent table partitions including one or more respective parent records grouped therein;
- identifying one or more child table partitions from one or more joined child tables, the one or more child table partitions including one or more respective child records grouped therein, wherein the identified one or more child table partitions are associated with a first of the one or more parent table partitions, and wherein the child records grouped within the identified one or more child table partitions are associated with the one or more parent records of the associated first of the one or more parent table partitions;
- scanning parent records in the first of the parent table partitions for the one or more search grams;
- scanning child records in the identified one or more child table partitions associated with the first of the parent table partitions for the one or more search grams;
- computing parent gram scores for scanned parent records based on a degree of matching with the one or more search grams;
- computing child gram scores for scanned child records based on a degree of matching with the one or more search grams;
- computing aggregate scores for each parent record and its associated child records based on parent and child gram scores;
- and
- repeating the identifying one or more child tables, scanning parent and child records, and computing parent and child gram scores and aggregate scores for each of the parent table partitions;
- generating a mapping structure having parent and child table partition association information and parent and child records association information;
- and
- referencing the mapping structure to determine associations between parent and child table partitions and between parent and child records.
Dependencies are inferred from the claim text.