JPH04117561A - Data base system - Google Patents

Data base system

Info

Publication number
JPH04117561A
JPH04117561A JP2237646A JP23764690A JPH04117561A JP H04117561 A JPH04117561 A JP H04117561A JP 2237646 A JP2237646 A JP 2237646A JP 23764690 A JP23764690 A JP 23764690A JP H04117561 A JPH04117561 A JP H04117561A
Authority
JP
Japan
Prior art keywords
database
subset
command
list
record
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
JP2237646A
Other languages
Japanese (ja)
Inventor
Kazunori Shimakawa
島川 和典
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2237646A priority Critical patent/JPH04117561A/en
Publication of JPH04117561A publication Critical patent/JPH04117561A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the inquiring efficiency to a data base by processing only the partial assembly of the data base shown by a partial assembly list by a data base arithmetic unit when a command issuing means of a host CPU issues a command where the partial assembly list is set to the data base arithmetic unit. CONSTITUTION:A partial assembly list production means of a host CPU 10 has an access to an index file 60 with use of the key value designated with the selecting conditions and searches pointers to all records having the same value as the designated key value to produce a partial assembly list showing the position of the record group. This produced assembly list is set into a command 21 by a command issuing means of the CPU 10 and sent to a data base arithmetic unit 30. The unit 30 receives the command 21 and inputs only the partial assembly of a data base that is shown by the partial assembly list set in the command 21 to process the partial assembly. Thus the data base inquiry processing speed is increased.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、データベースの問合せを効率的に処理する
ためにデータベース演算装置を備えたデータベースシス
テムに関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a database system equipped with a database arithmetic unit for efficiently processing database queries.

(従来の技術) 従来より、データベースへの問合せ処理では選択条件が
指定される。この選択条件は、例えば商品番号−“50
01”というように特定の値でもって目的のレコードを
選択するために指定される。一般に、選択条件となるフ
ィールドに対しては索引を付加することにより、問合せ
処理を効率的に行う方式が採られている。このようなフ
ィールドのことを索引キー(以下、単にキーと呼ぶ)と
呼んでいる。キーには、フィールドの値が一意な1次キ
ーと、−意ではなく重複する2次キーとがある。1次キ
ーを用いれば、値が一意であるので処理対象レコードも
1件しかなく、よって処理は高速に行える。しかし、2
次キーは重複値を持つので処理対象のレコードを検索す
るのに時間がかかる。さて、成るキー値に対する目的の
レコードの位置を素早く見付けるために、従来から索引
ファイルが使用されている。索引ファイルには、1次キ
ーと2次キーの全てに対して、キー値とファイル上のレ
コードへのポインタとの対から構成される索引レコード
がデータベース上のレコードの数だけ格納される。
(Prior Art) Conventionally, selection conditions are specified in query processing to a database. This selection condition is, for example, product number - “50
This is specified to select a target record using a specific value such as "01".In general, a method is used to efficiently perform query processing by adding an index to the field that is the selection condition. Such fields are called index keys (hereinafter simply referred to as keys).Keys include primary keys whose field values are unique, and secondary keys whose field values are unique. If you use a primary key, the value is unique, so there is only one record to process, and therefore processing can be done quickly.However, 2
Since the next key has duplicate values, it takes time to search for the record to be processed. Now, in order to quickly find the position of a target record with respect to a key value, an index file has traditionally been used. The index file stores as many index records as there are records on the database, each consisting of a key value and a pointer to a record on the file for each primary key and secondary key.

