JP2002149652A - Method for processing database retrieval, its execution device and recording medium stored with its processing program - Google Patents

Method for processing database retrieval, its execution device and recording medium stored with its processing program

Info

Publication number
JP2002149652A
JP2002149652A JP2000338988A JP2000338988A JP2002149652A JP 2002149652 A JP2002149652 A JP 2002149652A JP 2000338988 A JP2000338988 A JP 2000338988A JP 2000338988 A JP2000338988 A JP 2000338988A JP 2002149652 A JP2002149652 A JP 2002149652A
Authority
JP
Japan
Prior art keywords
sql
search
api
name
input value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000338988A
Other languages
Japanese (ja)
Inventor
Kazumi Ishifuchi
一三 石淵
Atsushi Maeda
淳志 前田
Masahiro Yamase
正広 山瀬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2000338988A priority Critical patent/JP2002149652A/en
Publication of JP2002149652A publication Critical patent/JP2002149652A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a technique capable of detecting whether an SQL defined while masked like a script exerts influence on retrieval performance before performing its database retrieval processing to inform a user of this. SOLUTION: The name of a table and the name of a column being retrieving objects are obtained from an SQL generated from an API to be used for database retrieval. When the name of the table and the name of the column being the obtained retrieving objects exist in a table structure information file showing the name of a column with an index, the absence of influence on retrieval performance under the retrieving condition of the SQL generated from the input value of the API is outputted to an output device. When the name of the table and the name of the column being the obtained retrieving objects never exist in the table structure information file, the presence of influence on retrieval performance under the retrieving condition of the SQL generated from the input value of the API is outputted to the output device.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はSQLを使用したリ
レーショナルデータベースの検索を行うデータベース検
索処理装置に関し、特にデータベース検索における性能
劣化要因を特定するデータベース検索処理装置に適用し
て有効な技術に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database search processing apparatus for searching a relational database using SQL, and more particularly to a technique which is effective when applied to a database search processing apparatus for specifying a performance deterioration factor in a database search. is there.

【0002】[0002]

【従来の技術】従来のリレーショナルデータベースシス
テムでは、リレーショナルデータベースシステムを操作
する為の言語またはコマンドであるSQL(Structured
QueryLanguage)を用いてデータベースの検索を行って
いる。
2. Description of the Related Art In a conventional relational database system, an SQL (Structured) which is a language or a command for operating the relational database system is used.
QueryLanguage) is used to search the database.

【0003】このSQLはデータ定義言語のDDL(Dat
a Description Language)、データ操作言語のDML(Da
ta Manipulation Language)、データ制御言語のDCL
(Data Control Language)に細分されており、それぞれ
の処理に対応したコマンド等が用意されている。このS
QLの文法は英語に類似しており、コマンドの意味が比
較的理解し易いことが特徴の1つであるが、それでもS
QLを使う為にはその文法を学ばねばならないことか
ら、その負担を減らす為にSQLをアプリケーションプ
ログラミングインタフェース(API)で隠蔽した各種
スクリプトが用いられている。
[0003] This SQL is a data definition language DDL (Dat
a Description Language), DML (Da
ta Manipulation Language), Data Control Language DCL
(Data Control Language), and commands and the like corresponding to each process are prepared. This S
One of the features is that the grammar of QL is similar to English, and the meaning of the command is relatively easy to understand.
Since grammar must be learned in order to use QL, various scripts in which SQL is hidden by an application programming interface (API) are used to reduce the burden.

【0004】例えば、スクリプトとして検索内容を指定
するSQLを用いたデータベースの検索を可能にして、
その検索効率の向上を図るデータベース検索方法及びデ
ータベース管理システムについては、特開平11−32
8190号公報に記載されている。その概要は、検索効
率の向上を実現するため、リレーショナルデータベース
の検索に用いるSQLの内容をスクリプトとして複数定
義し、使用者はそのスクリプト群から目的に合ったスク
リプトを選択することでリレーショナルデータベースへ
の検索を実施するものである。
[0004] For example, it is possible to search a database using SQL that specifies search contents as a script,
A database search method and a database management system for improving the search efficiency are disclosed in JP-A-11-32.
No. 8190. The outline is that, in order to improve the search efficiency, a plurality of SQL contents used for searching the relational database are defined as scripts, and the user selects a script suitable for the purpose from the group of scripts, and the user can transfer the contents to the relational database. A search is performed.

【0005】[0005]

【発明が解決しようとする課題】上記従来技術では、使
用者にスクリプトを選択させることで検索効率の向上を
実現しているが、選択されたスクリプトに定義されてい
るSQLが検索性能に影響を与えることを事前に検知
し、使用者に通知する方法については考慮されていない
為、使用者は、スクリプトを使用してリレーショナルデ
ータベースに対して実際に検索を行わない限り、定義さ
れているSQLが検索性能に影響を与えていることを検
知することができず、インデックスを用いない検索等の
処理負荷の高い検索処理を使用者が無意識に実行してし
まうことがある。
In the above prior art, the search efficiency is improved by allowing the user to select a script. However, the SQL defined in the selected script affects the search performance. Since there is no consideration of a method of detecting in advance and giving a notice to the user, the user is required to define the SQL unless the search is actually performed on the relational database using a script. It may not be possible to detect that the search performance is affected, and the user may unconsciously execute a search process with a high processing load such as a search that does not use an index.

