Method to provide management of query output
First Claim
Patent Images
1. A computer-readable storage medium containing a program which, when executed by a processor, performs an operation of processing or managing query executions against a database, the operation comprising:
- receiving, from a requesting entity, a query comprising a plurality of result fields to be returned following execution of the query;
determining whether the number of the plurality of result fields exceeds a maximum number of columns capable of being returned for a single query; and
if so;
creating a plurality of sub-queries, wherein each sub-query includes only a portion of the result fields, not greater than the maximum number of columns capable of being returned, and wherein the portions collectively include all of the result fields of the query;
executing the plurality of sub-queries in lieu of the query;
receiving a separate result set for each of the sub-queries;
returning the results to the requesting entity; and
mapping the separate result set for each of the sub-queries to a singular output view for presentation to a user; and
if not;
executing the query as received from the requesting entity; and
returning the results to the requesting entity.
0 Assignments
0 Petitions
Accused Products
Abstract
System and article of manufacture for processing queries that are executed against a database. In one embodiment, the database environment imposes a limit on the number of columns capable of being returned for a single query. Accordingly, a single query is replicated to produce N sub-queries, each selecting a portion of the total number of result fields specified in the single query.
30 Citations
11 Claims
-
1. A computer-readable storage medium containing a program which, when executed by a processor, performs an operation of processing or managing query executions against a database, the operation comprising:
-
receiving, from a requesting entity, a query comprising a plurality of result fields to be returned following execution of the query; determining whether the number of the plurality of result fields exceeds a maximum number of columns capable of being returned for a single query; and if so; creating a plurality of sub-queries, wherein each sub-query includes only a portion of the result fields, not greater than the maximum number of columns capable of being returned, and wherein the portions collectively include all of the result fields of the query; executing the plurality of sub-queries in lieu of the query; receiving a separate result set for each of the sub-queries; returning the results to the requesting entity; and mapping the separate result set for each of the sub-queries to a singular output view for presentation to a user; and if not; executing the query as received from the requesting entity; and returning the results to the requesting entity. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer-readable storage medium containing a program which, when executed by a processor, performs a process for processing or managing query executions against a database, the process comprising:
-
receiving an abstract query including at least a plurality of result fields, each corresponding to a logical field definition of a data abstraction model abstractly describing the data in the database; determining whether the number of the plurality of result fields exceeds a maximum number of columns capable of being returned for a single query; if so; creating a plurality of sub-queries, wherein each sub-query includes only a portion of the result fields, not greater than the maximum number of columns capable of being returned, and wherein the portions collectively include all of the result fields of the query; executing the plurality of sub-queries in lieu of the query; receiving a separate result set for each of the sub-queries; returning the results to the requesting entity; and mapping the separate result set for each of the sub-queries to a singular output view for presentation to a user; and if not; executing the query as received from the requesting entity; and returning the results to the requesting entity. - View Dependent Claims (8, 9, 10)
-
-
11. A computer, comprising:
-
one or more processors; a user interface for composing queries; a query manager, which when executed by one or more of the processors, is configured to; receive a query composed in the user interface and comprising a plurality of result fields to be returned following execution of the query; determine whether the number of the plurality of result fields exceeds a maximum number of columns capable of being returned for a single query; if so; create a plurality of sub-queries, wherein each sub-query includes only a portion of the result fields, not greater than the maximum number of columns capable of being returned, and wherein the portions collectively include all of the result fields of the query; execute the plurality of sub-queries in lieu of the query; receive a separate result set for each of the sub-queries; and return the results to a requesting entity; and if not; execute the query as received from the requesting entity; and return the results to the requesting entity; and a mapping algorithm, which when executed by one or more of the processors, is configured to map the separate result set for each of the sub-queries to a singular output view for presentation to a user.
-
Specification