ところで、データベースを扱うシステムでは、ホストC
PUの負荷を軽減し、且つデータベースを効率的に処理
するために、ホストCPUからの要求によりデータベー
スを専用に処理するデータベース演算装置が付加されて
いるのが一般的である。このデータベース演算装置は、
バスを介してホストCPUに接続されており、もともと
キーには異存しない安定した高速な処理性能を提供して
いた。即ちデータベース演算装置は、選択条件で指定さ
れた目的のレコードを処理するのに、ホス)CPUの指
示によりデータベース全体を常に入力するという方式を
採っていた。しかし、前述したようにキー(索引ファイ
ル)を使用すればデータベース全体を入力するよりは効
率良く処理できるはずである。つまり、データベース演
算装置の安定した処理性能とは、裏返せば最適な高速処
理が出来ないことを意味していた、このような不都合は
、ホストCPU側がデータベース全体をデータベース演
算装置に与えることに起因していた。
By the way, in a system that handles databases, host C
In order to reduce the load on the PU and process the database efficiently, a database processing unit is generally added that exclusively processes the database upon request from the host CPU. This database calculation device is
It is connected to the host CPU via a bus, and originally provided stable and high-speed processing performance that was not unique to keys. In other words, the database arithmetic device always inputs the entire database according to instructions from the host CPU in order to process the target record specified by the selection conditions. However, as mentioned above, using keys (index files) should be more efficient than inputting the entire database. In other words, the stable processing performance of the database processing unit meant that optimal high-speed processing could not be achieved.This inconvenience was caused by the host CPU giving the entire database to the database processing unit. was.

(発明が解決しようとする課題) 上記したように従来のデータベースシステムでは、キー
(索引ファイル)が存在するるにも拘らず、ホストCP
Hの指示によりデータベース全体がデータベース演算装
置に与えられる方式を採っていたため、データベースア
クセス性能の低下を招くという問題があった。
(Problems to be Solved by the Invention) As mentioned above, in the conventional database system, even though the key (index file) exists, the host CP
Since the entire database is given to the database arithmetic unit according to instructions from H, there is a problem in that the database access performance deteriorates.

この発明は上記事情に鑑みてなされたものでその目的は
、選択条件で指定される目的のレコード群を含むデータ
ベースの部分集合だけをデータベース演算装置に入力す
ることができ、もってデータベース演算装置を利用した
データベースへの問合せを効率的に行うことができるデ
ータベースシステムを提供することにある。
This invention has been made in view of the above circumstances, and its purpose is to input only a subset of a database containing a target record group specified by selection conditions into a database processing device, thereby making it possible to utilize the database processing device. An object of the present invention is to provide a database system that can efficiently make inquiries to a database that has been updated.

[発明の構成] (課題を解決するための手段) この発明は、索引ファイルと、データベースへの問合せ
において指定される選択条件のキー値から索引ファイル
を参照することにより、このキー値を持つレコード群か
ら成るデータベースの部分集合を探し、その部分集合の
位置情報を持つ部分集合リストを作成する部分集合リス
ト作成手段と、この部分集合リスト作成手段によって作
成された部分集合リストが設定されたデータベース処理
用のコマンドをホストCPUからデータベース演算装置
に対して発行するコマンド発行手段と、ホストCPUか
らのコマンドを受けてデータベース演算を専用に処理す
るデータベース演算装置とを設け、ホストCPUのコマ
ンド発行手段からデータベース演算装置に対して上記部
分集合リストが設定されたコマンドが発行された場合に
、この部分集合リストで示されるデータベースの部分集
合だけをデータベース演算装置に入力して処理するよう
にしたことを特徴とするものである。
[Structure of the Invention] (Means for Solving the Problems) This invention provides an index file and a record having this key value by referring to the index file from a key value of a selection condition specified in a query to a database. Subset list creation means for searching for a subset of a database consisting of a group and creating a subset list having positional information of the subset, and database processing in which the subset list created by the subset list creation means is set. A command issuing means for issuing commands from the host CPU to the database arithmetic unit, and a database arithmetic unit for exclusively processing database operations in response to commands from the host CPU are provided. The present invention is characterized in that when a command in which the above-mentioned subset list is set is issued to a computing device, only the subset of the database indicated by the subset list is input to the database computing device and processed. It is something to do.

(作 用) この発明によれば、部分集合リスト作成手段は、選択条
件に指定されたキー値を使用して索引ファイルをアクセ
スすることにより、指定されたキー値と同一のキー値を
持つ全てのレコードについて、そのレコードへのポイン
タを探し出し、このレコード群の位置を示す部分集合リ
ストを作成する。部分集合リスト作成手段によって部分
集合リストが作成されると、その部分集合リストがホス
トCPUのコマンド発行手段によりコマンド中に設定さ
れ、データベース演算装置に発行される。
(Function) According to the present invention, the subset list creation means accesses the index file using the key value specified in the selection condition, thereby accessing all the items having the same key value as the specified key value. For each record, find a pointer to that record and create a subset list indicating the position of this record group. When a subset list is created by the subset list creation means, the subset list is set in a command by the command issuing means of the host CPU, and is issued to the database arithmetic unit.