【0006】本発明の目的は上記問題を解決し、スクリ
プトの様に隠蔽して定義されているSQLが検索性能に
影響を与えるかどうかをそのデータベース検索処理の実
行前に検知して使用者に通知することが可能な技術を提
供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problem and detect whether or not SQL defined in a concealed manner like a script affects search performance before executing a database search process, and provide a user with the information. It is to provide a technology capable of notifying.

【0007】[0007]

【課題を解決するための手段】本発明は、データベース
検索における性能劣化要因を特定するデータベース検索
処理装置において、APIに設定された入力値とそのA
PIに対応する雛形SQLとから生成されるSQLがデ
ータベース検索の検索性能に影響を与えるかどうかを出
力装置に出力するものである。
According to the present invention, there is provided a database search processing apparatus for specifying a performance deterioration factor in a database search.
This is to output to the output device whether or not the SQL generated from the template SQL corresponding to the PI affects the search performance of the database search.

【0008】本発明のデータベース検索処理装置では、
まずデータベース検索で用いられるAPIの呼び出しに
必要な入力値を使用者から入力して当該APIに対応す
る処理への入力値として設定し、そのAPIに対応する
処理を呼び出す。
[0008] In the database search processing device of the present invention,
First, an input value required for calling an API used in a database search is input from a user, set as an input value to a process corresponding to the API, and a process corresponding to the API is called.

【0009】APIに対応する処理が呼び出されると、
前記呼び出されたAPIに対応する雛形SQLをSQL
情報ファイルから取得し、前記設定された入力値と前記
取得した雛形SQLから当該APIに対応するSQLを
生成する。
When a process corresponding to the API is called,
SQL of the template SQL corresponding to the called API
An SQL corresponding to the API is generated from the set input values obtained from the information file and the obtained template SQL.

【0010】そして前記生成されたSQLから検索対象
となるテーブル名及びカラム名を取得し、インデックス
のあるカラム名を示すテーブル構造情報ファイル中に、
前記取得した検索対象のテーブル名及びカラム名が存在
しているかどうかを調べ、テーブル構造情報ファイル中
に前記検索対象のテーブル名及びカラム名が存在してい
る場合には、当該APIの入力値から生成されるSQL
の検索条件による検索性能への影響が無いことを出力装
置に出力し、前記テーブル構造情報ファイルに前記検索
対象のテーブル名及びカラム名が存在していない場合に
は、当該APIの入力値から生成されるSQLの検索条
件による検索性能への影響があることを出力装置に出力
する。
Then, a table name and a column name to be searched are obtained from the generated SQL, and a table structure information file indicating a column name with an index is obtained.
Check whether the obtained table name and column name of the search target exist, and if the table name and column name of the search target exist in the table structure information file, from the input value of the API, Generated SQL
Output to the output device that there is no effect on the search performance due to the search condition. If the table name and the column name of the search target do not exist in the table structure information file, the search condition is generated from the input value of the API. The fact that there is an effect on the search performance due to the SQL search condition is output to the output device.

【0011】以上の様に本発明のデータベース検索処理
装置によれば、APIに設定された入力値とそのAPI
に対応する雛形SQLとから生成されるSQLがデータ
ベース検索の検索性能に影響を与えるかどうかを出力装
置に出力するので、スクリプトの様に隠蔽して定義され
ているSQLが検索性能に影響を与えるかどうかをその
データベース検索処理の実行前に検知して使用者に通知
することが可能である。
As described above, according to the database search processing device of the present invention, the input value set in the API and the API
Is output to the output device whether or not the SQL generated from the template SQL corresponding to the XML has an influence on the search performance of the database search, so that the SQL defined by being hidden like a script affects the search performance. It is possible to detect whether or not the database search process is executed before notifying the user.

【0012】[0012]

【発明の実施の形態】以下にデータベース検索における
性能劣化要因を特定する一実施形態のデータベース検索
処理装置について説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A database search processing apparatus according to an embodiment for specifying a performance deterioration factor in a database search will be described below.

【0013】図1は本実施形態のデータベース検索処理
装置の概略構成を示す図である。図1に示す様に本実施
形態のデータベース検索処理装置は、業務処理部103
と、SQL生成部106と、検索条件解析部107と、
改善案検索部108とを有している。
FIG. 1 is a diagram showing a schematic configuration of a database search processing device according to the present embodiment. As shown in FIG. 1, the database search processing device of the present embodiment
SQL generation unit 106, search condition analysis unit 107,
An improvement plan search unit 108 is provided.

【0014】業務処理部103は、データベース検索で
用いられるAPIの呼び出しに必要な入力値を入力して
当該APIに対応する処理への入力値として設定し、そ
のAPIに対応する処理を呼び出す処理部である。
The business processing unit 103 inputs an input value required for calling an API used in a database search, sets the input value as an input value to a process corresponding to the API, and calls a process corresponding to the API. It is.

【0015】SQL生成部106は、業務処理部103
から呼び出されたAPIに対応する雛形SQLをSQL
情報ファイル109から取得し、前記設定された入力値
と前記取得した雛形SQLから当該APIに対応するS
QLを生成する処理部である。
The SQL generation unit 106 includes the business processing unit 103
Template SQL corresponding to the API called from SQL
The information corresponding to the API is obtained from the information file 109 and obtained from the set input values and the obtained template SQL.
This is a processing unit that generates QL.

