JPH09231115A - Data base processing method - Google Patents

Data base processing method

Info

Publication number
JPH09231115A
JPH09231115A JP8036638A JP3663896A JPH09231115A JP H09231115 A JPH09231115 A JP H09231115A JP 8036638 A JP8036638 A JP 8036638A JP 3663896 A JP3663896 A JP 3663896A JP H09231115 A JPH09231115 A JP H09231115A
Authority
JP
Japan
Prior art keywords
database
access
processing
plan
time
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.)
Granted
Application number
JP8036638A
Other languages
Japanese (ja)
Other versions
JP3434641B2 (en
Inventor
Hirofumi Iwasaki
浩文 岩▲さき▼
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP03663896A priority Critical patent/JP3434641B2/en
Publication of JPH09231115A publication Critical patent/JPH09231115A/en
Application granted granted Critical
Publication of JP3434641B2 publication Critical patent/JP3434641B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To execute optimization corresponding to a situation at the time of execution by selecting a unique access method at the time of executing an inquiry from the access methods. SOLUTION: A plan candidate generation part 12 models an access means based on the analysis result of the inquiry by an inquiry analysis part 11 and generates a plan for showing a database processing procedure. At the time of executing a processing, information contained in the plan is evaluated and the final access method is decided. A database management system DBMS1 generates the plural plans in the plan candidate generation part 12 if necessary as the result of the inquiry analysis part 11 and selects one plan 3 which is most inexpensive in an optimum plan selection part 13. Namely, the plan that the minimum storage area and CPU use rate can be reduced is selected. At the time of actually executing the plan 3, a value is set in the variable 'HV' of the inquiry 2, and DBMS1 executes a database processing by an execution time processing part 14.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、データベース管理
システム、特にリレーショナルデータベース管理システ
ムの問合せ処理に適するデータベース処理方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database management system, and more particularly to a database processing method suitable for query processing of a relational database management system.

【0002】[0002]

【従来の技術】データベースに対するアクセス処理(以
下、単に「データベース処理」という)を効率的に実施
するために、最適化と呼ばれる処理を行うデータベース
管理システムが一般的になっている。従来におけるデー
タベースへのアクセス(問合せ)の最適化処理におい
て、問合せ条件に変数が存在する場合、実行時に代入さ
れる値によっては最適化が効果を持たないことを避ける
ため、あるデータベースへのアクセス要求に対し複数の
アクセス処理手順をプランとして生成し、それぞれの処
理手順のコスト評価を実施した後、一つまたは複数の効
率的と判断される処理手順を生成する。そして、データ
ベース処理の実行時に変数の具体的な値を設定した後、
生成された処理手順に従ってデータベース処理を実行す
る。なお、複数の処理手順が生成されている場合にその
中からある選択条件に従って唯一つの手順を選択し効率
的な実行を実現する技術として、条件の中で最も効率的
と判断される処理手順を選択し実行する技術が特開平1
−194028号公報に、またはすべての処理手順を
(マルチプロセッサ上で)同時に実行し、一番先に終了
した結果を選択する技術が特開平6−4587号公報
に、それぞれ開示されている。
2. Description of the Related Art In order to efficiently perform a database access process (hereinafter, simply referred to as "database process"), a database management system that performs a process called optimization has become common. In the conventional optimization process of database access (query), when a variable exists in the query condition, an access request to a certain database is requested in order to avoid that the optimization has no effect depending on the value assigned at execution time. On the other hand, a plurality of access processing procedures are generated as a plan, the cost of each processing procedure is evaluated, and then one or a plurality of processing procedures judged to be efficient are generated. And after setting the concrete value of the variable when executing database processing,
Database processing is executed according to the generated processing procedure. In addition, when multiple processing procedures are generated, the processing procedure that is judged to be the most efficient among the conditions is selected as the technology to select only one procedure according to a certain selection condition and realize efficient execution. The technology to select and execute is JP-A-1
Japanese Patent Laid-Open No. 6-4587 discloses a technique in which all processing procedures are simultaneously executed (on a multiprocessor) and a result obtained first is selected.

【0003】[0003]

【発明が解決しようとする課題】前述したように、従来
においては、データベースへの問合せにおいて変数(ホ
スト変数や動的パラメータ)を含んでいる場合等のよう
に、実際のデータベース処理を実行するまで確定しない
要素を含むデータベース処理の最適化は困難であった。
そのため、前述の先行技術のように、最適化の際には確
定しない要素が実行時に取りえるあらゆる可能性を考慮
し、複数のデータベース処理手順を生成し、実行時にそ
の中から最適なデータベース処理を選び出して実行した
り、同時に全てのデータベース処理を実行していた。
As described above, conventionally, until the actual database processing is executed, such as when a variable (host variable or dynamic parameter) is included in a query to the database. It was difficult to optimize the database processing including indeterminate elements.
Therefore, as in the prior art described above, multiple database processing procedures are generated in consideration of all possibilities that undetermined elements can be taken at the time of optimization, and the optimal database processing can be performed from them at the time of execution. It was picked out and executed, or all database processing was executed at the same time.

【0004】しかし、これらの処理方法においても、複
数のデータベース処理手順を記憶するための領域が多く
なること、複数のデータベース処理手順から一つを選ん
だり、同時に実行することはシステム的見地からすれば
トータルの処理量が多くなること、更に適用できる範囲
が問合せ中の変数等に限られていることなどの問題があ
った。
However, even in these processing methods, there is a large area for storing a plurality of database processing procedures, and it is systematic from the viewpoint of selecting one from a plurality of database processing procedures and executing them simultaneously. For example, there were problems that the total amount of processing increased and that the applicable range was limited to the variables being inquired.

【0005】本発明は、以上の課題を解決するためにな
されたものであり、その目的は、データベースアクセス
処理の性能を劣化させずに、アクセス要求に指定された
変数のみならずその他の最適化の際に確定しない要素を
も考慮に入れた最適化を実現するデータベース処理方法
を提供することにある。
The present invention has been made to solve the above problems, and its purpose is to optimize not only variables specified in access requests but also other optimizations without degrading the performance of database access processing. An object of the present invention is to provide a database processing method that realizes optimization taking into consideration factors that are not determined in the case of.

【0006】[0006]

【課題を解決するための手段】以上の目的を達成させる
ために、本発明に係るデータベース処理方法は、データ
ベースへのアクセス要求の内容を解析し、最適化処理を
行うことでデータベースへアクセスを行うための内部処
理手順を唯一つに決定するデータベース管理システムに
おいて、データベースアクセス実行前に、データベース
へのアクセスを行うためのアクセス手段をモデル化する
モデル作成ステップと、データベースアクセス実行前
に、アクセス要求の内容からデータアクセス条件を含む
プランを作成するプラン作成ステップと、データベース
アクセス実行時に、プランの内容を評価し、モデル化し
たアクセス手段の中から最適なアクセス手段を選択する
アクセス手段選択ステップと、選択したアクセス手段に
より実際にアクセス処理を行う処理実行ステップとを有
することを特徴とする。
In order to achieve the above object, a database processing method according to the present invention analyzes the contents of a database access request and performs optimization processing to access the database. In the database management system that determines only one internal processing procedure for the database access, before the database access is executed, the model creation step for modeling the access means for accessing the database and the access request before the database access are executed. A plan creation step that creates a plan that includes data access conditions from the contents, and an access means selection step that evaluates the contents of the plan and selects the optimum access means from the modeled access means when executing database access. Access by the access method And having a processing execution step of performing management.

【0007】また、前記アクセス手段選択ステップは、
アクセス対象データの選択率と処理時間との関係に基づ
いて最も効率的なアクセス手段を選択することを特徴と
する。
Further, the access means selecting step is as follows.
It is characterized in that the most efficient access means is selected based on the relationship between the selection rate of access target data and the processing time.

【0008】また、前記プラン候補作成ステップは、ア
クセスするデータの更新可不可状態を考慮してプランを
作成することを特徴とする。
Further, the plan candidate creating step is characterized in that the plan is created in consideration of the updatable state of the data to be accessed.

【0009】また、更にデータベースアクセス実行時に
おけるデータ更新の可不可状態を調べるステップを含
み、前記アクセス手段選択ステップは、データ更新の可
不可状態に応じてアクセス手段を選択することを特徴と
する。
Further, the method further comprises a step of checking a data update enable / disable state at the time of executing the database access, and the access means selecting step selects an access means according to the data update enable / disable state.

【0010】また、前記アクセス手段選択ステップは、
アクセス対象データの選択率と処理時間との関係並びに
更新可不可状態に基づいて最も効率的なアクセス手段を
選択することを特徴とする。
Further, the access means selecting step is as follows.
It is characterized in that the most efficient access means is selected on the basis of the relation between the selection rate of access target data and the processing time and the updatable state.

【0011】更に、データベースアクセス処理の一部ま
たは全部を付加型のデータベース処理専用装置において
実行させることを特徴とする。
Further, a part or all of the database access processing is executed in an additional type database processing dedicated apparatus.

【0012】以上のような本発明では、データベースへ
の問合せに対して最適化を施しデータベース処理手順を
生成するにあたり、データベースを構成する各テーブル
をアクセスするためのアクセス手段をモデル化すること
により、テーブルのアクセスパスを規定しないルーズな
最適化のみを施した唯一のデータベース処理手順をプラ
ンとして生成する。そして、データベース処理の実行時
には、各テーブル毎に実行時に決定したパラメータを解
析し、プランに含まれるモデル化されたアクセス手段の
中から、最も最適である具体的なアクセス手段を決定す
ることにより、データベース処理の実行を最適に行うも
のである。
In the present invention as described above, when the query to the database is optimized and the database processing procedure is generated, the access means for accessing each table constituting the database is modeled, Generate a plan that is the only database processing procedure that is loosely optimized without specifying the access path of the table. Then, at the time of executing the database processing, by analyzing the parameters determined at the time of execution for each table and determining the most specific access means from the modeled access means included in the plan, This is for optimally executing database processing.

【0013】すなわち、本発明の最適化処理では、最終
的にデータベース処理手順を一つしか生成しないため、
処理手順の構造が全く異なる複数のデータベース処理手
順間の最適化はコンパイル時に実施してしまう。しか
し、通常のデータベース処理では、処理手順の構造の異
なるデータベース処理手順を実行時に選択できたとして
も、データベースの特性は劇的に変化するものではない
ため、効果を発揮できるような問合せは極めて少ないも
のである。従って、本発明によれば、実質的な最適化に
的を絞ることにより、従来のような無駄な記憶領域やC
PU使用を削減し、かつ適用範囲を広げることができ
る。
That is, in the optimization processing of the present invention, since only one database processing procedure is finally generated,
Optimization between a plurality of database processing procedures having completely different processing procedure structures is performed at compile time. However, in normal database processing, even if a database processing procedure with a different structure of processing procedure can be selected at the time of execution, the characteristics of the database do not change dramatically, so there are very few queries that can be effective. It is a thing. Therefore, according to the present invention, by focusing on the substantial optimization, the wasteful storage area and C
PU usage can be reduced and the range of application can be expanded.

【0014】[0014]

【発明の実施の形態】以下、本発明に係る好適な実施の
形態を図面に基づいて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments according to the present invention will be described below with reference to the drawings.

【0015】実施の形態1.図1は、本発明に係るデー
タベース処理方法の一実施の形態を用いるデータベース
管理システム(以下、「DBMS」と称する)の動作概
要を説明するために用いる図である。DBMS1に対し
てアクセスを行うためのデータベース言語は、通常CO
BOL言語等のホストコンピュータで処理実行されるプ
ログラム言語に埋め込まれたり、動的SQLのようにプ
ログラム実行時に動的に生成される。本実施の形態にお
いては、データベース言語としてSQLの場合で説明
し、DBMS1は、図1に示したようなSQL文による
データベースアクセス要求のコマンド(以下、「問合
せ」という)2を処理する。もちろん、この例のみなら
ず他のコマンドや他のデータベース言語でもよいことは
いうまでもない。
Embodiment 1 FIG. 1 is a diagram used to explain the outline of the operation of a database management system (hereinafter referred to as “DBMS”) that uses an embodiment of the database processing method according to the present invention. The database language for accessing the DBMS 1 is usually CO
It is embedded in a programming language such as BOL language which is processed and executed by a host computer, or dynamically generated when the program is executed like dynamic SQL. In the present embodiment, the case where SQL is used as the database language will be described. The DBMS 1 processes a database access request command (hereinafter, referred to as "query") 2 by an SQL statement as shown in FIG. Of course, not only this example but also other commands and other database languages may be used.

【0016】DBMS1は、このような問合せ2に対
し、プログラム言語に埋め込まれた問合せであれば、プ
ログラムのコンパイルと同時にコンパイルされ、動的S
QLであれば、PREPARE文実行時にコンパイルが
行われる。このコンパイル処理は、コンパイル時処理部
10によって行われる。このコンパイル時処理部10
は、アクセス要求で指定されたデータベースへのアクセ
ス処理を解析する問合せ解析部11と、解析結果に基づ
き少なくとも1つのプランを作成するプラン候補作成部
12と、作成されたプランの中から最も低コストとなる
唯一つのプランを選択する最適プラン選択部13とを含
み、各処理を行う。コンパイル処理は、通常、実際のデ
ータベースアクセスの実行よりも前に行うため、問合せ
2のSQL文中に変数(図1に示した例では“:H
V”)が存在する場合には、この時点では最適な処理手
順を決定できない。
In response to such a query 2, the DBMS 1 is compiled at the same time as the program is compiled if it is a query embedded in a programming language.
If it is QL, compilation is performed when the PREPARE statement is executed. This compile processing is performed by the compile time processing unit 10. This compile time processing unit 10
Is a query analysis unit 11 that analyzes the access processing to the database specified by the access request, a plan candidate creation unit 12 that creates at least one plan based on the analysis result, and the lowest cost from the created plans. And the optimum plan selecting unit 13 that selects only one plan that performs each process. Since the compile process is usually performed before the actual database access is executed, a variable (in the example shown in FIG. 1, “: H
If V ″) exists, the optimum processing procedure cannot be determined at this point.

【0017】従って、プラン候補作成部12は、問合せ
解析部11による問合せの解析結果に基づき、アクセス
手段のモデル化並びにデータベース処理手順を表すプラ
ンを作成する。すなわち、本実施の形態では、コンパイ
ル時においては最終的なアクセス手段を決定せずに、デ
ータベース4のテーブル41からデータを読み出す処理
のアクセス手段、ここではアクセスメソドをモデル化
し、また、最終的なアクセスメソドの決定に必要な情報
を含んだプランのみを作成する。そして、処理実行時に
プランに含まれる情報を評価して最終的なアクセスメソ
ドを決定するようにしたことを特徴としている。換言す
ると、コンパイル時に可能な範囲でルーズな最適化を行
い、処理実行時に最終的な唯一つのアクセスメソドを決
定するというタイトな最適化を行うことになる。
Therefore, the plan candidate creating unit 12 creates a plan representing the modeling of the access means and the database processing procedure based on the analysis result of the inquiry by the inquiry analyzing unit 11. That is, in the present embodiment, the access means for reading data from the table 41 of the database 4, that is, the access method here is modeled without determining the final access means at the time of compilation. Create only plans that include the information needed to determine access methods. Then, it is characterized in that the final access method is determined by evaluating the information included in the plan when the processing is executed. In other words, a tight optimization of performing a loose optimization at the compile time and determining the final access method at the time of processing is performed.

【0018】本実施の形態におけるプラン候補作成部1
2は、図1に示したような構成のプラン3を次のように
して作成する。なお、以下の例ではアクセス要求が図1
に示した問合せコマンド(SELECT文)ようなデー
タベースからのデータ読出し要求の場合で説明する。
The plan candidate creation unit 1 in this embodiment
2 creates the plan 3 having the structure shown in FIG. 1 as follows. In the example below, the access request is
The case of a data read request from a database such as the inquiry command (SELECT statement) shown in FIG.

【0019】まず、データベース処理の手順を木構造に
て示した処理手順31のうちデータベース4内のテーブ
ル41からデータを読み出す部分すなわち読出しのアク
セスメソドをモデル化し、ここでは単に読出し処理とし
て表現しておく。モデル化したアクセスメソドに関して
は後述する。この読出し処理の具体的な唯一つのアクセ
スメソドについては実行時に決定するため、ここでは、
問合せ2においてデータを読み出す際に必要とする読出
し条件32として、ソートを行なう必要があるアクセス
対象列(ソート指定)及び選択を行なう必要があるアク
セス対象列(選択指定)を抽出しプラン3として保持す
る。ソート指定された列に関しては、ソート情報33と
して各列でのソートが昇順か降順か等の情報を保持す
る。選択指定された列に関しては、選択情報34として
各列のデータ数等の統計情報や問合せ2に指定された選
択条件から得られるアクセス対象データが占める割合を
示す選択率等の情報を保持する。このとき、問合せ2中
の選択条件に変数が使われている場合には、選択率も変
数を含む可変な値をとる。
First, in the processing procedure 31 in which the database processing procedure is shown in a tree structure, a portion for reading data from the table 41 in the database 4, that is, a reading access method is modeled, and is simply expressed as a reading processing here. deep. The modeled access method will be described later. Since only the specific access method for this read process is decided at runtime, here
As the read condition 32 required when reading data in the query 2, the access target column that needs to be sorted (sort designation) and the access target column that needs to be selected (selection designation) are extracted and stored as the plan 3. To do. As for the column designated for sorting, the sorting information 33 holds information such as whether the sorting in each column is ascending or descending. As for the selected and designated column, the selection information 34 holds statistical information such as the number of data in each column and information such as a selection rate indicating the proportion of the access target data obtained from the selection condition designated in the inquiry 2. At this time, when a variable is used as the selection condition in the inquiry 2, the selection rate also takes a variable value including the variable.

【0020】DBMS1は、上記のように問合せ解析部
11の結果、必要であればプラン候補作成部12におい
て複数のプランを生成し、最適プラン選択部13におい
て最もコストの少ないプラン3を唯一つ選択する。つま
り、最小限の記憶領域及びCPU使用率を削減できるよ
うな最も資源の効率化を図ることのできるプランを選択
する。
As described above, the DBMS 1 generates a plurality of plans in the plan candidate creating unit 12 if necessary as a result of the query analysis unit 11 and selects only one plan 3 having the lowest cost in the optimum plan selecting unit 13. To do. In other words, the plan that maximizes the efficiency of resources so as to reduce the minimum storage area and the CPU usage rate is selected.

【0021】そして、実際にプラン3を実行する際に
は、問合せ2の変数“:HV”にも値を設定し、DBM
S1は実行時処理部14によりデータベース処理を行う
ことになる。実行時処理部14には、データ読出し条件
を評価し、最適なアクセスメソドを選択するアクセスメ
ソド選択部15と、選択したアクセスメソドにより実際
にアクセス処理を行う処理実行部16とが含まれてい
る。
When the plan 3 is actually executed, a value is also set in the variable ": HV" of the inquiry 2 and the DBM is set.
In S1, the runtime processing unit 14 performs database processing. The runtime processing unit 14 includes an access method selection unit 15 that evaluates data read conditions and selects an optimum access method, and a process execution unit 16 that actually performs access processing by the selected access method. .

【0022】始めにアクセスメソド選択部15でプラン
3に含まれるソート情報33や選択情報34のデータ読
出し条件を参照しながら、処理手順31中の各読出し処
理のアクセスメソドを決定する。この決定方法について
は後述する。アクセスメソドが決定すると、処理実行部
16においてプラン3中の処理手順31に従い、データ
ベース4上のテーブル41からアクセスメソドに従った
読出し処理を実際に行い、データベース処理を実行す
る。
First, the access method selection unit 15 determines the access method of each read process in the processing procedure 31 with reference to the data read conditions of the sort information 33 and the selection information 34 included in the plan 3. This determination method will be described later. When the access method is determined, the process execution unit 16 actually performs the read process from the table 41 on the database 4 according to the access method according to the process procedure 31 in the plan 3 to execute the database process.

【0023】図2は、本実施の形態が適用されるDBM
Sのハードウェア構成の一例を示したブロック図であ
る。具体的には、一般的な計算機にみられるようなCP
U51と主記憶装置50、並びにディスク53から構成
され、ディスク53はチャネル52を介してCPU51
や主記憶装置50と接続されている。図1中の各構成要
素であるDBMS1、問合せ2、プラン3及びデータベ
ース4は、図2中のディスク53や主記憶装置50に配
置され、CPU51により実際の処理が施される。ま
た、ディスク53と主記憶装置50間でデータ転送が行
われる場合には、チャネル52により処理が中継され
る。
FIG. 2 is a DBM to which this embodiment is applied.
It is a block diagram showing an example of a hardware configuration of S. Specifically, CP as found in general computers
It is composed of a U51, a main storage device 50, and a disk 53, and the disk 53 is a CPU 51 via a channel 52.
And the main storage device 50. The DBMS 1, the inquiry 2, the plan 3, and the database 4, which are the respective constituent elements in FIG. 1, are arranged in the disk 53 and the main storage device 50 in FIG. 2, and are actually processed by the CPU 51. When data is transferred between the disk 53 and the main storage device 50, the process is relayed by the channel 52.

【0024】ここで、モデル化したアクセスメソドにつ
いて説明する。図3は、データベース4から実際にテー
ブルを読み出す処理の部分をモデル化したアクセスメソ
ドの一例を示した図である。本実施の形態では、以下の
6種類のアクセスメソドについて具体的に処理内容を説
明する。
The modeled access method will now be described. FIG. 3 is a diagram showing an example of an access method in which a part of a process of actually reading a table from the database 4 is modeled. In the present embodiment, the processing content will be specifically described for the following six types of access methods.

【0025】まず、図3(a)に示したように、データ
ベース4から最も高速にテーブル全体を順次に読み出す
シーケンシャルスキャン、図3(b)に示したように、
その途中に選択条件を判断して条件に合致するデータの
みを読み出すシーケンシャルスキャン&選択、図3
(c)に示したように、テーブルに索引が付加されてお
り、その索引がソートまたは選択条件に適用できる場合
に索引を介して読み出すインデックススキャン、図3
(d)に示したように、更に別の列に対して選択条件が
指定されている場合に、その選択条件に合致するデータ
のみを読み出すインデックススキャン&選択、図3
(e)に示したように、複数の選択条件やソート指定が
されたときに、一旦条件に合うデータのみをシーケンシ
ャルスキャンで読み出し、ソートした結果を中間データ
とするシーケンシャルスキャン&選択ソート、そして、
図3(f)に示したように、その際シーケンシャルスキ
ャンの代わりにインデックススキャンを行うインデック
ススキャン&選択ソートがある。本実施の形態では、モ
デル化された読出し処理がこの6種類のアクセスメソド
のいずれかに置き換えられて最適に実行される。
First, as shown in FIG. 3 (a), a sequential scan for sequentially reading the entire table from the database 4 at the highest speed, as shown in FIG. 3 (b),
Sequential scan & selection, in which the selection condition is judged and only the data matching the condition is read out, Fig. 3
As shown in (c), an index is added to the table, and the index scan is read through the index when the index can be applied to a sort or selection condition.
As shown in (d), when a selection condition is specified for another column, index scan & selection is performed to read out only the data that matches the selection condition.
As shown in (e), when a plurality of selection conditions or sort designations are made, only data that meets the conditions is read by sequential scan and the sorted result is used as intermediate data in sequential scan & selective sort, and
As shown in FIG. 3F, there is an index scan & selective sort in which an index scan is performed instead of the sequential scan. In the present embodiment, the modeled read process is replaced with any one of the six types of access methods and optimally executed.

【0026】次に、モデル化したアクセスメソドの中か
ら唯一つのアクセスメソドを決定する手順について説明
する。
Next, a procedure for determining only one access method from the modeled access methods will be described.

【0027】まず、図4は、以上の6種類のアクセスメ
ソドが選択率によって処理時間がどのように変化するか
を示した特性図の一例である。なお、図4内の(a)〜
(f)は、図3に示した各アクセスメソドに付した記号
に対応する。(a)のシーケンシャルスキャンは、選択
率に影響することなく全てのデータを読み出さねばなら
ないため、一定の値を示す。同様に、(b)のシーケン
シャルスキャン&選択も全てのデータを読み出さないと
選択処理ができないため、(a)とほぼ同様の特性を示
す。(c)のインデックススキャンは、選択条件の合致
したデータのみを索引で読み出すため、選択率に比例し
た値を示す。(d)のインデックススキャン&選択も、
(c)とほぼ同様の特性を示す。(e)のシーケンシャ
ルスキャン&選択ソートは、一旦(b)のシーケンシャ
ルスキャン&選択によって全てのデータを読み出し、条
件に合致したデータに対してさらにソートを行うため、
(b)の値+αを初期値として右上がりの特性を示す。
(f)のインデックススキャン&選択ソートは、一旦
(d)のインデックススキャン&選択によって必要なデ
ータを読み出し、条件に合致したデータに対してさらに
ソートを行うため、(d)の値+βを初期値として
(d)よりさらに右上がりの特性を示す。
First, FIG. 4 is an example of a characteristic diagram showing how the above six types of access methods change the processing time depending on the selectivity. In addition, (a) -in FIG.
(F) corresponds to the symbol attached to each access method shown in FIG. The sequential scan of (a) shows a constant value because all the data must be read without affecting the selectivity. Similarly, in the sequential scan & selection of (b), the selection process cannot be performed unless all the data is read out, and thus the characteristic is almost the same as that of (a). In the index scan of (c), since only the data that meets the selection condition is read out by the index, the index scan shows a value proportional to the selection rate. (D) Index scan & selection,
It exhibits almost the same characteristics as (c). In the sequential scan & selection sort of (e), all the data is read once by the sequential scan & selection of (b), and further sorting is performed on the data that meets the conditions.
The characteristic of upward rising is shown with (b) value + α as an initial value.
In the index scan & selective sort of (f), necessary data is once read by the index scan & select of (d), and further sorting is performed on the data that meets the condition. Therefore, the value + (β) is the initial value. As shown in FIG.

【0028】図5は、プラン3の読出し条件32中にソ
ート情報33、選択情報34の各情報がどう指定された
かによって、読出し処理としてどのアクセスメソドを使
用すべきかを表形式で示した図である。本実施の形態で
は、選択指定、ソート指定共それぞれ「無」、「有
(単)」、「有(複)」の3種類に分割し、それぞれの
条件の組合せの9通りの条件(イ)〜(リ)に分類して
いる。但し、ここでいうところの「無」や「有」という
のは、選択指定やソート指定があり、かつ、その指定列
に索引が付加されているかを示すものである。また、
「(単)」は1つのみの指定があることを示し、
「(複)」は複数の指定があることを示す。そして、こ
の9通りの条件によりアクセスメソドを決定する際に、
図4の選択率と処理時間の特性を考慮し、問合せ2の実
行時に最も効率的なアクセスメソドを決定する。
FIG. 5 is a diagram showing, in a table format, which access method should be used for the read process depending on how the sort information 33 and the selection information 34 are specified in the read condition 32 of the plan 3. is there. In the present embodiment, the selection designation and the sort designation are each divided into three types of “absence”, “present (single)”, and “present (duplicate)”, and nine combinations of the respective conditions (a) They are categorized as ~ (ri). However, "absence" and "presence" here mean that there is a selection designation or sort designation, and that an index is added to the designated column. Also,
"(Single)" indicates that there is only one designation,
“(Duplicate)” indicates that there are multiple designations. And when determining the access method based on these nine conditions,
Considering the characteristics of the selection rate and the processing time of FIG. 4, the most efficient access method is determined when executing the query 2.

【0029】以上の問合せの実行時にDBMSがモデル
化したアクセスメソドの中から唯一つのアクセスメソド
を選択し決定するというアクセスメソド選択処理のフロ
ーチャートを示したのが図6である。アクセスメソド選
択処理は、このフローチャートに沿って、まずソートの
指定の有無を判定し、次に選択指定の有無を判定する。
最後に図5を参照して、途中で求めた選択率に従って最
も効率的なアクセスメソドを決定する。図5を利用した
アクセスメソド決定処理は、本実施の形態におけるデー
タベース処理方法の一部を構成する。
FIG. 6 shows a flow chart of an access method selection process of selecting and deciding only one access method from the access methods modeled by the DBMS at the time of executing the above query. In the access method selection process, the presence or absence of sort designation is first determined, and then the presence or absence of selection designation is determined according to this flowchart.
Finally, with reference to FIG. 5, the most efficient access method is determined according to the selectivity obtained on the way. The access method determination process using FIG. 5 constitutes a part of the database processing method according to the present embodiment.

【0030】例えば、選択指定が「有(単)」、ソート
指定が「有(複)」という図5における(チ)の場合、
複数の列でソートが可能な(e)シーケンシャルスキャ
ン&選択ソートか(f)インデックススキャン&選択ソ
ートの二つのアクセスメソドが候補として上がる。そし
て、図4から(e)と(f)の特性を見ると、選択率が
約25%未満では(f)の方が速く、それ以上の選択率
では(e)の方が速いことがわかるため、図5に示すよ
うなアクセスメソドの決定方法になる。この結果、デー
タベース処理の実行時にその時の条件に最も適したアク
セスメソドを選択することが可能となり、効率的なデー
タベース処理が実現する。
For example, when the selection designation is "Yes (single)" and the sort designation is "Yes (multiple)" in FIG.
Two access methods, (e) sequential scan & selective sort or (f) index scan & selective sort, which can be sorted by a plurality of columns, are candidates. From the characteristics of (e) and (f) shown in FIG. 4, it can be seen that (f) is faster when the selectivity is less than about 25% and (e) is faster when the selectivity is higher than that. Therefore, the access method is determined as shown in FIG. As a result, it becomes possible to select the access method most suitable for the condition at the time of executing the database processing, and the efficient database processing is realized.

【0031】なお、図6のフローチャート中でソート列
に索引が付いていなくてソート指定「無」となった場合
はアクセスメソドの範囲外でソートの実行が行われるこ
とは言うまでもない。
Needless to say, when the sort column is not indexed in the flowchart of FIG. 6 and the sort designation is “none”, the sort is executed outside the range of the access method.

【0032】以上のように、本実施の形態によれば、問
合せ実行時に動的に変わる可能性のあるパラメータが含
まれていたとしても、問合せ実行前におけるルーズな最
適化によりある程度絞られたアクセスメソドの中から問
合せ実行時に唯一つのアクセスメソドを選択できるよう
にしたので、実行時の状況に応じた最適化を行うことが
できる。
As described above, according to the present embodiment, even if a parameter that may change dynamically at the time of query execution is included, access that is narrowed down to some extent by loose optimization before query execution is performed. Since only one access method can be selected from among the methods at the time of query execution, optimization can be performed according to the situation at the time of execution.

【0033】また、問合せ実行前にルーズな最適化を行
いある程度必要な情報を絞る込むので無駄に資源を消費
することもなく、このため最適化処理により性能が劣化
するということはない。
Also, since loose optimization is performed before query execution and necessary information is narrowed down to some extent, resources are not wastefully consumed, and therefore optimization processing does not deteriorate performance.

【0034】なお、問合せ実行時に動的に変わる可能性
のあるパラメータとして、問合せ選択条件(動的パラメ
ータ、ホスト変数等)、更新可能性(トランザクション
の設定文、LOCKモード等)、ハードウェア資源(デ
ィスク容量、メモリ等)、統計情報(データベース構
造、特徴等)などがある。
As parameters that may dynamically change during query execution, query selection conditions (dynamic parameters, host variables, etc.), updatability (transaction setting statements, LOCK mode, etc.), hardware resources ( Disk capacity, memory, etc.), statistical information (database structure, characteristics, etc.).

【0035】実施の形態2.次に、本発明の第2の実施
の形態に関し、図7、図8を用いて説明する。上記実施
の形態1では、アクセス処理としてデータの読出しを行
う検索処理の場合で説明したが、本実施の形態では、更
にデータの書込みを行う更新処理を含めたものである。
Embodiment 2 Next, a second embodiment of the present invention will be described with reference to FIGS. In the above-described first embodiment, the case of the search process of reading data as the access process has been described, but the present embodiment further includes the update process of writing data.

【0036】SQL等のデータベース言語では、問合せ
が更新可能かどうかをカーソル指定等で明示的に指定す
ることができ、一般的に更新可能な問合せを処理する手
順は、検索だけを処理する場合と異なるため、コンパイ
ル時の最適化でも更新可能性が考慮される。また、問合
せのコンパイル時に指定されるカーソル指定では更新可
能であったとしても、トランザクションの属性として読
込み専用が指定されたり、権限管理により書込み許可が
取り消されたりする等、実際のデータベース処理実行時
には、コンパイル時と条件が異なり、必ずしも最適化で
きるとは限らない。
In a database language such as SQL, it is possible to explicitly specify whether or not a query can be updated by cursor specification or the like. Generally, the procedure for processing a query that can be updated is Because they are different, compile-time optimization also considers updatability. Also, even if the cursor can be updated with the cursor specified when the query is compiled, read-only is specified as the transaction attribute, write permission is revoked by privilege management, etc. The condition is different from that at compile time, and it is not always possible to optimize.

【0037】そこで、本実施の形態は、更新処理におけ
るデータベースのアクセスメソドをもモデル化すること
により実行時の効率を上げるものである。更に、更新処
理実行時におけるデータ更新の可不可状態を更に調べる
ことでアクセスメソドを決定することを特徴とする。
Therefore, in this embodiment, the efficiency at the time of execution is increased by modeling the access method of the database in the update processing. Further, it is characterized in that the access method is determined by further examining the availability of data update during execution of update processing.

【0038】図7は、本実施の形態のプラン130を示
したものであり、実施の形態1の図1に示したプラン3
に相当する部分を抜き出したものである。ここでは、読
出し条件132の中にデータの更新可不可状態を示す
「更新指定」というデータアクセス条件が含まれている
ことが上記実施の形態1におけるプランと異なる。更新
指定には、問合せ中に更新可能が指定された場合に、更
新指定を“有”とし、それ以外の場合更新指定を“無”
とすることで、実行時にアクセスメソドを決定する際の
判断材料とすることができる。
FIG. 7 shows the plan 130 of the present embodiment, which is the plan 3 shown in FIG. 1 of the first embodiment.
It is the one extracted the part corresponding to. Here, the plan is different from the plan in the first embodiment in that the read condition 132 includes a data access condition “update designation” indicating a data updatable state. In the update specification, if the update is specified during the inquiry, the update specification is set to "Yes", otherwise the update specification is "No".
By doing so, it can be used as a judgment material when deciding the access method at the time of execution.

【0039】図8は、本実施の形態のアクセスメソド決
定表であり、実施の形態1の図5に相当するものであ
る。選択指定、ソート指定ともそれぞれ「無」「有
(単)」「有(複)」の3種類に分類しているのは同じ
であるが、9種類の条件を更に更新「有」か「無」かの
18種類に分類しているところが異なる。図8において
は、9種類の各欄を斜線で分割し、左上を「更新有」、
右下を「更新無」として示している。
FIG. 8 is an access method determination table of this embodiment, which corresponds to FIG. 5 of the first embodiment. It is the same that both selection designation and sort designation are categorized into three types of "no", "yes (single)" and "yes (duplicate)". The difference is that they are classified into 18 types. In FIG. 8, each of the nine types of fields is divided by diagonal lines, and the upper left corner is “updated”,
The lower right is shown as "no update".

【0040】データベース処理の実行時には、図6に示
したアクセスメソド選択処理のフローチャートとほぼ同
様の処理手順に従い、ソート指定と選択指定の欄を決定
し、アクセスメソドを決定するために図8を参照する際
に、プラン130の読出し条件132に保持される更新
指定(“有”または“無”)に加えて更にトランザクシ
ョンの属性並びに権限等の更新可不可状態をも合わせて
みることにより、図8の「更新有」「更新無」を選択
し、アクセスメソドを決定する。
At the time of executing the database processing, the sort designation and selection designation columns are determined and the access method is determined in accordance with a processing procedure substantially similar to the flowchart of the access method selection processing shown in FIG. In this case, in addition to the update designation (“present” or “absent”) held in the read condition 132 of the plan 130, it is possible to further match the updateable / non-updatable state of the transaction attribute and the authority. Select “with update” or “without update” of to determine the access method.

【0041】但し、アクセスメソドとして(e)または
(f)を選択すると、中間データを作成するため元のデ
ータとのマッピングが難しくなるので、本実施の形態で
は、更新「有」の場合は(e)と(f)のアクセスメソ
ドを選択しない((カ),(ヨ))。従って、例えば、
図8において選択指定、ソート指定共「有(単)」の場
合((カ))、「更新無」では選択率によりアクセスメ
ソドを変更しているが、「更新有」ではアクセスメソド
を(c)に固定にしている。なお、本実施の形態では、
ソート指定が複数有るような問合せは、更新不可(エラ
ー)としている((タ),(レ),(ソ))。
However, when (e) or (f) is selected as the access method, mapping with the original data becomes difficult because the intermediate data is created. Therefore, in the present embodiment, when the update is “present” ( The access methods of e) and (f) are not selected ((f), (yo)). So, for example,
In FIG. 8, when the selection designation and the sort designation are both “Yes (single)” ((F)), the access method is changed depending on the selection rate in “No update”, but the access method is changed to “(c)” in “With update”. ) Fixed. In the present embodiment,
Inquiries that have multiple sort specifications are not updated (error) ((ta), (re), (so)).