データベース演算装置は、このコマンドを受取ると、こ
のコマンド中に設定されている部分集合リストで示され
ているデータベースの部分集合(を構成するレコード群
)だけを入力し、処理を行う。
When the database arithmetic unit receives this command, it inputs and processes only the subset of the database (the records forming the subset) indicated in the subset list set in this command.

このように、この発明では、目的のレコード群を含むデ
ータベースの部分集合だけを入力して処理するため、デ
ータベース全体を入力して処理していた従来システムに
比べて、データベース演算装置を利用したデータベース
問合せ処理の高速化が図れる上に、ホストCPUの負荷
分散も図れる。
In this way, the present invention inputs and processes only a subset of the database that includes the target record group, so compared to the conventional system that inputs and processes the entire database, it is possible to use a database using a database calculation device. In addition to speeding up query processing, it is also possible to distribute the load on the host CPU.

(実施例) 第1図はこの発明の一実施例に係るデータベースシステ
ムのブロック構成図である。同図において、10はシス
テムの中枢を成すホストCPUである。このホストCP
Ul0は、データベースへの問合せにおいて指定される
選択条件のキー値から後述する索引ファイルBOを参照
することにより、このキー値を持つレコード群から成る
データベース50の部分集合(データベース部分集合)
51のリスト(図示せず)を作成する部分集合リスト作
成機能と、この部分集合リストで示されるデータベース
部分集合51のデータベース処理をデータベース演算装
置30に要求するためのコマンド21等を発行するコマ
ンド発行機能を有している。2oはデータベース処理用
のコマンド21等が格納される主記憶、30はホストC
PUIGによって発行されるコマンド21等を受けて、
指定されたデータベース演算を行うデータベース演算装
置、40はホストCPU10、主記憶20、データベー
ス演算装置30および図示せぬ2次記憶装置等を相互接
続するためのバスである。50は2次記憶装置上にあっ
て、データベース問合せの対象となるレコードが格納さ
れるデータベース、51はデータベース50の一部を成
し、主記憶20上のコマンド21の要求によりデータベ
ース演算装置30が処理すべきデータベース部分集合、
60は2次記憶装置上にあって索引レコード群が格納さ
れる索引ファイルである。
(Embodiment) FIG. 1 is a block diagram of a database system according to an embodiment of the present invention. In the figure, 10 is a host CPU that forms the core of the system. This host CP
Ul0 is a subset of the database 50 (database subset) consisting of a group of records having this key value by referring to the index file BO, which will be described later, from the key value of the selection condition specified in the query to the database.
A subset list creation function that creates a list of database subsets 51 (not shown), and a command issuing function that issues commands 21 and the like for requesting the database processing unit 30 to perform database processing on the database subset 51 shown in this subset list. It has a function. 2o is the main memory where commands 21 etc. for database processing are stored; 30 is the host C
In response to command 21 etc. issued by PUIG,
A database arithmetic device 40 that performs a designated database arithmetic operation is a bus for interconnecting the host CPU 10, the main memory 20, the database arithmetic device 30, and a secondary storage device (not shown). Reference numeral 50 is a database located on a secondary storage device and stores records subject to database queries; 51 forms a part of the database 50; database subset to be processed,
60 is an index file located on the secondary storage device in which a group of index records is stored.

