JPS61127046A - Control system for prefetching from data base - Google Patents

Control system for prefetching from data base

Info

Publication number
JPS61127046A
JPS61127046A JP59249042A JP24904284A JPS61127046A JP S61127046 A JPS61127046 A JP S61127046A JP 59249042 A JP59249042 A JP 59249042A JP 24904284 A JP24904284 A JP 24904284A JP S61127046 A JPS61127046 A JP S61127046A
Authority
JP
Japan
Prior art keywords
record
page
prefetching
control
memory
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
JP59249042A
Other languages
Japanese (ja)
Inventor
Masayuki Mizuma
水摩 正行
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP59249042A priority Critical patent/JPS61127046A/en
Publication of JPS61127046A publication Critical patent/JPS61127046A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To prevent the useless prefetching actions and to perform only the original data processing job by starting the prefetching control after data satisfying all retrieval conditions are fixed in case the retrieval conditions are formed with combinations of ANDs. CONSTITUTION:The bit map record containing a bit map, an identification code and a record number is written on a main memory 30 with a prefetching controller 20 connected to a central processor 10 and the memory 30. A prefetching control part 21 receives the record numbers to be stored in a page from the processor 10 to send them to an address converting part 24 and at the same time holds the records sent from the memory 30 at a bit map record memory part 22. The bit map is scanned by a prefetching candidate extracting part 23 for acquisition of the first record number coincident with conditions. Then a page number is obtained from said record number through the part 24 and set to a page number register 25. The contents of the register 25 are compared with those of a page number memory part 27 through a prefetched page control part 26. The same processing is repeated with all records coincident with the conditions. The results of these processings are reported to the processor 10.

Description

【発明の詳細な説明】 発明の目的 産業上の利用分野 本発明は、データベースからの先取り制御方式%式% 従来の技術 データ処理システムにおいては、入出力時間を短縮して
処理速度を高めるために、データの先取り制御を行う場
合が多い。すなわち、近い将来アクセスされる公算の強
いデータを含むページが主記憶装置に存在するかどうか
を検査し、存在しない場合には、主記憶装置へのアクセ
スに先立ってその不在ページを、予め二次記憶装置から
主記憶装置に予め転送するものである。
DETAILED DESCRIPTION OF THE INVENTION Object of the Invention Industrial Field of Application The present invention relates to a preemption control method from a database. , data preemption control is often performed. That is, it is checked whether a page containing data that is likely to be accessed in the near future exists in the main memory, and if it does not exist, the absent page is stored in the secondary memory in advance before accessing the main memory. It is transferred in advance from the storage device to the main storage device.

上記二次記憶装置がデータベースであるようなg的なデ
ータベース・システムでは、データベースからの先取り
制御を行なわない場合が多い。
In G-like database systems where the secondary storage device is a database, preemption control from the database is often not performed.

データベースの場合、先取りの手掛りをつかむことが餠
しいため、あえて先取り制御を行おうとすれば処理速度
がかえって低下しかねないからである。
This is because in the case of a database, it is difficult to grasp the clues for preemption, so if you dare to perform preemption control, the processing speed may actually decrease.

他方、検索を行いつつデータをアクセスする方式のデー
タベース・システムにおいては、上記検索結果を手掛り
として先取り制御を行う方式が採。
On the other hand, in database systems that access data while performing searches, a method is adopted in which preemptive control is performed using the search results as clues.

用されている。It is used.

発明が解決しようとする問題点 検索結果を手掛りとして先取り制御を行う従来のデータ
ベース・システムでは、最初の検索条件に対する検索結
果を手がかりとして先取り制御を行うように構成されて
いる。このため、−上記検索条件が論理積で組合わされ
る複数の検索条件(以下l−複合検索条件Jという)か
ら成る場合には。
Problems to be Solved by the Invention Conventional database systems that perform preemptive control using search results as clues are configured to perform preemptive control using search results for initial search conditions as clues. Therefore, if the above-mentioned search conditions are composed of a plurality of search conditions (hereinafter referred to as l-compound search conditions J), which are combined by logical product.

先取りが無駄になることが多い。Preemptive efforts are often wasted.

また、従来のデータベース・システムでは、最初の検索
結果を手がかりとする先取り制御を、データ処理用の制
御装置が行う構成であるため、この制御装置が本来のデ
ータ処理業務に専念できなくなるという問題もある。
In addition, in conventional database systems, the data processing control device performs preemptive control using the first search result as a clue, so there is the problem that this control device cannot concentrate on its primary data processing task. be.