【0042】このように、図8に示したようなクセスメ
ソドの決定表を定義することにより、選択率と処理時間
の関係に加えて上記で説明した更新可不可状態なども考
慮してアクセスメソドの決定を行うことができるので、
また、問合せに含まれていない権限等の未確定項目をも
考慮することができるので、更新処理においても本来の
最適化を図ることができ、効率的なデータベース処理が
実現できる。
By defining the access method determination table as shown in FIG. 8 in this way, the access method is considered in consideration of the above-mentioned update-disabled state in addition to the relationship between the selectivity and the processing time. Because you can make a decision
Further, since unconfirmed items such as the authority not included in the inquiry can be taken into consideration, the original optimization can be achieved also in the update processing, and the efficient database processing can be realized.

【0043】実施の形態3.次に、本発明の第3の実施
の形態に関し、図9を用いて説明する。本実施の形態
は、実施の形態1のハードウェア構成を拡張したもので
ある。上記実施の形態1及び2では、読出しまたは書込
み部分をモデル化し、実行時に最適なアクセスメソドを
選択することでデータベース処理を効率化していた。こ
れに対して、本実施の形態では、データベースアクセス
処理のモデル化に付加型のデータベース専用装置である
データベースプロセッサ(データベースエンジン)の入
出力を付け足すものである。
Embodiment 3. Next, a third embodiment of the present invention will be described with reference to FIG. The present embodiment is an extension of the hardware configuration of the first embodiment. In the first and second embodiments, the database processing is made efficient by modeling the read or write part and selecting the optimum access method at the time of execution. On the other hand, in the present embodiment, the input / output of the database processor (database engine) which is an additional-type database dedicated device is added to the modeling of the database access process.