第2図はデータベース50と索引ファイル60との対応
関係を具体的に示す。第2図に示すデータベース50は
、キーフィールド52を持つレコードの群から成る。こ
のレコード群には、キー値“8003°のキーフィール
ド52を持つレコード53、54が含まれている。また
索引ファイル60は、索引レコード群から成る。各索引
レコードは、データベース50に格納されているレコー
ドのキーフィールド52の値を含むキー値61と該当レ
コードを指すポインタB2から成る。索引ファイル80
に格納されている索引レコード群には、キー値″S 0
03’と同キー値’S OO3’のキーフィールド52
を持つデータベース50上のレコードを指すポインタ″
R4”、“R5°から成る索引レコード68.64が含
まれている。
FIG. 2 specifically shows the correspondence between the database 50 and the index file 60. The database 50 shown in FIG. 2 consists of a group of records having a key field 52. The database 50 shown in FIG. This record group includes records 53 and 54 having a key field 52 with a key value of “8003°.The index file 60 also consists of an index record group.Each index record is stored in the database 50. The index file 80 consists of a key value 61 containing the value of the key field 52 of the record in question, and a pointer B2 pointing to the record.
The index record group stored in ``S 0
Key field 52 with the same key value 'SOO3' as 03'
A pointer to a record on database 50 with ``
It contains index records 68.64 consisting of "R4" and "R5°.

次に、この発明の一実施例の動作を、データベース50
への問合せにおいて、”5OO3”という値をキーフィ
ールド52に持つデータベース50上のレコードをデー
タベース演算装置30に処理させるためのコマンド21
を作成するものとして、第3図のフローチャートを参照
して説明する。なお本実施例では、索引ファイル60内
の各索引レコードはそのレコード内のキー値61によっ
て昇順に並べられていることを前提とする(注:索引フ
ァイルBOはB−Tree等であり、先頭の索引レコー
ドから順番に辿る必要はないのが一般的である)。
Next, the operation of one embodiment of the present invention will be explained using the database 50.
A command 21 for causing the database arithmetic unit 30 to process a record on the database 50 that has the value "5OO3" in the key field 52 in an inquiry to
The following will explain how to create the following with reference to the flowchart in FIG. In this embodiment, it is assumed that each index record in the index file 60 is arranged in ascending order by the key value 61 in the record (Note: the index file BO is a B-Tree etc., and the first It is generally not necessary to follow the index records sequentially.)

まず、第1図のシステムにおけるホストCPUl0は部
分集合リストを初期化しくステップS1)、更にリスト
の要素番号iを0に設定する(ステップS2)。そして
ホストCPUl0はデータベース50への問合せに指定
された選択条件“5003”を取出しくステップミ3)
、その選択条件“8003”と同値なキー値61を持つ
索引レコードを索引ファイル60から検索するための検
索動作を行う(ステップS4)。この検索動作により、
索引ファイル60からキー値61が“8003”の最初
の目的索引レコード63(第2図参照)が得られる。
First, the host CPU 10 in the system of FIG. 1 initializes a subset list (step S1), and further sets the element number i of the list to 0 (step S2). Then, the host CPU 10 retrieves the selection condition "5003" specified in the query to the database 50 (Step 3)
, performs a search operation to search the index file 60 for an index record having the key value 61 that is equivalent to the selection condition "8003" (step S4). This search behavior results in
The first target index record 63 (see FIG. 2) with the key value 61 of "8003" is obtained from the index file 60.