【0016】検索条件解析部107は、前記生成された
SQLから検索対象となるテーブル名及びカラム名を取
得し、インデックスのあるカラム名を示すテーブル構造
情報ファイル110に前記取得した検索対象のテーブル
名及びカラム名が存在している場合に、当該APIと入
力値から生成されるSQLの検索条件による検索性能へ
の影響が無いことをモニタ装置102に出力し、テーブ
ル構造情報ファイル110に前記取得した検索対象のテ
ーブル名及びカラム名が存在していない場合に、当該A
PIと入力値から生成されるSQLの検索条件による検
索性能への影響があることをモニタ装置102に出力す
る処理部である。
The search condition analyzer 107 obtains a table name and a column name to be searched from the generated SQL, and stores the table name of the obtained search target in a table structure information file 110 indicating a column name having an index. And when the column name exists, it outputs to the monitor device 102 that there is no influence on the search performance due to the SQL search condition generated from the API and the input value, and the table structure information file 110 If the search target table name and column name do not exist,
This is a processing unit that outputs to the monitor device 102 that the search performance of the SQL search condition generated from the PI and the input value affects search performance.

【0017】改善案検索部108は、前記生成されたS
QLの改善が可能であるかどうかを判定する為の条件で
ある改善可否判断条件とその改善可否判断条件を満たす
場合の改善案とを格納した改善案情報ファイル111か
ら前記APIに対応する改善可否判断条件及び改善案を
取得し、前記取得されたテーブル名及びカラム名が前記
改善可否判断条件と一致する場合に、その改善可否判断
条件に対応する改善案をモニタ装置102に出力する処
理部である。
The improvement plan search unit 108 generates the generated S
An improvement possibility information corresponding to the API is stored in an improvement proposal information file 111 that stores an improvement possibility determination condition, which is a condition for determining whether QL improvement is possible, and an improvement plan when the improvement possibility determination condition is satisfied. A processing unit that acquires a determination condition and an improvement plan, and outputs the improvement plan corresponding to the improvement possibility determination condition to the monitor device 102 when the acquired table name and column name match the improvement possibility determination condition. is there.

【0018】データベース検索処理装置を業務処理部1
03、SQL生成部106、検索条件解析部107及び
改善案検索部108として機能させる為のプログラム
は、CD−ROM等の記録媒体に記録され磁気ディスク
等に格納された後、メモリにロードされて実行されるも
のとする。なお前記プログラムを記録する記録媒体はC
D−ROM以外の他の記録媒体でも良い。
The database search processing device is a business processing unit 1
03, a program for functioning as the SQL generation unit 106, the search condition analysis unit 107, and the improvement plan search unit 108 is recorded on a recording medium such as a CD-ROM, stored on a magnetic disk or the like, and then loaded into a memory. Shall be executed. The recording medium for recording the program is C
A recording medium other than the D-ROM may be used.

【0019】本実施形態のデータベース検索処理装置
は、使用者が作成した業務処理部103と、業務処理部
103から呼び出すAPIが定義されている評価ライブ
ラリ部104とからなる。評価ライブラリ部104は、
業務処理部103が呼び出すAPIであるインタフェー
ス部105と、業務処理部103が呼び出したAPIか
らSQLを生成するSQL生成部106と、生成された
SQLの検索条件を解析する検索条件解析部107と、
業務処理部103が呼び出すAPIに対する改善案を検
索する改善案検索部108からなる。
The database search processing apparatus according to the present embodiment includes a business processing unit 103 created by a user and an evaluation library unit 104 in which an API called from the business processing unit 103 is defined. The evaluation library unit 104
An interface unit 105 that is an API called by the business processing unit 103, an SQL generation unit 106 that generates SQL from the API called by the business processing unit 103, a search condition analysis unit 107 that analyzes search conditions of the generated SQL,
It comprises an improvement plan search unit 108 for searching for an improvement plan for the API called by the business processing unit 103.

【0020】更に、データベース検索処理装置は、SQ
L情報ファイル109と、テーブル構造情報ファイル1
10と、改善案情報ファイル111とを有しており、操
作指示を行うため為のキーボードやマウス等の入力操作
装置101と、特に検索条件の解析結果と改善案を画面
表示するCRT(Cathode Ray Tube)や液晶ディスプレイ
等を用いたモニタ装置102とを備えている。
[0020] Further, the database search processing device includes a SQ
L information file 109 and table structure information file 1
10 and an improvement plan information file 111, an input operation device 101 such as a keyboard and a mouse for giving an operation instruction, and a CRT (Cathode Ray) for displaying analysis results of search conditions and improvement plans in particular on a screen. Tube) and a monitor device 102 using a liquid crystal display or the like.