【0044】図9は、本実施の形態のハードウェア構成
を示すものであり、実施の形態1における図2に相当す
るものである。ここで、付加型のデータベースエンジン
としては、図9(a)に示したディスク一体型のデータ
ベースエンジン154と図9(b)に示したディスク分
離型のデータベースエンジン254とが考えられるが、
本実施の形態ではどちらの場合も同様に扱うことが可能
である。これらのハードウェア構成においてモデル化さ
れるアクセスメソドを考える時に、図3に示したアクセ
スメソドのモデル例にデータベースエンジンで行うモデ
ルを付け足して、図4に示したような処理時間特性によ
り図5に相当するアクセスメソド決定表を作成する。そ
して、前述した手順で唯一つのアクセスメソドを決定
し、データベースエンジンに係るアクセスメソドを含む
ようであれば、そのアクセスメソドに従ったデータベー
スアクセスの一部または全部をデータベースエンジンで
実行させることで、本実施の形態のようなデータベース
エンジンを含めた構成においても最適な実行を行うこと
ができる。
FIG. 9 shows the hardware configuration of the present embodiment, and corresponds to FIG. 2 in the first embodiment. Here, as the additional database engine, the disk-integrated database engine 154 shown in FIG. 9A and the disk-separated database engine 254 shown in FIG. 9B can be considered.
In this embodiment, both cases can be handled in the same way. When considering the access method modeled in these hardware configurations, the model performed by the database engine is added to the model example of the access method shown in FIG. 3, and the processing time characteristics shown in FIG. Create a corresponding access method decision table. Then, if only one access method is determined by the procedure described above and the access method related to the database engine is included, by executing some or all of the database access according to the access method by the database engine, Optimal execution can be performed even in the configuration including the database engine as in the embodiment.

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