ホストCPUl0は目的とする索引レコードB3を検索
すると、その索引レコード63に含まれている(データ
ベース50上のレコード53への)ボインタ“R4″を
、要素番号iで指定されるi番目の要素(ここではi−
Qである先頭の要素)として部分集合リストに設定する
(ステップS5)。次にホストCPUl0は要素番号i
を1つ進めて(ステップS6)、再び上記ステップS4
の検索動作を行う。これによりホストCPUl0は、索
引ファイル60から、選択条件“5OO3”と同値なキ
ー値B1を持つ次の索引レコード84 (第2図参照)
を得る。ホストc p v ioは索引レコードB4を
検索すると、その索引レコード64に含まれている(デ
ータベース50上のレコード54への)ポインタ“R5
を、要素番号iで指定されるi番目の要素(ここではi
−1である2番目の要素)として部分集合リストに設定
する(ステップS5)。次にホストCPUl0は要素番
号iを1つ進めて(ステップS6)、再び上記ステップ
S4の検索動作を行うホストCPUl0は索引ファイル
60に対する検索動作で、選択条件“8003”より大
きいキー値B1を持つ索引レコードを見付けると、言換
えれば選択条件“8003”と同値のキー値6■を持つ
索引レコードを得た後に、それ以外の値のキー値61を
持つ索引レコードを検出すると、索引ファイル60の検
索終了を判断する。この終了判断は、索引ファイルBO
の性質として同一のキー値を持つ索引レコード(ここで
は索引レコードH,84)は互いに隣あって並んでいる
ことを利用したもので、選択条件値(“8003”)以
外のキー値が現れた時点で索引ファイル60の検索を終
えることにより、無駄な検索処理を無くすことができる
When the host CPU 10 searches for the target index record B3, it moves the pointer "R4" (to the record 53 on the database 50) included in the index record 63 to the i-th element (designated by the element number i). Here i-
The first element Q) is set in the subset list (step S5). Next, host CPU10 uses element number i
is advanced one step (step S6), and the above step S4 is performed again.
performs the search operation. As a result, the host CPU 10 selects the next index record 84 from the index file 60 that has the key value B1 that is equivalent to the selection condition "5OO3" (see Figure 2).
get. When the host c p v io retrieves the index record B4, it retrieves the pointer "R5" (to the record 54 on the database 50) contained in the index record 64.
is the i-th element specified by element number i (here i
-1) in the subset list (step S5). Next, the host CPU 10 increments the element number i by one (step S6) and performs the search operation in step S4 again.The host CPU 10 performs a search operation on the index file 60 and has a key value B1 larger than the selection condition "8003". When an index record is found, in other words, after an index record with a key value 6■ which is the same value as the selection condition "8003" is obtained, an index record with a key value 61 which is a value other than that is detected, the index file 60 is Determine whether the search has ended. This termination judgment is based on the index file BO
This takes advantage of the fact that index records with the same key value (index record H, 84 in this case) are lined up next to each other as a property of By finishing the search of the index file 60 at this point, unnecessary search processing can be eliminated.

以上のようにして、データベース5o上のレコード53
.54を指すポインタ“R4”R5°が設定された部分
集合リストが作成され、索引ファイル60の検索が終了
すると、ホストCPUIDは作成した部分集合リストと
同リストのサイズを表す要素番号i(ここでは1−2)
とを併せて主記憶20上のコマンド21に設定する(ス
テップS7)。
As described above, record 53 on database 5o
.. When a subset list with pointers “R4” and “R5°” pointing to 54 is created and the search in the index file 60 is completed, the host CPU ID is set to the created subset list and the element number i (here, 1-2)
and is set in the command 21 on the main memory 20 (step S7).

このコマンド21に設定された部分集合リストとリスト
サイズ(要素番号)iにより、データベース演算装置3
oが処理すべきデータベース部分集合51、即ち第4図
に示すようなデータベース5o上のレコード53.54
から成るデータベース部分集合51が指定される。
Based on the subset list and list size (element number) i set in this command 21, the database calculation device 3
Records 53, 54 on the database subset 51 to be processed by o, i.e. the database 5o as shown in FIG.
A database subset 51 consisting of is specified.

ホストCPUl0は、部分集合リストとリストサイズ(
要素番号)iをコマンド21に設定するとそのコマンド
21をバス40を経由してデータベース演算装置30に
転送する。なお、リストサイズ(要素番号)iがゼロの
場合には、選択条件に合致する索引レコードが索引ファ
イル601:1つも存在しないことになる。この場合、
ホストCPUl0はデータベース演算装置30に対して
コマンド21を送る必要はなく、問合せの処理結果はゼ
ロ件となる。
The host CPU 10 has a subset list and list size (
When element number) i is set in the command 21, the command 21 is transferred to the database arithmetic unit 30 via the bus 40. Note that if the list size (element number) i is zero, there is no index record in the index file 601 that matches the selection condition. in this case,
There is no need for the host CPU 10 to send the command 21 to the database arithmetic unit 30, and the result of processing the inquiry is zero.

データベース演算装置80は、ホストCPUl0から部
分集合リストおよびリストサイズ(要素番号i)が設定
されたコマンド21が転送(発行)されると、その部分
集合リストおよびリストサイズiで示されるデータベー
ス50上のデータベース部分集合51だけを処理をする
。即ちデータベース演算装置30は、コマンド21の指
定に応じて、データベース部分集合51(を構成するレ
コード5L 54)だけをデータベース50からバス4
0を介して入力しこのデータベース部分集合51だけを
処理する。
When the command 21 in which the subset list and list size (element number i) are set is transferred (issued) from the host CPU 10, the database processing unit 80 executes the command 21 on the database 50 indicated by the subset list and list size i. Only the database subset 51 is processed. That is, the database processing device 30 transfers only the database subset 51 (records 5L 54 constituting the database subset 51) from the database 50 to the bus 4 according to the specification of the command 21.
0 and processes only this database subset 51.

