Method and an apparatus for the processing of queries to a database
First Claim
1. A method of processing queries to a relational database stored on a computer readable medium, said computer readable medium comprising a representation of relations between tables in the database, said method comprising the steps of:
- identifying tables which contain data requested by a user;
generating a plurality of queries, in that a set of primary tables is selected from the identified tables, and in that, for each primary table, a set of tables is selected which set is formed by gradually increasing the number of relations maximally used to reach, via said relations, from the primary table to any table included in the set, until the set of tables contains the data requested by the user; and
selecting an optimal one of the plurality of queries by measuring a response time as the time it takes to obtain data in the relational database with a given query, and selecting the query or queries giving rise to the shortest response time as an optimal query.
1 Assignment
0 Petitions
Accused Products
Abstract
An apparatus and a method of processing queries to a relational database stored on a computer readable medium including a representation of relations between sections in tables in the database. The method includes identifying tables which contain a specified type of data, generating a plurality of queries (e.g., SQL queries) by selecting at least some primary tables from the identified tables, selecting a set of tables, each table in the set being related to a primary table via N relations, and repeating this, N being varied for each repetition, until the set of tables contains the specified data, and selecting an optimal one of the generated queries.
-
Citations
7 Claims
-
1. A method of processing queries to a relational database stored on a computer readable medium, said computer readable medium comprising a representation of relations between tables in the database, said method comprising the steps of:
-
identifying tables which contain data requested by a user;
generating a plurality of queries, in that a set of primary tables is selected from the identified tables, and in that, for each primary table, a set of tables is selected which set is formed by gradually increasing the number of relations maximally used to reach, via said relations, from the primary table to any table included in the set, until the set of tables contains the data requested by the user; and
selecting an optimal one of the plurality of queries by measuring a response time as the time it takes to obtain data in the relational database with a given query, and selecting the query or queries giving rise to the shortest response time as an optimal query. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
Specification