【0021】図2は本実施形態の業務処理部103の処
理手順を示すフローチャートである。図2に示す様に本
実施形態の業務処理部103は、データベース検索で用
いられるAPI(ここではfunc_Aとする)を呼び
出す場合、ステップ201の処理で、そのfunc_A
の呼び出しに必要な入力値の入力を使用者から受付けて
設定した後、ステップ202の処理で、インタフェース
部105に定義されているfunc_Aに対する処理を
呼び出す。
FIG. 2 is a flowchart showing a processing procedure of the business processing unit 103 of this embodiment. As shown in FIG. 2, when calling the API (here, func_A) used in the database search, the business processing unit 103 according to the present embodiment executes the func_A in step 201.
After the user inputs and sets the input values necessary for calling the function, the processing for func_A defined in the interface unit 105 is called in step 202.

【0022】図3は本実施形態のインタフェース部10
5の処理手順を示すフローチャートである。図3に示す
様に本実施形態のインタフェース部105は、ステップ
301でSQL生成部106の処理を行い、業務処理部
103から呼び出されたAPI名func_AからSQ
Lを生成する。次にステップ302で検索条件解析部1
07の処理を行い、ステップ301で生成されたSQL
の検索条件を解析する。そして、ステップ303で改善
案検索部108の処理を行って、func_Aに対する
改善案を検索する。
FIG. 3 shows the interface unit 10 of the present embodiment.
9 is a flowchart showing a processing procedure of No. 5; As shown in FIG. 3, the interface unit 105 of the present embodiment performs the processing of the SQL generation unit 106 in step 301, and executes the SQ from the API name func_A called from the business processing unit 103.
Generate L. Next, in step 302, the search condition analysis unit 1
07, the SQL generated in step 301
Analyze the search condition of. Then, in step 303, the improvement plan search unit 108 performs processing to search for an improvement plan for func_A.

【0023】図4は本実施形態のSQL生成部106の
処理手順を示すフローチャートである。図4に示す様に
本実施形態のSQL生成部106は、ステップ401で
SQL情報ファイル109からAPI名func_Aに
対応する雛形SQLを取得した後、ステップ402へ進
み、ステップ201で設定した入力値とステップ402
で取得した雛形SQLからfunc_Aに対応するSQ
Lを生成する。
FIG. 4 is a flowchart showing a processing procedure of the SQL generation unit 106 of the present embodiment. As shown in FIG. 4, the SQL generation unit 106 of the present embodiment acquires the template SQL corresponding to the API name func_A from the SQL information file 109 in step 401, and then proceeds to step 402, where the input value set in step 201 is Step 402
Corresponding to func_A from the template SQL acquired in step
Generate L.

【0024】図5は本実施形態のSQL情報ファイル1
09の内容例を示す図である。図5に示す様にこのSQ
L情報ファイル109には、業務処理部103から呼び
出されるAPI名701と、それに対応する雛形SQL
702を格納している。例えば、API名701の「f
unc_A」には、雛形SQL702に「select
入力値1 from テーブル1 where 入力
値2;」が格納されている。
FIG. 5 shows the SQL information file 1 according to this embodiment.
It is a figure showing the example of contents of 09. As shown in FIG.
The L information file 109 includes an API name 701 called from the business processing unit 103 and a template SQL corresponding thereto.
702 are stored. For example, “f” of the API name 701
In “unc_A”, “select” is added to the template SQL 702.
Input value 1 from Table 1 where Input value 2; "is stored.

【0025】図6は本実施形態の検索条件解析部107
の処理手順を示すフローチャートである。図6に示した
検索条件解析部107の処理では、検索対象のテーブル
名及びカラム名がテーブル構造情報ファイル110に存
在するかどうかをチェックすることにより、検索性能へ
の影響があるかどうかを判定する処理手順について説明
しているが、図9の改善可否判断条件に一致するかどう
かをチェックすることにより、検索性能への影響がある
かどうかを判定し、その判定結果をモニタ装置102に
出力することとしても良い。
FIG. 6 shows a search condition analysis unit 107 of this embodiment.
6 is a flowchart showing the processing procedure of FIG. In the processing of the search condition analysis unit 107 shown in FIG. 6, it is determined whether or not the search performance is affected by checking whether or not the table name and the column name of the search target exist in the table structure information file 110. The following describes a processing procedure for determining whether or not there is an effect on search performance by checking whether or not the condition for improvement is determined according to FIG. 9 and outputting the determination result to the monitor device 102. It is good to do.

【0026】まずステップ501で本実施形態の検索条
件解析部107は、ステップ402で生成したfunc
_Aに対応するSQLから検索対象となるテーブル名及
びカラム名を取得する。
First, at step 501, the search condition analysis unit 107 of the present embodiment generates the func generated at step 402.
The table name and the column name to be searched are acquired from the SQL corresponding to _A.

【0027】ステップ502では、ステップ501で取
得した検索対象のテーブル名及びカラム名が、インデッ
クスのあるカラム名を示すテーブル構造情報ファイル1
10に存在するかどうかをチェックし、前記取得したテ
ーブル名及びカラム名がテーブル構造情報ファイル11
0に存在する場合にはステップ503へ進み、存在しな
い場合にはステップ504へ進む。
In step 502, the table name and the column name of the search target acquired in step 501 are the table structure information file 1 indicating the indexed column name.
10 to check whether the acquired table name and column name are in the table structure information file 11.
If the number is 0, the process proceeds to step 503; otherwise, the process proceeds to step 504.