【図1】 本発明に係るデータベース処理方法の第1の
実施の形態を用いるデータベース管理システムの動作概
要を説明するために用いる図である。
FIG. 1 is a diagram used for explaining an outline of operation of a database management system using a first embodiment of a database processing method according to the present invention.

【図2】 第1の実施の形態が適用されるデータベース
管理システムのハードウェア構成の一例を示したブロッ
ク図である。
FIG. 2 is a block diagram showing an example of a hardware configuration of a database management system to which the first embodiment is applied.

【図3】 第1の実施の形態におけるデータベースのア
クセスメソドをモデル化した一例を示した図である。
FIG. 3 is a diagram showing an example of modeling a database access method according to the first embodiment.

【図4】 第1の実施の形態でモデル化したアクセスメ
ソド毎の選択率と処理時間の関連の一例を示した図であ
る。
FIG. 4 is a diagram showing an example of the relationship between the selection rate and the processing time for each access method modeled in the first embodiment.

【図5】 第1の実施の形態においてデータベース処理
で使用するアクセスメソドの決定のために用いる表を示
した図である。
FIG. 5 is a diagram showing a table used for determining an access method used in database processing in the first embodiment.

【図6】 第1の実施の形態においてデータベース管理
システムがデータベース処理実行時にアクセスメソドの
決定を行う処理を示したフローチャートである。
FIG. 6 is a flowchart showing a process in which the database management system determines an access method when a database process is executed in the first embodiment.