なお、前記実施例では、部分集合リストが、選択条件値
に一致′するキー値を持つ全ての索引レコードのポイン
タから成るものとして説明したが、これに限るものでは
ない。例えば、連続するポインタを開始と終了の組で持
つようにすれば、その間のポインタは不要となるため、
部分集合リストのサイズを小さくすることができる。こ
の効果は、データベース部分集合を構成するレコード数
が多い場合はど顕著となる。また、こうすることにより
、データベース演算装置8oがデータベース5oがら目
的のレコード群即ちデータベース部分集合(51)を入
力する際にまとめて入力でき、結果としてデータベース
50が置かれる2次記憶のアクセス時間の短縮を計るこ
ともできる。
In the above embodiment, the subset list is described as consisting of pointers of all index records having key values that match the selection condition value, but the present invention is not limited to this. For example, if you have a pair of consecutive pointers at the start and end, you won't need the pointers in between, so
The size of the subset list can be reduced. This effect becomes more noticeable when the number of records that make up a database subset is large. In addition, by doing this, when the database arithmetic unit 8o inputs the target record group, that is, the database subset (51) from the database 5o, it can input them all at once, and as a result, the access time of the secondary storage where the database 50 is placed can be reduced. You can also measure shortening.

C発明の効果] 以上詳述したようにこの発明によれば、データベースへ
の問合せにおいて指定される選択条件のキー値から索引
ファイルを参照することにより、このキー値を持つレコ
ード群から成るデータベースの部分集合の位置情報を持
つ部分集合リストを作成し、この部分集合リストが設定
されたコマンドをホストCPUからデータベース演算装
置に発行することで、データベース演算装置では、選択
条件で指定される目的のレコード群を含むデータベース
の部分集合だけをデータベースから入力して処理するこ
とができるようになり、データベース全体を入力してい
た従来システムに比べて、データベース演算装置を利用
したデータベースへの問合せを効率的に行うことができ
る。
C. Effects of the Invention] As detailed above, according to the present invention, by referring to the index file from the key value of the selection condition specified in the query to the database, the database consisting of the record group having this key value can be searched. By creating a subset list with location information of the subsets and issuing a command with this subset list set from the host CPU to the database processing device, the database processing device can select the target record specified by the selection condition. It is now possible to input and process only a subset of the database, including groups, from the database, making queries to the database using a database processing unit more efficient than with conventional systems that input the entire database. It can be carried out.

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

第1図はこの発明の一実施例に係るデータベースシステ
ムのブロック構成図、第2図は同実施例で適用されるデ
ータベース50と索引ファイルBOとの対応関係を具体
的に示す図、j@3図は同実施例におけるデータベース
部分集合決定手順を説明するためのフローチャート、第
4図は第3図のフローチャートに従って決定されたキー
値“8003”が選択条件の場合のデータベース部分集
合51を索引ファイル60内の索引レコードと対応させ
て示す図である。 10・・・ホストCPLJ、20・・・主記憶、21・
・・コマンド、30・・・データベース演算装置、50
・・・データベース、51・・・データベース部分集合
、52・・・キーフィールド、60・・・索引ファイル
、61・・・キー値、62・・・ポインタ。
FIG. 1 is a block configuration diagram of a database system according to an embodiment of the present invention, and FIG. 2 is a diagram specifically showing the correspondence between a database 50 and an index file BO applied in the embodiment. The figure is a flowchart for explaining the database subset determination procedure in the same embodiment, and FIG. 4 shows the database subset 51 determined in accordance with the flowchart of FIG. FIG. 10...Host CPLJ, 20...Main memory, 21.
...Command, 30...Database calculation device, 50
... Database, 51 ... Database subset, 52 ... Key field, 60 ... Index file, 61 ... Key value, 62 ... Pointer.

