JPH06119219A - File data precedence read-in system - Google Patents

File data precedence read-in system

Info

Publication number
JPH06119219A
JPH06119219A JP4268308A JP26830892A JPH06119219A JP H06119219 A JPH06119219 A JP H06119219A JP 4268308 A JP4268308 A JP 4268308A JP 26830892 A JP26830892 A JP 26830892A JP H06119219 A JPH06119219 A JP H06119219A
Authority
JP
Japan
Prior art keywords
file
data
read
buffer
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.)
Withdrawn
Application number
JP4268308A
Other languages
Japanese (ja)
Inventor
Shinji Saito
愼司 斎藤
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 Solution Innovators Ltd
Original Assignee
NEC Solution Innovators Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP4268308A priority Critical patent/JPH06119219A/en
Publication of JPH06119219A publication Critical patent/JPH06119219A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To obtain the file data precedence read-in system whose economical effect is also high without increasing the capacity of a main storage device by reading in data from a file in advance by preceding a processing, at the time or reading in successively the data in ascending order or in descending order. CONSTITUTION:A main control part 102 checks whether a CI which is read in before the CI in which a record which is being processed at present is stored in a CI buffer 109, and a data processing is finished already exists in the buffer 109 or not. As a result, when it exists, the CI of the next ascending order or descending order of the CI which is being processed at present is read in an area of the CI buffer 109 whose processing is finished by the number of CIs whose processing is finished. In this case, read-in of the CI is executed from one of a master file 111 or a slave file 112, an access is selected preferentially from the file whose access frequency is lower or whose channel is busy, and a load distribution is attempted. In such a way, the processing time of a data processing of ascending order or descending order can be shortened.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、補助記憶装置にある
ファイルからのデータ読込みに関し、特にデータを昇順
或は降順に順次に読込むとき、処理に先行してデータを
ファイルから読込むファイルデータ先行読込みシステム
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to reading data from a file in an auxiliary storage device, and more particularly, when reading data sequentially in ascending or descending order, file data is read from the file prior to processing. Regarding the read-ahead system.

【0002】[0002]

【従来の技術】従来の補助記憶装置のデータ読込み手法
は補助記憶装置の記憶領域にあるファイルから順次にレ
コードを含むCIを主記憶装置の記憶領域にあるCIバ
ッファに読込み、該当するCIからレコードを取り出し
ていた。そして、該当するレコードがCIバッファに存
在するときは、補助記憶装置に対して、レコード読込み
のための入出力動作を行わない。また、該当するレコー
ドがCIバッファに存在しないときは、該当するレコー
ドを主記憶装置の記憶領域に読込むため、補助記憶装置
からレコードを読込む入出力動作が発生し、レコード読
込み要求元は補助記憶装置に対する入力動作の完了ま
で、処理開始を待たされる。
2. Description of the Related Art A conventional method of reading data from an auxiliary storage device is to sequentially read CIs containing records from a file in the storage region of the auxiliary storage device into a CI buffer in the storage region of the main storage device, and record the corresponding CIs. Had taken out. When the corresponding record exists in the CI buffer, the input / output operation for reading the record is not performed with respect to the auxiliary storage device. When the corresponding record does not exist in the CI buffer, the corresponding record is read into the storage area of the main storage device, so an input / output operation for reading the record from the auxiliary storage device occurs, and the record read request source is an auxiliary device. The start of processing is kept waiting until the input operation to the storage device is completed.

