Analysis method and apparatus for a parallel system
First Claim
1. A method of using a test system to plan the execution of a query in a target system, comprising:
- receiving by the test system environment information that indicates how the target system is configured, wherein the test system is configured to emulate respective performances of multiple query-execution options of the target system;
storing cost data that indicates, for each of the multiple query-execution options, the cost in computing resources associated with choosing that option in the target system;
defining one or more diagnostic SQL statements comprising a diagnostic Set Costs statement to direct the test system to use an identified portion of the cost data to activate use of the cost data; and
using the environment information and the cost data in determining a most efficient query plan for execution by the target system.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and apparatus of analyzing a target system comprises receiving information relating to an environment of the target system and storing cost data based on the environment information. The plan and its estimated performance for a query may be determined based on the cost data. The environment information may pertain to the environment of a parallel system (e.g., a multi-node parallel system, a single-node parallel system having plural central processing units or a system running plural virtual processors) that is running a parallel database. The cost data may identify a number of nodes in the target system, a number of central processing units in each node of the target system, and other types of system information. The cost data may be stored in a relational table having a plurality of rows. Each row of the relational table may correspond to a different target system. The cost data is used to emulate the environment of the target system and is usable by an optimizer module to derive a query plan for an SQL (structured query language) query having the lowest (or lower) cost.
45 Citations
27 Claims
-
1. A method of using a test system to plan the execution of a query in a target system, comprising:
-
receiving by the test system environment information that indicates how the target system is configured, wherein the test system is configured to emulate respective performances of multiple query-execution options of the target system; storing cost data that indicates, for each of the multiple query-execution options, the cost in computing resources associated with choosing that option in the target system; defining one or more diagnostic SQL statements comprising a diagnostic Set Costs statement to direct the test system to use an identified portion of the cost data to activate use of the cost data; and using the environment information and the cost data in determining a most efficient query plan for execution by the target system. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. A software module for execution by a test system for use in planning the execution of a query in a target system, the software module comprising instructions embodied on a computer-readable media that, when executed, cause:
-
an interface to receive environment information that indicates how the target system is configured; a storage device to store cost data that indicates, for each of multiple query-execution options, the cost in computing resources associated with choosing that option in the target system; a controller to dump the cost data into the test system in response to a first diagnostic SQL statement; and an optimizer module to determine a most efficient access plan for execution of the query by the target system based on emulation of each of the multiple query-execution options on the target system using the environment information and the cost data. - View Dependent Claims (21, 22, 23, 24, 25, 26, 27)
-
Specification