Claims (1)

【特許請求の範囲】 ホストCPUから発行されるデータベース処理のための
コマンドを受けてデータベース演算を専用に処理するデ
ータベース演算装置を備えたデータベースシステムにお
いて、 データベース上のレコードのキーフィールドの値である
キー値と同レコードの位置を指定するポインタとの対を
持つ索引レコードが上記データベース上の各レコードに
ついて格納された索引ファイルと、 上記データベースへの問合せにおいて指定される選択条
件のキー値から上記索引ファイルを参照することにより
、このキー値を持つレコード群から成るデータベースの
部分集合を探し、その部分集合の位置情報を持つ部分集
合リストを作成する部分集合リスト作成手段と、 この部分集合リスト作成手段によって作成された部分集
合リストが設定されたコマンドを上記ホストCPUから
データベース演算装置に対して発行するコマンド発行手
段と、 を具備し、上記データベース演算装置は、上記コマンド
発行手段によって発行され、上記部分集合リストが設定
されたコマンドを受取った場合に、同コマンド中の部分
集合リストで示されるデータベースの部分集合だけを入
力して処理を行うようにしたことを特徴とするデータベ
ースシステム。
[Scope of Claims] In a database system equipped with a database arithmetic unit that exclusively processes database arithmetic operations in response to commands for database processing issued from a host CPU, a key that is a value of a key field of a record on a database is provided. An index file in which an index record containing a pair of a value and a pointer specifying the position of the same record is stored for each record in the above database, and the above index file is stored from the key value of the selection condition specified in the query to the above database. A subset list creation means that searches for a subset of the database consisting of records having this key value by referring to the database, and creates a subset list having position information of the subset; command issuing means for issuing a command in which the created subset list is set from the host CPU to the database computing device; A database system characterized in that, when a command in which a list is set is received, processing is performed by inputting only a subset of a database indicated by a subset list in the command.
JP2237646A 1990-09-07 1990-09-07 Data base system Pending JPH04117561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2237646A JPH04117561A (en) 1990-09-07 1990-09-07 Data base system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2237646A JPH04117561A (en) 1990-09-07 1990-09-07 Data base system

Publications (1)

Publication Number Publication Date
JPH04117561A true JPH04117561A (en) 1992-04-17

Family

ID=17018409

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2237646A Pending JPH04117561A (en) 1990-09-07 1990-09-07 Data base system

Country Status (1)

Country Link
JP (1) JPH04117561A (en)

Similar Documents

Publication Publication Date Title
US7814042B2 (en) Selecting candidate queries
US6266660B1 (en) Secondary index search
US6609131B1 (en) Parallel partition-wise joins
US5745746A (en) Method for localizing execution of subqueries and determining collocation of execution of subqueries in a parallel database
US6122644A (en) System for halloween protection in a database system
US6513028B1 (en) Method, system, and program for searching a list of entries when search criteria is provided for less than all of the fields in an entry
US6353819B1 (en) Method and system for using dynamically generated code to perform record management layer functions in a relational database manager
Guh et al. Algorithms to process distributed queries in fast local networks
US6999967B1 (en) Semantically reducing the number of partitions involved in a join
CN108804580B (en) Method for querying keywords in federal RDF database
JP3653333B2 (en) Database management method and system
Tan et al. Cache-on-demand: Recycling with certainty
JPH04117561A (en) Data base system
JPH08235033A (en) Joint arithmetic system for object-oriented data base management system
Yao et al. Analysis of database system architectures using benchmarks
JPH0644309A (en) Data base managing system
USRE37965E1 (en) Method for localizing execution or subqueries and determining collocation of execution of subqueries in a parallel database
JP2639804B2 (en) Database search device
JPS61141035A (en) Data retrieval system
JPS6315331A (en) Data base processing method
Welch et al. Retrieval using ordered lists in inverted and multilist files
JPH04156624A (en) High speed accessing systme in knowledge base systme
JPH04303261A (en) Method for retrieving overlapping data by horizontal division and extraction in distributed relation data base
CA2159270C (en) Method for localizing execution of subqueries and determining collocation of execution of subqueries in a parallel database
JPH113260A (en) Database management method