【0003】従来のファイルデータ読込み手法を示す図
6を参照すると、ファイルデータ読込みシステムでは、
ファイルの読込み条件を指定するファイルオープン部6
02と、ファイル608から順次にCIをCIバッファ
606に読込むデータ順次取出部603と、CIバッフ
ァ606からデータバッファ607にレコードを順次取
り出す読込部604と、データ読込みの終了を指示する
ファイルクローズ部605と、で構成される。例えば、
ファイル608のデータを順次に処理するためファイル
オープン部602でデータを昇順あるいは降順の読込み
と、順次のデータ処理を宣言すると、データ順次取出部
603はファイル608のCIを先頭からCIバッファ
606に読込む。2番目以降のデータを読込むとき、該
当データのレコードがCIバッファ606に存在すると
きはファイル608からCIバッファ606へのCI入
力動作は発生しない。CI入力動作はCIバッファ60
6にデータが存在しないときに発生し、読込部604
は、該当するデータのレコードが存在するCIを順次に
ファイル608からCIバッファ606に読込む。デー
タ順次取出部603は該当するデータのレコードをCI
バッファ606からデータバッファ607に移送する。
従って、該当するデータのレコードがCIバッファ60
6に存在しないとき、データ要求元はファイル608か
らCIをCIバッファ606に入力するまで待たされる
ことになるため、データ処理時間はデータ入手の分長び
くことになる。
Referring to FIG. 6 showing a conventional file data reading method, in the file data reading system,
File open part 6 to specify the file reading conditions
02, a data sequential extraction unit 603 that sequentially reads CIs from the file 608 into the CI buffer 606, a reading unit 604 that sequentially fetches records from the CI buffer 606 to the data buffer 607, and a file closing unit that instructs the end of data reading. And 605. For example,
To sequentially process the data in the file 608, the file open unit 602 reads the data in the ascending or descending order and declares the sequential data processing. Put in. When reading the second and subsequent data, if the record of the corresponding data exists in the CI buffer 606, the CI input operation from the file 608 to the CI buffer 606 does not occur. The CI input operation is performed by the CI buffer 60.
It occurs when there is no data in 6, and the reading unit 604
Reads the CI in which the record of the corresponding data exists from the file 608 into the CI buffer 606 sequentially. The data sequential extraction unit 603 records the record of the corresponding data in the CI.
Transfer from the buffer 606 to the data buffer 607.
Therefore, the record of the corresponding data is the CI buffer 60.
6 does not exist, the data requesting source has to wait until the CI is input from the file 608 to the CI buffer 606, so that the data processing time is extended by the amount of data acquisition.

【0004】[0004]

【発明が解決しようとする課題】上述した従来のファイ
ルデータ読込みシステムでは、ファイルデータの読込み
と要求元の処理とが同期をとって動作するので、要求す
るデータのレコードが主記憶装置の記憶領域にあるCI
バッファに存在しないとき、レコードを補助記憶装置か
ら入手する動作が完了するまで要求元が待たされる。
In the above-mentioned conventional file data reading system, since the reading of file data and the processing of the request source operate in synchronization with each other, the record of the requested data is stored in the storage area of the main storage device. CI
When not in the buffer, the requester is kept waiting until the operation of obtaining the record from the auxiliary storage device is completed.

【0005】また、補助記憶装置の記憶領域にあるファ
イルのレコードを主記憶装置の記憶領域に常駐させる
と、待ち時間なしに迅速に処理できるが、ファイルのデ
ータ量が大量となる場合は、必要とする主記憶装置の容
量が膨大となり、ファイルを主記憶装置に常駐化するの
は物理的に困難になる。
Further, if the record of the file in the storage area of the auxiliary storage device is made resident in the storage area of the main storage device, it can be processed quickly without waiting time, but it is necessary when the data amount of the file becomes large. Therefore, it becomes physically difficult to make a file resident in the main storage device.

【0006】この発明の目的は、補助記憶装置のファイ
ルのレコードを昇順あるいは降順に順次読込みを行なう
とき、読込みを予定されるレコードを要求元の動作と非
同期に処理実行順位のプライオリティの低い走行レベル
で、要求元の処理に先行して事前に読込んでおくことに
より、要求元が要求レコードの読込み要求したとき、主
記憶装置に既に読込まれているレコードから要求レコー
ドを迅速に取出すことができ、またデータ処理上で必要
となる直前にレコードを読込むので、レコードの全てを
主記憶装置に常駐化しておく必要もない。つまり、主記
憶装置の容量を増加させないで、経済的な効果も高いフ
ァイルデータ先行読込みシステムを提供できる。
It is an object of the present invention to, when the records of the file in the auxiliary storage device are sequentially read in ascending or descending order, the records to be read are asynchronous to the operation of the request source and the running level is low in the priority of processing execution. Thus, by reading in advance in advance of the processing of the request source, when the request source requests the reading of the request record, the request record can be quickly taken out from the record already read in the main memory, Further, since the record is read just before it is needed for data processing, it is not necessary to make all the records resident in the main storage device. In other words, it is possible to provide a file data read-ahead system with a high economical effect without increasing the capacity of the main storage device.

【0007】[0007]