発明の構成 上記従来技術の問題点を解決するための本発明の先取り
制御方式は、上記検索条件が複合検索条件である場合に
は、全ての検索条件を満たすデータが確定したのちその
データに対し先取り制御を開始する専用の先取り制御手
段を備えることにより、先取りの無駄を防1卜すると共
にデータ処理装置が本来のデータ処理業務に専念できる
ように構成されている。
Structure of the Invention In order to solve the problems of the prior art described above, the preemption control method of the present invention is such that when the above search conditions are compound search conditions, the data that satisfies all the search conditions is determined, and then the data is By providing a dedicated prefetch control means for starting prefetch control, the data processing apparatus is configured to prevent wasteful prefetching and to allow the data processing apparatus to concentrate on its original data processing work.

以F1本発明の作用を実施例によって詳細に説明する。Hereinafter, the operation of the F1 present invention will be explained in detail by way of examples.

実施例 本発明の一実施例の先取り制御方式が適用される情報処
理システムは、第1図の構成ブロック図に示すように、
データ処理専用の中央処理装置10、中央処理装置10
によるデータ処理と並行してデータベースからの先取り
制御のみを行う先取り制御袋W20.主記憶装置30及
び入出力装置40から構成されている。
Embodiment An information processing system to which a preemption control method according to an embodiment of the present invention is applied is as shown in the configuration block diagram of FIG.
Central processing unit 10 dedicated to data processing, central processing unit 10
Preemption control bag W20. performs preemption control only from the database in parallel with data processing by W20. It is composed of a main storage device 30 and an input/output device 40.

第2図は、第1図の先取り制御装置F 20の構成の一
例を、中央処理装置10及び主記憶装置30と関連付け
て示す機能ブロック図である。
FIG. 2 is a functional block diagram showing an example of the configuration of the preemption control device F 20 shown in FIG. 1 in association with the central processing unit 10 and the main storage device 30. As shown in FIG.

この先取り制御装置20は、先取り制御部21゜ビット
マツプ・レコード記憶部22.先取り候補抽出部23.
アドレス変換部248.ページ番号レジスタ25.先取
りページ判定部26及びページ番号記憶部27を備えて
いる。
This prefetch control device 20 includes a prefetch control section 21, a bitmap record storage section 22. Preemption candidate extraction unit 23.
Address translation unit 248. Page number register 25. It includes a prefetch page determination section 26 and a page number storage section 27.

中央処理値W10は、データを検索しつつこの検索条件
に合致するデータを主記憶装置30から読出し、参照、
修正、追加、削除等各種の処理を行おうとする。上記中
央処理装置10によるデータの検索は、データベースか
ら予め主記憶袋v30に読込まれた各種の索引に基づい
て行われる。
The central processing value W10 reads out data matching the search conditions from the main storage device 30 while searching for data, and references it.
Attempts to perform various processing such as modification, addition, deletion, etc. The data search by the central processing unit 10 is performed based on various indexes read in advance from the database into the main memory bag v30.

例えば、データベースに第3図(A)に示すような氏名
1年令、給与、出身地等のフィールドををするレコード
の集合から成る社員データが蓄積されており、これに対
応して、出身地と年令のそれぞれのフィールドをキーと
する索引テーブル(R)と(C)が作成されているもの
とする。
For example, a database stores employee data consisting of a set of records with fields such as name, age, salary, and place of birth, as shown in Figure 3 (A). It is assumed that index tables (R) and (C) have been created using the respective fields of age and age as keys.

中央処理装置10は、まず予めデータベースから主記憶
装置30に読込まれている索引テーブルを参照して、各
レコードの順に検索結果の合否を“1”、“0”で表示
するビットマツプを、各検索条件ごとに作成する。例え
ば、全社員の中から東京を出身地とする年令26歳以上
の者を検索する場合には、中央処理装置10は、第4図
に示すように、出身地に関するビットマツプB M a
と年令に関するビットマツプBMbを作成し、これらの
論理積をとることにより最終的なビ・ソトマップRMf
を作成する。第3図と第4図の例では、上記複合検索条
件を満たす社員レコード番よ、レコード番号#5と#8
を有するものとなる。
The central processing unit 10 first refers to the index table that has been read into the main storage device 30 from the database in advance, and creates a bitmap that displays the pass/fail of the search results as "1" and "0" for each record in order. Create each condition. For example, when searching for people aged 26 or older whose hometown is Tokyo from among all employees, the central processing unit 10 searches for a bit map B M a related to the hometown, as shown in FIG.
By creating a bitmap BMb related to
Create. In the examples in Figures 3 and 4, the employee record numbers that satisfy the above compound search conditions are record numbers #5 and #8.
It will have the following.

中央処理装置1は、上述のようにして最終的なビットマ
ツプBMfを作成すると、これを含むビットマツプ・レ
コードを主記憶装置3に書込む。     □このビッ
トマツプ・レコードは、第5図に例示するように、レコ
ードタイプの識別コードTCn。
After creating the final bitmap BMf as described above, the central processing unit 1 writes a bitmap record containing this into the main storage device 3. □This bitmap record has a record type identification code TCn, as illustrated in FIG.

最終的なビットフッ18Mf内の先頭ビ・・ノドに対応
スルレコード番号5RNO及びビットマツプBMfから
構成されている。
The final bit file 18Mf is composed of a corresponding record number 5RNO and a bit map BMf corresponding to the first bit.

中央処理装置10は9.上記ビットマツプ・レコードの
書込みを終了すると、制御信号線S1を介して、先取り
制御装置20内の先取り制御部21に、制御の開始を指
令する。同時に、中央処理装置tlOは、1ページに格
納されるレコード数RCPを、データ線r)1を介して
 先取り制御部21に送出する。
The central processing unit 10 is 9. When writing of the bitmap record is completed, the prefetch control unit 21 in the prefetch control device 20 is commanded to start control via the control signal line S1. At the same time, the central processing unit tlO sends the number of records RCP stored in one page to the prefetch control unit 21 via the data line r)1.

制御開始術令を受けた先取り制御■部21は、制御信号
線S2によってビットマツプ・レコード記憶部22を起
動し、主記憶装置33からデータ線l′)6を介してビ
ットマツプ・レコードを続出させ。
The preemption control unit 21, which has received the control start command, activates the bitmap record storage unit 22 via the control signal line S2, and causes bitmap records to be successively output from the main storage device 33 via the data line l')6.

保持させる。また、先取り制御部21は、中央処理装置
10から受けたページ内レコード数RCPを、データ線
D3経出でアドレス変換部24に送出する。先取り制御
部21は、制御信号線S2を介してビットマツプ・レコ
ードの記憶の終了通知を受けると、制御信号線S3を介
して先取り候補抽出部23に制御を渡す。
hold it. Further, the prefetch control unit 21 sends the number of records in a page RCP received from the central processing unit 10 to the address conversion unit 24 via the data line D3. When the prefetch control unit 21 receives the notification of completion of bitmap record storage via the control signal line S2, it passes control to the prefetch candidate extraction unit 23 via the control signal line S3.

先取り制御候補抽出部23は、ビットマツプ・レコード
記憶部22からデータ線D4経由でビットマツプ・レコ
ードを受取り、最終ビットマツプRM fを1ビツトず
つ走査することにより、“1″が立っている最初のビッ
ト(中央処理袋Ff 10による複合検索条件に合致し
た最初のレコード)の相対位置を検出する。引続き、先
取り制御候補抽出部23は、検出した相対レコード位置
と先頭レコードのレコード番号5RNOを加算すること
により、複合検索条件に合致した最初のレコード番号R
NOを求め、これをアドレス変換部24に渡す。
The prefetch control candidate extraction unit 23 receives the bitmap record from the bitmap record storage unit 22 via the data line D4, and scans the final bitmap RM f bit by bit, thereby extracting the first bit set to “1” ( The relative position of the first record matching the compound search condition by the central processing bag Ff 10 is detected. Subsequently, the preemption control candidate extraction unit 23 adds the detected relative record position and the record number 5RNO of the first record to find the first record number R that matches the compound search condition.
It obtains a NO and passes this to the address conversion section 24.

アドレス変換部24は、先取り制御候補抽出部から受取
ったレコード番号RNOを、先取り制御部21から受取
ったページ内レコード数RCPで除算することにより、
そのレコードを含むページ番号PNOを求め、これをペ
ージ番号レジスタ25にセットする。これと前後して、
ページ番号レジスタ25のセグメント番号部には、先取
り候補抽出部23から、ビットマツプ・レコード中のレ
コードタイプ識別コードTCr)、すなわちページ番号
PNOのページが属するセグメント番号SNOがセット
される。
The address conversion unit 24 divides the record number RNO received from the prefetch control candidate extraction unit by the number of records in a page RCP received from the prefetch control unit 21.
The page number PNO that includes the record is determined and set in the page number register 25. Around this time,
In the segment number field of the page number register 25, the pre-fetch candidate extracting unit 23 sets the record type identification code (TCr) in the bitmap record, that is, the segment number SNO to which the page with the page number PNO belongs.