【0028】図7は本実施形態のテーブル構造情報ファ
イル110の内容例を示す図である。図7に示す様にこ
のテーブル構造情報ファイル110には、検索対象とな
るテーブル名801と、そのテーブルに属するカラムの
内でインデックスのあるカラムを示すインデックスあり
カラム名802とを格納している。例えば、テーブル名
801の「テーブル1」には、インデックスありカラム
名802に「ID」を格納しており、「テーブル1」の
カラム「ID」にはインデックスがあることを表してい
る。
FIG. 7 is a diagram showing an example of the contents of the table structure information file 110 according to this embodiment. As shown in FIG. 7, the table structure information file 110 stores a table name 801 to be searched and an indexed column name 802 indicating an indexed column among the columns belonging to the table. For example, “Table 1” of the table name 801 stores “ID” in the column name with index 802, which indicates that the column “ID” of “Table 1” has an index.

【0029】ステップ503では、func_Aと入力
値から生成されたSQLの検索条件による検索性能への
影響が無いことをモニタ装置102に出力する。これ
は、前記取得したテーブル名及びカラム名がテーブル構
造情報ファイル110に存在するということは、インデ
ックスを用いた検索が行われることを意味しており、イ
ンデックスにより効率の良い(性能劣化が生じない)検
索が行われると判定している為である。
In step 503, the fact that the search condition of the SQL generated from func_A and the input value does not affect the search performance is output to the monitor device 102. That is, the fact that the acquired table name and column name exist in the table structure information file 110 means that the search using the index is performed, and the index is more efficient (the performance is not deteriorated). This is because it is determined that the search is performed.

【0030】ステップ504では、func_Aと入力
値から生成されるSQLの検索条件による検索性能への
影響があることをモニタ装置102に出力する。これ
は、前記取得したテーブル名及びカラム名がテーブル構
造情報ファイル110に存在しないということは、イン
デックスを用いない検索が行われることを意味してお
り、処理負荷が高く効率の悪い(性能劣化が生じる)検
索が行われると判定している為である。
At step 504, the fact that the search condition of the SQL generated from func_A and the input value has an effect on the search performance is output to the monitor device 102. This means that the absence of the acquired table name and column name in the table structure information file 110 means that a search is performed without using an index, and that the processing load is high and the efficiency is low (performance degradation is low). This is because it is determined that the search will be performed.

【0031】図8は本実施形態の改善案検索部108の
処理手順を示すフローチャートである。図8に示す様に
本実施形態の改善案検索部108は、ステップ601の
処理で、改善案情報ファイル111からfunc_Aに
対応する改善可否判断条件と改善案を取得する。ステッ
プ602では、func_Aへの入力値が改善可否判断
条件と一致するかをチェックし、入力値が改善可否判断
条件と一致する場合にステップ603へ進み、func
_Aに対応する改善案をモニタ装置102に出力する。
FIG. 8 is a flowchart showing the processing procedure of the improvement plan search unit 108 of this embodiment. As illustrated in FIG. 8, the improvement plan search unit 108 of the present embodiment acquires the improvement possibility determination condition and the improvement plan corresponding to func_A from the improvement plan information file 111 in the process of step 601. In step 602, it is checked whether or not the input value to func_A matches the improvement possibility determination condition. If the input value matches the improvement possibility determination condition, the process proceeds to step 603, and func_A
The improvement plan corresponding to _A is output to the monitor device 102.

【0032】図9は本実施形態の改善案情報ファイル1
11の内容例を示す図である。図9に示す様にこの改善
案情報ファイル111には、業務処理部103から呼び
出されるAPI名901と、改善が可能であるかを判断
する条件を示す改善可否判断条件902と、改善が可能
であると判断された場合の改善案903を格納してい
る。例えば、API名901の「func_A」には、
改善可否判断条件902に「入力値2にIDカラムが存
在しない」と、改善案903に「入力値2にIDカラム
を含める」を格納しており、「入力値2にIDカラムが
存在しない」という改善可否判断条件902を満たす場
合には、「入力値2にIDカラムを含める」という改善
案903が表示されることを表している。
FIG. 9 shows an improvement plan information file 1 according to this embodiment.
FIG. 11 is a diagram showing an example of contents of the eleventh embodiment. As shown in FIG. 9, the improvement plan information file 111 includes an API name 901 called from the business processing unit 103, an improvement possibility determination condition 902 indicating a condition for determining whether improvement is possible, and an improvement possibility. An improvement plan 903 in the case where it is determined that there is an improvement plan is stored. For example, “func_A” of the API name 901 includes
“No ID column exists in input value 2” and “Include ID column in input value 2” are stored in the improvement possibility determination condition 902 and “Include ID column in input value 2” in improvement proposal 903, and “ID column does not exist in input value 2”. If the improvement possible / impossible judgment condition 902 is satisfied, it indicates that the improvement plan 903 of "Include an ID column in the input value 2" is displayed.

【0033】前記の様に本実施形態によれば、業務処理
部103から呼び出すAPIが検索に使用するSQLの
性能への影響を、実際にリレーショナルデータベースに
検索を行うことなく事前に検知し、改善案が存在する場
合は合わせて使用者に通知することができる。
As described above, according to the present embodiment, the effect on the performance of the SQL used by the API called from the business processing unit 103 for the search is detected in advance without actually searching the relational database, and the improvement is achieved. If a proposal exists, the user can also be notified.