【課題を解決するための手段】この発明における、補助
記憶装置に格納されるファイルから主記憶装置にデータ
を読込み処理するファイルデータ先行読込みシステムに
は、前記補助記憶装置に格納される前記ファイルから前
記データの読込み条件を指示するファイルオープン手段
と、論理的な処理単位であるレコードを昇順あるいは降
順に前記ファイルから入手するため、物理的なファイル
データ転送単位であるコントロールインタバル(以降C
Iと称す)を前記ファイルから読込むデータ順次取出し
手段と、前記補助記憶装置から読込まれる前記CIを一
時記憶する前記主記憶装置に設けるCIバッファと、前
記CIバッファから前記レコードを昇順あるいは降順に
データバッファに移送する読込手段と、前記レコードを
その処理開始に先行して先取するため、前記ファイルか
ら前記CIバッファに前記CIを読込む非同期読込手段
と、前記非同期読込手段を起動する非同期読込起動手段
と、前記ファイルの処理終了を指示するファイルクロー
ズ手段と、を具備して構成する。
According to the present invention, there is provided a file data read-ahead system for reading data from a file stored in an auxiliary storage device into a main storage device. A file opening means for instructing the data reading condition and a record as a logical processing unit are obtained from the file in ascending or descending order. Therefore, a control interval (hereinafter C
(Referred to as I) from the file, a data sequential extraction means, a CI buffer provided in the main memory for temporarily storing the CI read from the auxiliary memory, and an ascending or descending order of the records from the CI buffer. To the data buffer, an asynchronous read means for reading the CI from the file into the CI buffer to prefetch the record prior to the start of processing, and an asynchronous read for activating the asynchronous read means. It comprises a starting means and a file closing means for instructing the end of processing of the file.

【0008】[0008]

【実施例】次に、この発明の実施例について図面を参照
して説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0009】この発明の第1の実施例の構成を示す図1
を参照すると、ファイルデータ先行読込みシステム10
0には、補助記憶装置(図示せず)の記憶領域にあるフ
ァイル111と、ファイル111から要求のレコードを
含むCIを入手し、昇順あるいは降順に順次に主記憶装
置(図示せず)のCIバッファ109にCIの取出し
と、データ処理のためCIからレコードを取出しデータ
バッファ110にレコードの移送と、要求のレコードが
データバッファ110に存在しないとき、ファイル11
1から新たなレコードを含むCIの読込みと、を行う主
制御部101と、更に、要求のレコードが既にデータバ
ッファ110にあるとき、主制御部101によって起動
され、ファイル111に対して要求予定のレコードの先
読みを行う主制御部102と、によって構成される。
FIG. 1 showing the configuration of the first embodiment of the present invention.
File data read-ahead system 10
For 0, the file 111 in the storage area of the auxiliary storage device (not shown) and the CI including the request record are obtained from the file 111, and the CIs of the main storage device (not shown) are sequentially acquired in ascending or descending order. When the CI is fetched in the buffer 109, the record is fetched from the CI for data processing, the record is moved to the data buffer 110, and when the requested record does not exist in the data buffer 110, the file 11
The main control unit 101 that reads the CI including the new record from 1 and further, when the record of the request is already present in the data buffer 110, is started by the main control unit 101 to make a request for the file 111. And a main control unit 102 for prefetching records.

【0010】更に、主制御部101には、昇順あるいは
降順のレコード読込みと、読込みレコードの順次データ
処理と、各処理部で参照可能な共通領域(図示せず)に
順次データ処理のフラグのマークと、を指示するファイ
ルオープン部103と、ファイル111から読込むCI
を一時記憶するCIバッファ109に格納し、順次にレ
コードが存在するか否かを調べ、順次レコードが存在し
ないとき、ファイル111から要求のレコードが格納さ
れているCIをCIバッファ109に読込むデータ順次
取出部104と、要求のレコードをCIバッファからデ
ータバッファ110に取出し移送する読込部105と、
読込部105から起動され、主制御部102を起動する
非同期読込起動部106と、処理するレコードがファイ
ル111およびCIバッファに存在しないときファイル
111をクローズするファイルクローズ部107と、を
有する。
Further, the main control unit 101 reads the records in ascending or descending order, performs sequential data processing on the read records, and marks a sequential data processing flag in a common area (not shown) that can be referred to by each processing unit. And a CI that reads from the file 111.
Data to be stored in the CI buffer 109 for temporary storage, and whether or not records sequentially exist is checked. When no sequential records exist, the CI in which the requested record is stored from the file 111 is read into the CI buffer 109. A sequential fetching unit 104, a reading unit 105 for fetching and transferring request records from the CI buffer to the data buffer 110,
It has an asynchronous read activation unit 106 that is activated by the reading unit 105 and activates the main control unit 102, and a file closing unit 107 that closes the file 111 when a record to be processed does not exist in the file 111 and the CI buffer.

【0011】次に、主制御部102は、CIバッファ1
09から現在処理中のレコードが格納されているCIよ
りも以前に読込まれ、既にデータ処理済みのCIがCI
バッファ109に存在するか否かを調べる。処理済みの
CIが存在するとき処理済みのCIの数に相当するCI
をCIバッファ領域に読込む。ファイル111の最後の
CIを既に読込んでいるとき、あるいはファイルがファ
イルクローズ部107でクローズされているときはCI
読込みを終了し、CI読込みを行わずに主制御102の
動作は完了する。
Next, the main control unit 102 causes the CI buffer 1
From 09, the CI that was read before the CI in which the record currently being processed is stored and whose data has already been processed is the CI.
It is checked whether or not it exists in the buffer 109. CIs corresponding to the number of processed CIs when processed CIs exist
To the CI buffer area. When the last CI of the file 111 has already been read, or when the file is closed by the file closing unit 107, the CI
The operation of the main control 102 is completed without reading the CI and reading the CI.

【0012】また、現在処理中のレコードが格納されて
いるCIよりも以前に読込まれ、処理済みのCIが存在
しないときは新たなCI読込みは行わずに主制御部10
2は動作を完了する。主制御部102は主制御部101
より電子計算機における処理実行順位のプライオリティ
が低い走行レベルで動作し、オンライン処理の閑散期に
動作する。そして、主制御部101を備えるオンライン
処理部(図示せず)は主制御部102よりも処理実行順
位のプライオリティの高い走行レベルで、優先して動作
する。
Further, when the record currently being processed is read before the stored CI and there is no processed CI, a new CI is not read and the main controller 10 is not executed.
2 completes the operation. The main control unit 102 is the main control unit 101.
It operates at a running level where the priority of processing execution in the electronic computer is lower, and operates during a quiet period of online processing. Then, an online processing unit (not shown) including the main control unit 101 preferentially operates at a traveling level having a higher priority of processing execution order than the main control unit 102.

【0013】この実施例のCIバッファ109の構成を
示す図2を参照すると、CIバッファ109の細部構成
は、主記憶装置の記憶領域にCI長にシステムオーバヘ
ッド長を加える区域を単位として、CIバッファ1の区
域202からCIバッファnの区域204からなるCI
バッファ109で構成される。そして、LRU方式で最
近読込まれた最新の区域から古い区域へとチェーン管理
されている。
Referring to FIG. 2 showing the configuration of the CI buffer 109 of this embodiment, the detailed configuration of the CI buffer 109 will be described in terms of the area in which the system overhead length is added to the CI length in the storage area of the main memory unit. CI consisting of area 202 of 1 to area 204 of CI buffer n
It is composed of a buffer 109. Then, the chain is managed from the latest area read recently by the LRU method to the old area.

【0014】ファイル111のレコードが格納されてい
るCIを読込むときCIバッファ109に、まづ読込ま
れ、要求されるレコードはCIの区域からデブロッキン
グして取り出され、データバッファ110に移送され
る。
When the CI in which the record of the file 111 is stored is read, the CI buffer 109 is read in advance, and the requested record is deblocked from the CI area and transferred to the data buffer 110. .

【0015】この実施例のファイル111の構成を示す
図3を参照すると、ファイル111と入出力時のデータ
転送単位であるCIとの関係は、CIがCI1の30
2,CI2の305からCInの307の順にファイル
111に格納されている。処理の単位であるレコードは
レコード1の303,レコード2の304の順で格納さ
れ、最後にレコードnの308でファイルの終りとす
る。順次読込みのとき、CIが順次読込まれ、CIから
レコードをレコード1の303,レコード2の304
と、最後にレコードnの308の順で取出され要求元に
渡される。レコードがCIを跨ぐ場合がある。レコード
kの306はCIを跨がっている状態を示し、次のCI
に含れる残りのレコード部分とを合せて、1つのレコー
ドが構成される。この実施例においては、レコードがC
Iを跨いで存在する場合においても処理できる。
Referring to FIG. 3 showing the structure of the file 111 of this embodiment, the relationship between the file 111 and CI which is a data transfer unit at the time of input / output is 30 when CI is CI1.
2, stored in the file 111 in the order of 305 of CI2 to 307 of CIn. The record, which is the unit of processing, is stored in the order of record 1 303 and record 2 304, and the end of the file is recorded at record n 308. When sequentially read, CIs are sequentially read, and records from the CI are record 1 303, record 2 304
Finally, the records n are taken out in the order of 308 and passed to the request source. Records may cross CIs. 306 of the record k indicates a state where the CI is crossed, and the next CI
Is combined with the rest of the record parts included in the above to form one record. In this example, the record is C
It can be processed even when it exists across I.

【0016】次に、この実施例の動作を示す流れ図4を
参照すると、要求元(図示せず)からの処理データの入
手要求によって、主制御部101はスタートする。ま
づ、ファイルオープン部103によって、読込みファイ
ルのオープンを制御部(図示せず)に指示し、レコード
の処理条件を指定する。ファイルオープンにおいて、先
行読込み機能を有する順次読込み処理を指定すると、こ
の発明のファイルデータ先行読込みシステムが動作する
(図4のステップ401)。
Next, referring to the flow chart 4 showing the operation of this embodiment, the main control unit 101 is started in response to a request to obtain process data from a request source (not shown). First, the file open unit 103 instructs the control unit (not shown) to open the read file and specifies the processing condition of the record. When a sequential read process having a read-ahead function is designated in the file open, the file data read-ahead system of the present invention operates (step 401 in FIG. 4).

【0017】次に、データ順次取出部104が起動さ
れ、データ順次取出し部104はレコードの読込み終了
判定を行う。レコード読込み終了の場合、ファイル11
1のクローズ処理のため、ファイルクローズ部107に
制御を渡す(ステップ404)。また、レコード読込み
処理を続行する場合、レコード読込みの要求を行う(ス
テップ403)。レコード読込みの場合、データ順次取
出し部104はCIバッファ109に要求のレコードが
存在するか否かを調べる(ステップ405)。要求のレ
コードが存在しないとき、ファイル111から要求のレ
コードが格納されているCIをCIバッファ109に読
込む(ステップ406)。
Next, the data sequential taking-out unit 104 is activated, and the data sequential taking-out unit 104 determines whether or not the record reading is completed. When the record reading is completed, the file 11
Because of the closing process No. 1, control is passed to the file closing unit 107 (step 404). When continuing the record reading process, a record reading request is made (step 403). When reading a record, the data sequential extraction unit 104 checks whether or not the requested record exists in the CI buffer 109 (step 405). If the request record does not exist, the CI storing the request record is read from the file 111 into the CI buffer 109 (step 406).

【0018】更に、データ順次取出し部104は、CI
バッファ109に要求のレコードが存在する場合と同様
に、現在処理中のレコードのCIより古いCIがCIバ
ッファ109にあるか否かを調べる(ステップ40
7)。既に処理を終えたCIがCIバッファ109に存
在する場合、データ順次取出し部104は非同期読込部
106を起動し、非同期読込起動部106がCIバッフ
ァ109に、次に読込む予定のCIを先行して読込むた
め、主制御部102を起動する(ステップ408)。主
制御部101は主制御部102を起動した後、主制御部
102の動作完了を待合せしないで、非同期に次の主制
御部101の処理を行う。読込部105はCIバッファ
109から要求のレコードをデータバッファ110に移
送し(ステップ409)、レコードのデータ処理を行
う。そして、データ処理の繰返すか否かを判定するた
め、データ読込終了判定へと戻る(ステップ411)。
Further, the data sequential extraction unit 104 is
As in the case where the requested record exists in the buffer 109, it is checked whether or not there is a CI older than the CI of the record currently being processed in the CI buffer 109 (step 40).
7). When the CI that has already been processed is present in the CI buffer 109, the data sequential extraction unit 104 activates the asynchronous reading unit 106, and the asynchronous reading activation unit 106 advances the CI buffer 109 with the CI to be read next. In order to read in, the main controller 102 is activated (step 408). After activating the main control unit 102, the main control unit 101 does not wait for the completion of the operation of the main control unit 102, but asynchronously performs the process of the next main control unit 101. The reading unit 105 transfers the requested record from the CI buffer 109 to the data buffer 110 (step 409) and performs data processing of the record. Then, to determine whether or not to repeat the data processing, the process returns to the data read end determination (step 411).