【図7】 本発明に係るデータベース処理方法の第2の
実施の形態を用いるデータベース管理システムの動作概
要を説明するために用いる図であり、本実施の形態にお
けるプランの構造の一例を示した概要図である。
FIG. 7 is a diagram used to explain the outline of the operation of the database management system using the second embodiment of the database processing method according to the present invention, and is an outline showing an example of the structure of a plan in the present embodiment. It is a figure.

【図8】 第2の実施の形態においてデータベース処理
で使用するアクセスメソドの決定のために用いる表を示
した図である。
FIG. 8 is a diagram showing a table used for determining an access method used in database processing in the second embodiment.

【図9】 本発明に係るデータベース処理方法の第3の
実施の形態を用いるデータベース管理システムのハード
ウェア構成の例を示したブロック図である。
FIG. 9 is a block diagram showing an example of a hardware configuration of a database management system that uses a third embodiment of a database processing method according to the present invention.

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

1 データベース管理システム(DBMS)、2 問合
せ、3,130 プラン、4 データベース、10 コ
ンパイル時処理部、11 問合せ解析部、12プラン候
補作成部、13 最適プラン選択部、14 実行時処理
部、15 アクセスメソド選択部、16 処理実行部、
31,131 処理手順、32,132 読出し条件、
33,133 ソート情報、34,134 選択情報、
41テーブル、42 統計情報、50,150,250
主記憶装置、51,151,251 CPU、52,
152,252 チャネル、53,253 ディスク、
154,254 DBエンジン。
1 database management system (DBMS), 2 queries, 3,130 plans, 4 databases, 10 compile time processing unit, 11 query analysis unit, 12 plan candidate creating unit, 13 optimal plan selecting unit, 14 runtime processing unit, 15 access Method selection section, 16 processing execution section,
31, 131 processing procedure, 32, 132 read condition,
33,133 sort information, 34,134 selection information,
41 tables, 42 statistical information, 50, 150, 250
Main storage device, 51, 151, 251 CPU, 52,
152,252 channels, 53,253 disks,
154,254 DB engine.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 データベースへのアクセス要求の内容を
解析し、最適化処理を行うことでデータベースへアクセ
スを行うための内部処理手順を唯一つに決定するデータ
ベース管理システムにおいて、 データベースアクセス実行前に、データベースへのアク
セスを行うためのアクセス手段をモデル化するモデル作
成ステップと、 データベースアクセス実行前に、アクセス要求の内容か
らデータアクセス条件を含むプランを作成するプラン作
成ステップと、 データベースアクセス実行時に、プランの内容を評価
し、モデル化したアクセス手段の中から最適なアクセス
手段を選択するアクセス手段選択ステップと、 選択したアクセス手段により実際にアクセス処理を行う
処理実行ステップと、 を有することを特徴とするデータベース処理方法。
1. A database management system that analyzes the contents of a database access request and determines only one internal processing procedure for accessing the database by performing optimization processing, before executing database access. A model creation step that models the access means for accessing the database, a plan creation step that creates a plan that includes data access conditions from the contents of the access request before the database access is executed, and a plan creation step when the database access is executed. The method comprises: an access means selection step of evaluating the contents of the above and selecting an optimum access means from the modeled access means; and a processing execution step of actually performing the access processing by the selected access means. Database processing method.
【請求項2】 請求項1記載のデータベース処理方法に
おいて、 前記アクセス手段選択ステップは、アクセス対象データ
の選択率と処理時間との関係に基づいて最も効率的なア
クセス手段を選択することを特徴とするデータベース処
理方法。
2. The database processing method according to claim 1, wherein the access means selecting step selects the most efficient access means based on a relationship between a selection rate of access target data and processing time. How to process the database.
【請求項3】 請求項1記載のデータベース処理方法に
おいて、 前記プラン作成ステップは、アクセスするデータの更新
可不可状態を考慮してプランを作成することを特徴とす
るデータベース処理方法。
3. The database processing method according to claim 1, wherein the plan creating step creates a plan in consideration of an updatable state of the data to be accessed.
【請求項4】 請求項1、3記載のデータベース処理方
法において、 データベースアクセス実行時におけるデータ更新の可不
可状態を調べるステップを含み、 前記アクセス手段選択ステップは、データ更新の可不可
状態に応じてアクセス手段を選択することを特徴とする
データベース処理方法。
4. The database processing method according to claim 1, further comprising a step of checking a data update enabled / disabled state at the time of executing a database access, wherein the access means selecting step is performed according to the data update enabled / disabled state. A database processing method characterized by selecting an access means.
【請求項5】 請求項3、4記載のデータベース処理方
法において、 前記アクセス手段選択ステップは、アクセス対象データ
の選択率と処理時間との関係並びに更新可不可状態に基
づいて最も効率的なアクセス手段を選択することを特徴
とするデータベース処理方法。
5. The database processing method according to claim 3, wherein the access means selecting step is the most efficient access means based on a relationship between a selection rate of access target data and processing time and an updatable state. A database processing method characterized by selecting.
【請求項6】 請求項1記載のデータベース処理方法に
おいて、 データベースアクセス処理の一部または全部を付加型の
データベース処理専用装置において実行させることを特
徴とするデータベース処理方法。
6. The database processing method according to claim 1, wherein a part or all of the database access processing is executed by an additional database processing dedicated device.
JP03663896A 1996-02-23 1996-02-23 Database processing method Expired - Fee Related JP3434641B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03663896A JP3434641B2 (en) 1996-02-23 1996-02-23 Database processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03663896A JP3434641B2 (en) 1996-02-23 1996-02-23 Database processing method