上記ページ番号レジスタ25へのセットが終了すると、
先取り制御部21は、制御信号線S4を介して先取りペ
ージ判定部を起動する。起動された先取りページ判定部
26は、ページ番号レジスタ25の内容とページ番号記
憶部27の内容を比較することにより、複合検索条件に
合致した最初のレコードを含むページがデータベースか
ら主記憶装置F2O内に既に読込まれているか否かを判
定する。そのページが未だ主記憶装置30内に読込まれ
ていない場合には、先取りページ判定部26は、その旨
を先取り制御部21を介して中央処理gW10に通知す
る。この通知を受けた中央処理装置10は、データ線D
5を介してページ番号レジスタ25の内容を読取ること
により、先取り候補のページ番号を知り、入出力装置4
0にそのページに関するリプレースメントを指令する。
When the setting to the page number register 25 is completed,
The prefetch control unit 21 activates the prefetch page determination unit via the control signal line S4. The activated pre-fetch page determination unit 26 compares the contents of the page number register 25 and the page number storage unit 27 to extract the page containing the first record that matches the compound search condition from the database into the main storage device F2O. Determine whether the file has already been read. If the page has not yet been read into the main storage device 30, the prefetch page determination unit 26 notifies the central processing gW10 of this via the prefetch control unit 21. Having received this notification, the central processing unit 10 connects the data line D
By reading the contents of the page number register 25 through the input/output device 4, the page number of the prefetch candidate is known.
0 to perform replacement for that page.

先取りページ判定部は、ページ番号レジスタの内容がペ
ージ番号記憶部27の内容と一致する場合には、その旨
を制御信号線S4経由で先取り制御部21に通知する。
If the content of the page number register matches the content of the page number storage unit 27, the prefetch page determination unit notifies the prefetch control unit 21 of this via the control signal line S4.

この通知を受けた先取り制御部21は、先取り候補抽出
部23に、複合検索条件に合致した次のレコードについ
て、上記と同様の処理を開始させる。このようにして、
複合検索条件に合致した全てのレコードに対して、上記
アドレス変換と主記憶装置上の存否の判定が繰り返され
る。先取り制御部21は、複合検索条件に合致する全て
のレコードについて上記の処理を繰り返し、全てのレコ
ードが主記憶装f30に既に読込まれている場合には、
その旨を中央処理装置10に通知する。この通知を受け
た中央処理装置10は、先取り制御の必要がないことを
知る。
Upon receiving this notification, the prefetch control unit 21 causes the prefetch candidate extraction unit 23 to start the same process as described above for the next record that matches the composite search condition. In this way,
The above address conversion and determination of existence on the main storage device are repeated for all records that match the composite search condition. The prefetch control unit 21 repeats the above processing for all records that match the compound search condition, and if all the records have already been read into the main storage device f30,
The central processing unit 10 is notified of this fact. The central processing unit 10 that receives this notification knows that there is no need for preemptive control.

中央処理装置10は、+記憶装置30上のページに変更
が生じた時には、データ線D5を介してページ番号記憶
部27の内容を更新する。
The central processing unit 10 updates the contents of the page number storage section 27 via the data line D5 when a change occurs in the page on the storage device 30.

以ト、検索条件が複合検索条件である場合の動作例を説
明したが、検索条件が単一のものから成る場合には、従
来の方式と同様、その単一の検索条件に関するビットマ
ツプ・レコードが先取り制御装置20内のビットマツプ
・レコード記憶部22にセットされ、“1”が立ってい
るレコードについて上記と同様のアドレス変換や判定順
次行われることになる。
An example of operation when the search condition is a compound search condition has been explained above, but when the search condition consists of a single condition, the bitmap record related to that single search condition is created as in the conventional method. Address conversion and determination similar to those described above are performed sequentially for records set in the bitmap record storage unit 22 in the prefetch control device 20 and in which "1" is set.

また、先取り制御装装置20を、先取り制御部。Further, the preemption control device 20 is a preemption control unit.

ビットマツプ・レコード記憶部、先取り候補抽出部等々
i能単位にブロック化する構成を例したが。
In this example, a configuration is described in which the bitmap record storage unit, prefetch candidate extraction unit, etc. are divided into blocks.

これらのブロックを適宜な大きさのプロ・ツクに統合し
てもよく、あるいはソフトウェアやファムウエアによっ
て実現してもまい。
These blocks may be integrated into a suitably sized program, or may be implemented by software or firmware.