【0019】主制御部102は主制御部101によって
起動され、次に処理予定のCIをファイル111からC
Iバッファ109の既に処理が終了している古いCIの
区域に読込む。次に処理予定のCIをファイル111か
ら読込むとき、昇順の順次読込みの場合は、読込まれて
いないCI以降の昇順のCIを後方に、降順の順次読込
みの場合、読込まれていないCI以降の降順のCIを前
方に読込む。既に処理が終了している古いCIの区域が
複数個存在するときは上記の読込み処理をCIバッファ
が一杯になるまで繰り返す。そして、処理予定の複数の
CIを主記憶装置の記憶領域のCIバッファ109の区
域に読込まれることになる(ステップ412)。昇順の
順次読込みでは、処理予定の最後のCIをCIバッファ
109に読込み済みであるとき、あるいは降順の順次読
込みでは先頭のCIをCIバッファ109に読込み済み
であるとき、ファイル111からのCI読込みは完了す
る(ステップ413)。
The main control unit 102 is started by the main control unit 101, and the CI to be processed next is transferred from the file 111 to the C
The I buffer 109 is read into the area of the old CI which has already been processed. Next, when the CI to be processed is read from the file 111, in the case of sequential reading in ascending order, the CI in the ascending order after the unread CI is moved backward, and in the case of sequential reading in the descending order, the CI unread after the unread CI is read. Read the descending CIs forward. When there are a plurality of old CI areas that have already been processed, the above-described read processing is repeated until the CI buffer becomes full. Then, the plurality of CIs to be processed are read into the area of the CI buffer 109 in the storage area of the main storage device (step 412). In ascending sequential reading, the last CI to be processed has already been read into the CI buffer 109, or in descending sequential reading, the first CI has already been read into the CI buffer 109. Completion (step 413).