Publications (2)

Publication Number Publication Date
JPH09231115A true JPH09231115A (en) 1997-09-05
JP3434641B2 JP3434641B2 (en) 2003-08-11

Family

ID=12475391

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03663896A Expired - Fee Related JP3434641B2 (en) 1996-02-23 1996-02-23 Database processing method

Country Status (1)

Country Link
JP (1) JP3434641B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001357063A (en) * 2000-04-28 2001-12-26 Internatl Business Mach Corp <Ibm> Execution of database query including filtering
JP2005258735A (en) * 2004-03-11 2005-09-22 Hitachi Ltd Db cooperation prefetch system
WO2012026140A1 (en) * 2010-08-25 2012-03-01 株式会社日立製作所 Database processing method, database processing system and database server
JP2013033517A (en) * 2012-11-06 2013-02-14 Hitachi Ltd Database processing method and database processing system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01194028A (en) * 1988-01-29 1989-08-04 Hitachi Ltd Method for processing data base

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01194028A (en) * 1988-01-29 1989-08-04 Hitachi Ltd Method for processing data base

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001357063A (en) * 2000-04-28 2001-12-26 Internatl Business Mach Corp <Ibm> Execution of database query including filtering
US6879977B2 (en) 2000-04-28 2005-04-12 International Business Machines Corporation Execution of database queries including filtering
US8825616B2 (en) 2000-04-28 2014-09-02 International Business Machines Corporation Execution of database queries including filtering
JP2005258735A (en) * 2004-03-11 2005-09-22 Hitachi Ltd Db cooperation prefetch system
JP4486384B2 (en) * 2004-03-11 2010-06-23 株式会社日立製作所 DB linkage prefetch system
WO2012026140A1 (en) * 2010-08-25 2012-03-01 株式会社日立製作所 Database processing method, database processing system and database server
JP2012048332A (en) * 2010-08-25 2012-03-08 Hitachi Ltd Database processing method, database processing system, and database server
US9348866B2 (en) 2010-08-25 2016-05-24 Hitachi, Ltd. Database processing method, database processing system and database server
JP2013033517A (en) * 2012-11-06 2013-02-14 Hitachi Ltd Database processing method and database processing system