【0034】以上説明した様に本実施形態のデータベー
ス検索処理装置によれば、APIに設定された入力値と
そのAPIに対応する雛形SQLとから生成されるSQ
Lがデータベース検索の検索性能に影響を与えるかどう
かを出力装置に出力するので、スクリプトの様に隠蔽し
て定義されているSQLが検索性能に影響を与えるかど
うかをそのデータベース検索処理の実行前に検知して使
用者に通知することが可能である。
As described above, according to the database search processing device of this embodiment, the SQ generated from the input value set in the API and the template SQL corresponding to the API
Before the execution of the database search process, whether or not SQL defined by concealing like a script affects the search performance is output to the output device as to whether or not L affects the search performance of the database search. And notify the user.

【0035】[0035]

【発明の効果】本発明によればAPIに設定された入力
値とそのAPIに対応する雛形SQLとから生成される
SQLがデータベース検索の検索性能に影響を与えるか
どうかを出力装置に出力するので、スクリプトの様に隠
蔽して定義されているSQLが検索性能に影響を与える
かどうかをそのデータベース検索処理の実行前に検知し
て使用者に通知することが可能である。
According to the present invention, whether the SQL generated from the input value set in the API and the template SQL corresponding to the API affects the retrieval performance of the database retrieval is output to the output device. Before the execution of the database search process, it is possible to detect whether or not SQL defined in a hidden manner such as a script affects search performance and notify the user.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本実施形態のデータベース検索処理装置の概略
構成を示す図である。
FIG. 1 is a diagram illustrating a schematic configuration of a database search processing device according to an embodiment.

【図2】本実施形態の業務処理部103の処理手順を示
すフローチャートである。
FIG. 2 is a flowchart illustrating a processing procedure of a business processing unit 103 according to the embodiment.

【図3】本実施形態のインタフェース部105の処理手
順を示すフローチャートである。
FIG. 3 is a flowchart illustrating a processing procedure of an interface unit according to the embodiment.

【図4】本実施形態のSQL生成部106の処理手順を
示すフローチャートである。
FIG. 4 is a flowchart illustrating a processing procedure of an SQL generation unit 106 according to the embodiment.

【図5】本実施形態のSQL情報ファイル109の内容
例を示す図である。
FIG. 5 is a diagram showing an example of the contents of an SQL information file 109 according to the embodiment.

【図6】本実施形態の検索条件解析部107の処理手順
を示すフローチャートである。
FIG. 6 is a flowchart illustrating a processing procedure of a search condition analysis unit 107 according to the embodiment.

【図7】本実施形態のテーブル構造情報ファイル110
の内容例を示す図である。
FIG. 7 is a table structure information file 110 according to the embodiment;
It is a figure showing the example of contents of.

【図8】本実施形態の改善案検索部108の処理手順を
示すフローチャートである。
FIG. 8 is a flowchart illustrating a processing procedure of an improvement plan search unit according to the present embodiment.

【図9】本実施形態の改善案情報ファイル111の内容
例を示す図である。
FIG. 9 is a diagram showing an example of the contents of an improvement plan information file 111 according to the embodiment.

【符号の説明】[Explanation of symbols]