【0020】この発明の第2の実施例の構成を示す図5
を参照すると、ファイルがマスタファイル511および
スレーブファイル512によって二重化されているファ
イルデータ先行読込みシステムを示す。
FIG. 5 showing the configuration of the second embodiment of the present invention.
Referring to FIG. 3, a file data read-ahead system in which files are duplicated by a master file 511 and a slave file 512 is shown.

【0021】このファイルデータ先行読込みシステムは
ファイル111および112に格納されているレコード
を昇順あるいは降順に順次データ処理を行う場合、CI
バッファ109に該当レコードが存在しないとき、オン
ライン処理に同期してファイル111あるいは112か
らレコードを含むCIを入力する主制御部101と、主
制御部101と非同期にレコードを含むCIを先行読込
みを行う主制御部102と、処理するレコードを一時記
憶するデータバッファ110とから構成される。
This file data read-ahead system performs CI processing when records stored in files 111 and 112 are sequentially processed in ascending or descending order.
When the corresponding record does not exist in the buffer 109, the main control unit 101 which inputs the CI including the record from the file 111 or 112 in synchronization with the online processing, and the pre-reading of the CI including the record are performed asynchronously with the main control unit 101. It comprises a main control unit 102 and a data buffer 110 for temporarily storing records to be processed.