Also Published As

Publication number Publication date
JP3434641B2 (en) 2003-08-11

Similar Documents

Publication Publication Date Title
US7499917B2 (en) Processing cross-table non-Boolean term conditions in database queries
US6789071B1 (en) Method for efficient query execution using dynamic queries in database environments
US7080062B1 (en) Optimizing database queries using query execution plans derived from automatic summary table determining cost based queries
US8423569B2 (en) Decomposed query conditions
US7792772B2 (en) Method and system for optimizing configuration classification of software
JPH01194028A (en) Method for processing data base
US20070156736A1 (en) Method and apparatus for automatically detecting a latent referential integrity relationship between different tables of a database
US20060074874A1 (en) Method and apparatus for re-evaluating execution strategy for a database query
US20070250517A1 (en) Method and Apparatus for Autonomically Maintaining Latent Auxiliary Database Structures for Use in Executing Database Queries
JP3670770B2 (en) Method and apparatus for configuring a database
US7171398B2 (en) Outer and exception join to inner join normalization
US20090083277A1 (en) Nodal data normalization
CN111078705A (en) Spark platform based data index establishing method and data query method
KR20160117691A (en) Storage system and method for operating thereof
US7797290B2 (en) Database reorganization program and method
US6269359B1 (en) Relational data base system and method for rapidly realizing a query to a database
CN102789488A (en) Data query processing system and data query processing method
JP3434641B2 (en) Database processing method
US20060085464A1 (en) Method and system for providing referential integrity constraints
US7155432B2 (en) Method and system decoding user defined functions
US20060004863A1 (en) Method, system and program for simplifying data flow in a statement with sequenced subexpressions
US20020138464A1 (en) Method and apparatus to index a historical database for efficient multiattribute SQL queries
JP2780996B2 (en) Query optimization processing method
JP3538322B2 (en) Database management system and query processing method
WO2021215101A1 (en) Data management system and data management method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees