Computer program product and system for annotating a problem SQL statement for improved understanding

Inactive Publication Date: 2008-05-29
IBM CORP
View PDF21 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

[0018]The present invention helps to solve the aforementioned problem by providing an easy to use graphical user interface (GUI) for displaying a problem SQL statement and providing the option to view different statistics associated with that SQL statement. The invention parses each SQL

Problems solved by technology

The speed and efficiency with which SQL accesses the desired data affects the operating cost and application availability of these database systems.
For example, inefficient SQL code, such as poorly written code, can use significantly more hardware resources and server CPU time than optimally written code.
This inefficiency slows down the overall client-server system and incurs significant monthly software usage for the inefficient application.
If the frequency of executing an SQL is greater than the time it takes to execute the SQL, then a backlog of work accumulates and the application executing the work (and possibly all other applications on the system) becomes unavailable to users.
However, such SQL performance tuning requires significant skill and experience and the complexity of SQL is constantly evolving to meet more complex business needs.
Many database administrators and applications developers do not ha

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Computer program product and system for annotating a problem SQL statement for improved understanding
  • Computer program product and system for annotating a problem SQL statement for improved understanding
  • Computer program product and system for annotating a problem SQL statement for improved understanding

Examples

Experimental program
Comparison scheme
Effect test

first embodiment

[0036]the present invention provides a computer program product that derives the data content and format as displayed in graphical display window 201. More specifically, the computer program product of the present invention receives problem SQL statement from any one of a number of possible sources, where one possible source is the application program 20 as depicted in FIG. 1. Other possible sources of problem SQL statements include: statement lists generated by the DBMS 40, such as by an internal monitoring tool, a dynamic statement cache, or an external query reporting tool. Still other possible sources include, but are not limited to: database catalogs, alternate forms generated by SQL optimizers, or even statements that have been manually entered or copied into a text field.

[0037]After the computer program product of the present invention receives the problem SQL statement, the computer program product parses this statement into a plurality of separate clauses and formats these cla

second embodiment

[0042]the present invention provides a system 400 for analyzing the problem SQL statement 301 shown in FIG. 3. This inventive system 400 is illustrated in FIG. 4. The following description refers to FIGS. 1 through 4.

[0043]A SQL optimization module 401, such as for example, a particular application program 20 executing at the user interface 10, receives a problem SQL statement 301 and transforms the problem SQL statement 301 into an alternate form 41 which may be more efficient. This alternate form 41 includes suggested changes to at least one of the query clauses of the original SQL problem statement 301. The alternate form SQL statement 41 is sent from the SQL optimization module 401 to a text processing module 402.

[0044]Text processing module 402 parses the alternate form SQL statement 41 into a plurality of alternate query clauses and formats these alternate clauses into a hierarchical tree structure 42 including one alternate SQL query clause per indented line. The text processing

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

A computer program product and system are disclosed for parsing a problem SQL statement into query clauses, formatting these query clauses into a hierarchical tree structure, generating performance statistics for clauses that have associated performance statistics and displaying the formatted SQL statement with each clause contained on a separate display line annotated with its corresponding associated performance statistics on the same display line and with the hierarchical tree structure represented by indention levels of the separate display lines.

Description

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Owner IBM CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products