【0022】順次データ処理を行うとき、ファイルオー
プン部103がこの昇順あるいは降順の順次データ処理
の宣言をすることによって、レコードの先行読込み機能
が作動する。ファイルオープン部103の順次データ処
理の宣言により主制御部101の各処理部から参照可能
な共通領域(図示せず)に順次データ処理のフラグがマ
ークされる。データ順次取出部104はCIバッファ1
09の中に要求のレコードが存在するか否かを調べ、存
在するときはCIバッファ109の要求のレコードをデ
ータバッファ110に取り出し、あるいは存在しないと
きはマスタファイル511から要求のレコードが格納さ
れているCIをCIバッファ109に読込み要求のレコ
ードを取り出す。読込部105は要求のレコードをデー
タバッファ110にCIバッファ109から取り出し、
非同期読込起動部106に制御を渡す。非同期読込起動
部106は、主制御部102を起動し、主制御部102
の動作完了を待合せないで、主制御部101の処理を継
続する。主制御部101は処理するレコードが存在しな
いとき、ファイルクローズ部107を起動し順次データ
処理を終了し、あるいは処理するレコードが存在すると
き、処理を繰り返すためデータ順次取出部104に制御
を戻す。主制御部102は、CIバッファ109に現在
処理中のレコードが格納されているCIよりも以前に読
込まれ、既にデータ処理済みのCIがCIバッファ10
9に存在するか否かを調べる。処理済みのCIがCIバ
ッファ109に存在するときは、処理済みのCIの数だ
け現在処理中のCIの次の昇順あるいは降順のCIを処
理済みのCIバッファ109の区域に読込む。このとき
CIの読込みはマスタファイル111あるいはスレープ
ファイル112のどちらか一方から行い、アクセス頻度
が低い方あるいはチャネルビジーとなっていないファイ
ルから優先的にアクセスを選択し、負荷分散を図る。フ
ァイル111の最後のCIが既に読込まれているとき、
主制御部102の動作を完了する。
When performing the sequential data processing, the file open unit 103 declares the sequential data processing in the ascending order or the descending order, whereby the read-ahead function of the record operates. By the declaration of the sequential data processing of the file open unit 103, the sequential data processing flag is marked in a common area (not shown) that can be referred to by each processing unit of the main control unit 101. The data sequential extraction unit 104 uses the CI buffer 1
09, the request record in the CI buffer 109 is extracted to the data buffer 110 if it exists, and if it does not exist, the request record is stored from the master file 511. The existing CI is read into the CI buffer 109, and the record of the request is fetched. The reading unit 105 extracts the request record from the CI buffer 109 into the data buffer 110,
The control is passed to the asynchronous reading activation unit 106. The asynchronous read activation unit 106 activates the main control unit 102, and the main control unit 102
The processing of the main control unit 101 is continued without waiting for the completion of the operation. When there is no record to be processed, the main control unit 101 activates the file close unit 107 to end the sequential data processing, or when there is a record to be processed, returns control to the data sequential extraction unit 104 to repeat the processing. The main control unit 102 reads the CI that has been read before the CI in which the record currently being processed is stored in the CI buffer 109 and has already processed the data.
9 is present. When the processed CI is present in the CI buffer 109, the CIs in the ascending or descending order next to the currently processed CI are read into the area of the processed CI buffer 109 by the number of processed CIs. At this time, the CI is read from either the master file 111 or the slave file 112, and the access is preferentially selected from the file having a low access frequency or the file that is not in the channel busy state to distribute the load. When the last CI of file 111 has already been read,
The operation of the main control unit 102 is completed.

