Data processing: database and file management or data structures – Database design – Data structure types
Reexamination Certificate
1999-11-09
2003-01-14
Breene, John (Department: 2177)
Data processing: database and file management or data structures
Database design
Data structure types
C707S793000, C707S793000, C707S793000, C707S793000, C707S793000, C345S215000
Reexamination Certificate
active
06507846
ABSTRACT:
FIELD OF THE INVENTION
The present invention is directed to an improvement in relational database systems and in particular to the indexing of relational databases to permit efficient relational queries on databases.
BACKGROUND OF THE INVENTION
In relational database systems, it is important to create indexes on columns of the tables in the database. It is well-known that the efficiency of relational operations such as the JOIN operation or the evaluation of query constraints (SELECTION) is improved if the relevant columns of the table across which the operation take place are indexed.
There have been many approaches to the problem of efficiently creating indexes for relational database tables that support fast access, and that use limited amounts of storage. The B-tree and variations are well-known data structures used for indexing relational databases.
From the point of view of speeding query processing, it is desirable to have available indexes for all columns (and combinations) of all tables in a relational database. However, it is often not advantageous (or even feasible) to do so, since the time required to individually create the indexes, and the storage used by all the indexes after creation, is prohibitive.
It is therefore desirable to simultaneously create a large number of indices on all the tables of a database in a space and time efficient manner.
SUMMARY OF THE INVENTION
According to one aspect of the present invention, there is provided an improved index for relational databases.
According to a further aspect of the present invention, there is provided an indexing system for structured or semi-structured source data comprising a tokenizer for accepting source data and generating tokens representing the source data, the tokens from the tokenization representing the source data in a relational view, where for tokens representing a subset of the source data, the system generates tokens identifying the table and column of the subset of the data in the relational view of the source data, and an index builder for building index structures based on the tokens generated by the tokenizer, the index builder creating indexes which comprise a set of positional indexes for indicating the position of token data in the source data, a set of lexicographical indexes for indicating the lexicographical ordering of all tokens, the set of lexicographical indexes comprising a sort vector index and a join bit index, associated with the sort vector index, a set of data structures mapping between the lexicographical indexes and the positional indexes, comprising a lexicographic permutation data structure, the index builder creating a temporary sort vector data structure for generating the lexicographic permutation data structure and the sort vector index.
According to a further aspect of the present invention, there is provided a method for accessing the indexing system to carry out relational queries involving comparisons of data in the source data, the method comprising the steps of accessing the sort vector index for tokens corresponding to source data to be compared, determining, by following the associated join bit index, whether the source data to be compared, as indexed in the sort vector index, matches, signalling whether the source data matches or does not match. According to a further aspect of the present invention, the method comprises the further step of utilizing the positional indexes to return source data when a match is signalled.
According to a further aspect of the present invention, there is provided a method for indexing structured or semi-structured source data comprising the steps of accepting source data and generating tokens representing the source data, the tokens from the tokenization representing the source data in a relational view, where for tokens representing a subset of the source data, the system generates tokens identifying the table and column of the subset of the data in the relational view of the source data, and building index structures based on the tokens generated by the tokenizer, the step of building index structures further comprising the steps of building a set of positional indexes for indicating the position of token data in the source data, building a set of lexicographical indexes for indicating the lexicographical ordering of all tokens, the set of lexicographical indexes comprising a sort vector index and a join bit index, and building a set of data structures mapping between the lexicographical indexes and the positional indexes, comprising a lexicographic permutation data structure, the sort vector index and the lexicographic permutation data structure being built from a temporary sort vector data structure.
According to a further aspect of the present invention, there is provided a computer program product tangibly embodying a program of instructions executable by a computer to perform the above method.
Advantages of the present invention include the provision of indexes for columns of tables in relational databases which require relatively small amounts of storage, and which are capable of being accessed efficiently. A further advantage relates to minimizing disk access to help process queries much faster than traditional SQL products.
REFERENCES:
patent: 4644471 (1987-02-01), Kojima et al.
patent: 5926807 (1999-07-01), Peltonen et al.
patent: 6154213 (2000-11-01), Rennison et al.
patent: 6272495 (2001-08-01), Hetherington
patent: 6275822 (2001-08-01), Consens et al.
Ellen M. Voorhees, “Query expansion using lexical-semantic relations”, 1994, Sringer-Verlag New York, Inc, NY, USA, ISBN:0-387-198889-X, pp. 61-69.*
Adam et al., “A form-based Natural Language from-end to a CIM database”, Mar.-Apr. 1997, ISSN: 1041-4347, pp. 238-250.
Ali Mohammad
Beyer Weaver & Thomas LLP
Breene John
Joint Technology Corporation
LandOfFree
Indexing databases for efficient relational querying does not yet have a rating. At this time, there are no reviews or comments for this patent.
If you have personal experience with Indexing databases for efficient relational querying, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Indexing databases for efficient relational querying will most certainly appreciate the feedback.
Profile ID: LFUS-PAI-O-3072633