101…入力操作装置、102…モニタ装置、104…
評価ライブラリ部、105…インタフェース部、109
…SQL情報ファイル、110…テーブル構造情報ファ
イル、111…改善案情報ファイル、103…業務処理
部、106…SQL生成部、107…検索条件解析部、
108…改善案検索部、701…API名、702…雛
形SQL、801…テーブル名、802…カラム名、9
01…API名、902…改善可否判断条件、903…
改善案。
101: input operation device, 102: monitor device, 104:
Evaluation library unit, 105 ... Interface unit, 109
... SQL information file, 110 ... table structure information file, 111 ... improvement plan information file, 103 ... business processing unit, 106 ... SQL generation unit, 107 ... search condition analysis unit,
108: improvement plan search unit, 701: API name, 702: template SQL, 801: table name, 802: column name, 9
01: API name, 902: Improvement availability judgment condition, 903:
Improvement plan.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 山瀬 正広 神奈川県横浜市戸塚区戸塚町5030番地 株 式会社日立製作所ソフトウェア事業部内 Fターム(参考) 5B075 PP23 PQ02 QT06 5B082 GA03 GA08 GC04  ────────────────────────────────────────────────── ─── Continuing on the front page (72) Inventor Masahiro Yamase 5030 Totsuka-cho, Totsuka-ku, Yokohama-shi, Kanagawa Prefecture F-term in the Software Division, Hitachi, Ltd. F-term (reference) 5B075 PP23 PQ02 QT06 5B082 GA03 GA08 GC04

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 データベース検索における性能劣化要因
を特定するデータベース検索処理方法において、 データベース検索で用いられるAPIの呼び出しに必要
な入力値を入力して当該APIに対応する処理への入力
値として設定し、そのAPIに対応する処理を呼び出す
ステップと、 前記呼び出されたAPIに対応する雛形SQLをSQL
情報ファイルから取得し、前記設定された入力値と前記
取得した雛形SQLから当該APIに対応するSQLを
生成するステップと、 前記生成されたSQLから検索対象となるテーブル名及
びカラム名を取得し、インデックスのあるカラム名を示
すテーブル構造情報ファイルに前記取得した検索対象の
テーブル名及びカラム名が存在している場合に、当該A
PIの入力値から生成されるSQLの検索条件による検
索性能への影響が無いことを出力装置に出力し、前記テ
ーブル構造情報ファイルに前記取得した検索対象のテー
ブル名及びカラム名が存在していない場合に、当該AP
Iの入力値から生成されるSQLの検索条件による検索
性能への影響があることを出力装置に出力するステップ
とを有することを特徴とするデータベース検索処理方
法。
In a database search processing method for specifying a performance deterioration factor in a database search, an input value required to call an API used in a database search is input and set as an input value to a process corresponding to the API. Calling a process corresponding to the API, and calling a template SQL corresponding to the called API
Acquiring from the information file, generating an SQL corresponding to the API from the set input value and the acquired template SQL, acquiring a table name and a column name to be searched from the generated SQL, If the acquired table name and column name of the search target exist in the table structure information file indicating the column name having the index,
It outputs to the output device that there is no influence on the search performance due to the SQL search condition generated from the input value of the PI, and the obtained table name and column name of the search target do not exist in the table structure information file. In that case, the AP
Outputting to the output device that the search performance of the SQL generated from the input value of I has an influence on the search performance.
【請求項2】 前記生成されたSQLの改善が可能であ
るかどうかを判定する為の条件である改善可否判断条件
とその改善可否判断条件を満たす場合の改善案とを格納
した改善案情報ファイルから前記APIに対応する改善
可否判断条件及び改善案を取得し、前記取得されたテー
ブル名及びカラム名が前記改善可否判断条件と一致する
場合に、その改善可否判断条件に対応する改善案を出力
装置に出力するステップを有することを特徴とする請求
項1に記載されたデータベース検索処理方法。
2. An improvement plan information file storing an improvement possibility determination condition as a condition for determining whether the generated SQL can be improved and an improvement plan when the improvement possibility determination condition is satisfied. From the API, and if the obtained table name and column name match the above-mentioned condition, output the improvement plan corresponding to the condition. 2. The database search processing method according to claim 1, further comprising the step of outputting to a device.
【請求項3】 前記改善案は入力値にインデックスのあ
るカラムを含めることを示すものであることを特徴とす
る請求項2に記載されたデータベース検索処理方法。
3. The database search processing method according to claim 2, wherein the improvement plan indicates that an input value includes a column having an index.
【請求項4】 データベース検索における性能劣化要因
を特定するデータベース検索処理装置において、 データベース検索で用いられるAPIの呼び出しに必要
な入力値を入力して当該APIに対応する処理への入力
値として設定し、そのAPIに対応する処理を呼び出す
業務処理部と、 前記呼び出されたAPIに対応する雛形SQLをSQL
情報ファイルから取得し、前記設定された入力値と前記
取得した雛形SQLから当該APIに対応するSQLを
生成するSQL生成部と、 前記生成されたSQLから検索対象となるテーブル名及
びカラム名を取得し、インデックスのあるカラム名を示
すテーブル構造情報ファイルに前記取得した検索対象の
テーブル名及びカラム名が存在している場合に、当該A
PIと入力値から生成されるSQLの検索条件による検
索性能への影響が無いことを出力装置に出力し、前記テ
ーブル構造情報ファイルに前記取得した検索対象のテー
ブル名及びカラム名が存在していない場合に、当該AP
Iと入力値から生成されるSQLの検索条件による検索
性能への影響があることを出力装置に出力する検索条件
解析部とを備えることを特徴とするデータベース検索処
理装置。
4. In a database search processing device for specifying a performance deterioration factor in a database search, an input value required to call an API used in the database search is input and set as an input value to a process corresponding to the API. A business processing unit that calls a process corresponding to the API, and a template SQL corresponding to the called API,
An SQL generation unit that obtains an SQL corresponding to the API from the set input values and the obtained template SQL, which is obtained from the information file, and obtains a table name and a column name to be searched from the generated SQL If the obtained table name and column name of the search target exist in the table structure information file indicating the column name having the index,
It outputs to the output device that there is no influence on the search performance by the SQL search condition generated from the PI and the input value, and the obtained table name and column name of the search target do not exist in the table structure information file. In that case, the AP
A database search processing device comprising: a search condition analysis unit that outputs to an output device that the search performance of SQL generated from I and an input value has an effect on search performance.
【請求項5】 データベース検索における性能劣化要因
を特定するデータベース検索処理装置としてコンピュー
タを機能させる為のプログラムを記録したコンピュータ
読み取り可能な記録媒体において、 データベース検索で用いられるAPIの呼び出しに必要
な入力値を入力して当該APIに対応する処理への入力
値として設定し、そのAPIに対応する処理を呼び出す
業務処理部と、 前記呼び出されたAPIに対応する雛形SQLをSQL
情報ファイルから取得し、前記設定された入力値と前記
取得した雛形SQLから当該APIに対応するSQLを
生成するSQL生成部と、 前記生成されたSQLから検索対象となるテーブル名及
びカラム名を取得し、インデックスのあるカラム名を示
すテーブル構造情報ファイルに前記取得した検索対象の
テーブル名及びカラム名が存在している場合に、当該A
PIと入力値から生成されるSQLの検索条件による検
索性能への影響が無いことを出力装置に出力し、前記テ
ーブル構造情報ファイルに前記取得した検索対象のテー
ブル名及びカラム名が存在していない場合に、当該AP
Iと入力値から生成されるSQLの検索条件による検索
性能への影響があることを出力装置に出力する検索条件
解析部としてコンピュータを機能させる為のプログラム
を記録したことを特徴とする記録媒体。
5. A computer-readable recording medium on which a program for causing a computer to function as a database search processing device for identifying a cause of performance degradation in database search is provided. Is input as an input value to a process corresponding to the API, and a business processing unit that calls a process corresponding to the API, and a template SQL corresponding to the called API is SQL
An SQL generation unit that obtains an SQL corresponding to the API from the set input values and the obtained template SQL, which is obtained from the information file, and obtains a table name and a column name to be searched from the generated SQL If the obtained table name and column name of the search target exist in the table structure information file indicating the column name having the index,
It outputs to the output device that the search performance of the SQL generated from the PI and the input value does not affect the search performance, and the obtained table name and column name of the search target do not exist in the table structure information file. In that case, the AP
A recording medium characterized by recording a program for causing a computer to function as a search condition analysis unit for outputting to an output device that an SQL search condition generated from I and an input value has an effect on search performance.
JP2000338988A 2000-11-07 2000-11-07 Method for processing database retrieval, its execution device and recording medium stored with its processing program Pending JP2002149652A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000338988A JP2002149652A (en) 2000-11-07 2000-11-07 Method for processing database retrieval, its execution device and recording medium stored with its processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000338988A JP2002149652A (en) 2000-11-07 2000-11-07 Method for processing database retrieval, its execution device and recording medium stored with its processing program