【0023】また、現在処理中のレコードが格納されて
いるCIよりも以前に読込まれ、既にデータ処理済みの
CIバッファ109が存在しないときはCI読込みを行
わず、主制御部102は動作を完了する。主制御部10
2は主制御部101より処理実行順位のプライオリティ
の低い走行レベルで動作し、オンライン処理の閑散期に
処理を行いオンライン処理に含まれる主制御部101を
優先実行させる。
Further, when the record currently being processed is read before the CI in which it is stored and there is no CI buffer 109 that has already been data processed, the CI is not read and the main control unit 102 completes the operation. To do. Main controller 10
2 operates at a running level having a lower priority in processing execution order than the main control unit 101, performs processing during a quiet period of online processing, and preferentially executes the main control unit 101 included in the online processing.

【0024】更に、第1および第2の実施例において、
補助記憶装置をディスク記憶装置等の大量記憶装置、あ
るいは拡張記憶装置に置換えることによって、上述の機
能は達成できる。
Further, in the first and second embodiments,
The functions described above can be achieved by replacing the auxiliary storage device with a mass storage device such as a disk storage device or an extended storage device.

【0025】[0025]

【発明の効果】以上説明したようにこの発明によれば、
ファイルのデータを昇順或は降順で順次処理を行うとき
に、データを処理する実行部とファイルのデータを先行
して読込む読込み部とを別個の処理実行機能とし、先行
読込み部を処理実行部に対して、非同期かつ処理実行順
位の優先レベルの低いレベルで動作させることにより、
データを処理する実行部が処理中のデータに先行する処
理予定のデータをファイルから読込むことができる。そ
して、昇順あるいは降順のデータ処理の処理時間を短縮
することができる。
As described above, according to the present invention,
When sequentially processing file data in ascending or descending order, the execution unit that processes the data and the reading unit that reads the file data in advance have separate processing execution functions, and the preceding reading unit is the processing execution unit. In contrast, by operating at a low priority level of asynchronous and processing execution order,
Data to be processed that precedes the data being processed by the execution unit that processes the data can be read from the file. Then, the processing time of the ascending or descending data processing can be shortened.

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

【図1】この発明の第1の実施例の構成を示す図であ
る。
FIG. 1 is a diagram showing a configuration of a first exemplary embodiment of the present invention.

【図2】図1のCIバッファの構成を示す図である。FIG. 2 is a diagram showing a configuration of a CI buffer of FIG.

【図3】図1のファイルのCIとレコードの相互関係を
説明する図である。
FIG. 3 is a diagram illustrating a mutual relationship between a CI and a record of the file of FIG.

【図4】図1の実施例のファイルデータ先読み処理の動
作を示す流れ図である。
FIG. 4 is a flowchart showing an operation of a file data prefetching process in the embodiment of FIG.

【図5】この発明の第2の実施例の構成を示す図であ
る。
FIG. 5 is a diagram showing a configuration of a second exemplary embodiment of the present invention.

【図6】従来のファイルデータ読込みシステムを示す図
である。
FIG. 6 is a diagram showing a conventional file data reading system.

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