発明の効果 は上詳細に説明したように1本発明の先取り制御方式は
、検索条件が複台検索条件である場合には、全ての検索
条件を満たすデータが確定したのちそのデータに対し先
取り制御を開始する専用の先取り制御手段を備える構成
であるから、先取りの無駄を防止すると共に専用のデー
タ処理装置の先取り制御の負担を軽減することができる
という効果が奏される。
Effects of the invention As explained in detail above, 1. When the search condition is a multi-device search condition, the preemption control method of the present invention performs preemption control on the data after the data that satisfies all the search conditions is determined. Since the configuration includes a dedicated prefetch control means for starting the prefetch, it is possible to prevent wasteful prefetching and to reduce the burden of prefetch control on the dedicated data processing device.

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

第1図は本発明の一実施例が適用される情報処理システ
ムの構成を例示するブロック図、第2図は第1図の先取
り制御装置の構成の一例を示す機能ブロック図、第3図
はデータベース内に蓄積されるデータとその索引を例示
する概念図、第4図は検索によって作成されるビットマ
ツプの一例を示す概念図、第5図はビットマツプ・レコ
ードの構成の一例を示す概念図である。 10・・中央処理装置、20・・先取り制御装置、30
・・主記憶装置、40・・人出力装置。 21・・先取り制御部、22・・ビソトマ・ノブ・I/
コード記憶部、23・・先取り候補抽出部、24・・ア
ドレス変換部、25・・ページ番号レジスタ、26・・
先取りページ判定部、27・・ページ番号記憶部。
FIG. 1 is a block diagram illustrating the configuration of an information processing system to which an embodiment of the present invention is applied, FIG. 2 is a functional block diagram illustrating an example of the configuration of the preemption control device in FIG. 1, and FIG. FIG. 4 is a conceptual diagram illustrating an example of data stored in a database and its index. FIG. 4 is a conceptual diagram illustrating an example of a bitmap created by a search. FIG. 5 is a conceptual diagram illustrating an example of the structure of a bitmap record. . 10...Central processing unit, 20...Preemption control device, 30
...Main storage device, 40...Person output device. 21. Preemption control unit, 22. Bisotoma knob I/
Code storage section, 23... Prefetch candidate extraction section, 24... Address conversion section, 25... Page number register, 26...
Prefetch page determination unit, 27...page number storage unit.

Claims (1)

【特許請求の範囲】 検索条件に合致するデータを、データベースから主記憶
装置にページ単位で移しつつアクセスする情報処理シス
テムにおいて、 該情報処理システムは、前記検索条件が論理積で組合わ
される複数個から成る場合には、該全ての検索条件を満
たすデータが確定したのち該データに対し先取り制御を
開始する専用の先取り制御手段を備えたことを特徴とす
るデータベースからの先取り制御方式。
[Scope of Claim] An information processing system that accesses data that matches a search condition by moving it page by page from a database to a main storage device, the information processing system comprising: 1. A prefetch control method from a database, characterized by comprising a dedicated prefetch control means that starts prefetch control for the data after the data that satisfies all the search conditions has been determined.
JP59249042A 1984-11-26 1984-11-26 Control system for prefetching from data base Pending JPS61127046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59249042A JPS61127046A (en) 1984-11-26 1984-11-26 Control system for prefetching from data base

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59249042A JPS61127046A (en) 1984-11-26 1984-11-26 Control system for prefetching from data base

Publications (1)

Publication Number Publication Date
JPS61127046A true JPS61127046A (en) 1986-06-14

Family

ID=17187139

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59249042A Pending JPS61127046A (en) 1984-11-26 1984-11-26 Control system for prefetching from data base

Country Status (1)

Country Link
JP (1) JPS61127046A (en)

Similar Documents

Publication Publication Date Title
JPH07146880A (en) Document retrieval device and method therefor
JPS61127046A (en) Control system for prefetching from data base
JPH04340163A (en) Keyword retrieval system
JP2880192B2 (en) Character string search method and apparatus
JPH03152640A (en) Data base inquiry processor
JP2570853B2 (en) Database processing system
JPH01120621A (en) Retrieving/updating system for data base
JPH02116936A (en) Reorganizing system
JP2747009B2 (en) Record addition method for indexed sequential files
JP2895892B2 (en) Data processing device
JPH0455952A (en) Data transfer system for data base system
JPS6234231A (en) File data processor
JPH02127742A (en) Idle area retrieving system
JPS6145485A (en) Magnetic bubble memory control device
JPH0447367A (en) Data base retrieval system
JPH04250568A (en) Record retrieval device
JPH08101843A (en) Information retrieval device
JPS63238622A (en) Relation retrieval system
JPH04256041A (en) Data base retrieving device
JPH05108719A (en) Information retrieving device
JPH0232468A (en) Character string data retrieving system
JPS58125155A (en) Data file processing system
JPH03126141A (en) Code file retrieving device
JPS60203066A (en) File system of picture information
JPH02257284A (en) Data processor