Publications (1)

Publication Number Publication Date
JP2002149652A true JP2002149652A (en) 2002-05-24

Family

ID=18814118

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000338988A Pending JP2002149652A (en) 2000-11-07 2000-11-07 Method for processing database retrieval, its execution device and recording medium stored with its processing program

Country Status (1)

Country Link
JP (1) JP2002149652A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005022391A1 (en) * 2003-08-28 2005-03-10 International Business Machines Corporation Database system, information acquisition enabled/disabled inspection system, information acquisition method, and program
WO2013191275A1 (en) * 2012-06-22 2013-12-27 オムロン株式会社 Control device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005022391A1 (en) * 2003-08-28 2005-03-10 International Business Machines Corporation Database system, information acquisition enabled/disabled inspection system, information acquisition method, and program
JPWO2005022391A1 (en) * 2003-08-28 2007-11-22 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Maschines Corporation Database system, information acquisition availability inspection system, information acquisition method, and program
CN100418068C (en) * 2003-08-28 2008-09-10 国际商业机器公司 Database system, information acquisition enabled/disabled inspection system, information acquisition method, and program
US7836312B2 (en) 2003-08-28 2010-11-16 International Business Machines Corporation Information acquisition enabled/disabled inspection system
JP5430819B2 (en) * 2003-08-28 2014-03-05 インターナショナル・ビジネス・マシーンズ・コーポレーション Database system, information acquisition availability inspection system, information acquisition method, and program
WO2013191275A1 (en) * 2012-06-22 2013-12-27 オムロン株式会社 Control device
JPWO2013191275A1 (en) * 2012-06-22 2016-05-26 オムロン株式会社 Control device
US10061809B2 (en) 2012-06-22 2018-08-28 Omron Corporation Control device

Similar Documents

Publication Publication Date Title
US8533664B2 (en) Method and system to automatically generate GUI object addressing queries
EP0632377A1 (en) Method for testing a message-driven operating system
CN110457277A (en) Service process performance analysis method, device, equipment and storage medium
KR20060045965A (en) Integrating best practices into database design
US9507693B2 (en) Method, device and computer-readable storage medium for closure testing
US8433729B2 (en) Method and system for automatically generating a communication interface
CN113962597A (en) Data analysis method and device, electronic equipment and storage medium
US20060265697A1 (en) Pattern query language
US20160306972A1 (en) Virus signature matching method and apparatus
JPH0540616A (en) Method for generating program specifications
JP2002149652A (en) Method for processing database retrieval, its execution device and recording medium stored with its processing program
US6904426B2 (en) Method, computer program product, and system for the generation of transaction screen displays from a hierarchical database management log utilizing a batch terminal simulator
EP3816814A1 (en) Crux detection in search definitions
CN115098503A (en) Null value data processing method and device, computer equipment and storage medium
US6657641B2 (en) Scenario display method and apparatus
US8191050B2 (en) Information processor, control method therefor, computer program and storage medium
JP2000250791A (en) Method and device for displaying message in dml object reproduction mode and recording medium with this method programmed and recorded therein
US20060095406A1 (en) Displaying explain data for a SQL query of a database
JP2798118B2 (en) Database query statement creation device
JP2000181697A (en) Method and device for conversion to open type system of mainframe cobol property and recording medium
JP2018181121A (en) Analyzer, analysis program, and analysis method
JP2000181691A (en) Program structure analysis system
JPH05197534A (en) Program data base system
JP3208300B2 (en) Method of extracting use form of physical entity in program and related extraction method
JP2002222099A (en) Program development support device, recording medium, and program