100 ファイルデータ先行読込みシステム 101 主制御部1 102 主制御部2 103 ファイルオープン部 104 順次データ取り出し部 105 読込部 106 非同期読込起動部 107 ファイルクローズ部 108 非同期読込部 109 CIバッファ 110 データバッファ 111 ファイル 202 CIバッファ1 203 CIバッファ2 204 CIバッファn 302 CI1 303 レコード1 304 レコード2 305 CI2 306 CIl(CIを跨ぐレコード) 307 CIn 308 レコードn 511 マスタファイル 512 スレーブファイル 100 file data read-ahead system 101 main control unit 1 102 main control unit 2 103 file open unit 104 sequential data extraction unit 105 read unit 106 asynchronous read activation unit 107 file close unit 108 asynchronous read unit 109 CI buffer 110 data buffer 111 file 202 CI buffer 1 203 CI buffer 2 204 CI buffer n 302 CI1 303 record 1 304 record 2 305 CI2 306 CIl (record across CI) 307 CIn 308 record n 511 master file 512 slave file

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 補助記憶装置に格納されるファイルから
主記憶装置にデータを読込み処理するファイルデータ先
行読込みシステムには、 前記補助記憶装置に格納される前記ファイルから前記デ
ータの読込み条件を指示するファイルオープン手段と、 論理的な処理単位であるレコードを昇順あるいは降順に
前記ファイルから入手するため、物理的なファイルデー
タ転送単位であるコントロールインタバル(以降CIと
称す)を前記ファイルから読込むデータ順次取出し手段
と、 前記補助記憶装置から読込まれる前記CIを一時記憶す
る前記主記憶装置に設けるCIバッファと、 前記CIバッファから前記レコードを昇順あるいは降順
にデータバッファに移送する読込手段と、 前記レコードをその処理開始に先行して先取するため、
前記ファイルから前記CIバッファに前記CIを読込む
非同期読込手段と、 前記非同期読込手段を起動する非同期読込起動手段と、 前記ファイルの処理終了を指示するファイルクローズ手
段と、 を具備して構成することを特徴とするファイルデータ先
行読込みシステム。
1. A file data read-ahead system for reading data from a file stored in an auxiliary storage device to a main storage device and instructing a reading condition of the data from the file stored in the auxiliary storage device. A file opening means and a data sequence for reading a control interval (hereinafter referred to as CI), which is a physical file data transfer unit, from the file in order to obtain a logical processing unit record from the file in ascending or descending order. Fetching means, CI buffer provided in the main memory for temporarily storing the CI read from the auxiliary memory, reading means for transferring the records from the CI buffer to a data buffer in ascending or descending order, the record To preempt the start of the processing,
An asynchronous read means for reading the CI from the file into the CI buffer; an asynchronous read start means for activating the asynchronous read means; and a file close means for instructing the end of processing of the file. File data read-ahead system characterized by:
【請求項2】 前記ファイルが二つの前記補助記憶装置
に各各格納され、二重化ファイルであることを特徴とす
る請求項1記載のファイルデータ先行読込みシステム。
2. The file data read-ahead system according to claim 1, wherein each of the files is stored in two auxiliary storage devices and is a duplicated file.
JP4268308A 1992-10-07 1992-10-07 File data precedence read-in system Withdrawn JPH06119219A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4268308A JPH06119219A (en) 1992-10-07 1992-10-07 File data precedence read-in system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4268308A JPH06119219A (en) 1992-10-07 1992-10-07 File data precedence read-in system

Publications (1)

Publication Number Publication Date
JPH06119219A true JPH06119219A (en) 1994-04-28

Family

ID=17456732

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4268308A Withdrawn JPH06119219A (en) 1992-10-07 1992-10-07 File data precedence read-in system

Country Status (1)

Country Link
JP (1) JPH06119219A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998026352A1 (en) * 1996-12-13 1998-06-18 Hitachi, Ltd. Method of file pre-read control in computer system
JP2014006666A (en) * 2012-06-22 2014-01-16 Fujitsu Ltd Information management apparatus, information management program, and information management method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998026352A1 (en) * 1996-12-13 1998-06-18 Hitachi, Ltd. Method of file pre-read control in computer system
US6434553B1 (en) 1996-12-13 2002-08-13 Hitachi, Ltd. File prefetch control method for computer system
JP2014006666A (en) * 2012-06-22 2014-01-16 Fujitsu Ltd Information management apparatus, information management program, and information management method

Similar Documents

Publication Publication Date Title
JPH04229355A (en) Data access method and data processing system
JP2586219B2 (en) High-speed media priority release exclusion method
JPH04284548A (en) Data base exclusive controlling system
JPH06119219A (en) File data precedence read-in system
JP2624170B2 (en) Logical deletion data physical deletion method
JP2526728B2 (en) Disk cache automatic usage method
JP2523499B2 (en) Access control method
JPH0398110A (en) Multiplex data reading system
JP3460265B2 (en) Data transfer method between computers
JP2874451B2 (en) Online business processing system
JPH0594373A (en) Data flash interval control system
JP2912657B2 (en) File access processor
JP2853639B2 (en) Data processing device
JPH07146809A (en) Information processor
JPH05151037A (en) Reorganization processing system for database in business processing
JPH04251351A (en) System for controlling magnetic disk cache
JPH01129334A (en) Data control system for cache memory
JPH06161897A (en) Control method for disk cache device
JPH04338852A (en) File transfer program with interruption restart mechanism
JPH03177946A (en) Control system for buffer cache of magnetic disk
JPH03282611A (en) Write-back processing system for two-step cache
JPH10320258A (en) File access device and machine-readable recording medium recorded with program
JPH01253024A (en) Buffer control method for data base management
JPH04310143A (en) Automatic recomposition processor for multi-index order composition file
JPH02227754A (en) Disk cache control system

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000104