JPH0371348A - High speed data access system - Google Patents

High speed data access system

Info

Publication number
JPH0371348A
JPH0371348A JP1206820A JP20682089A JPH0371348A JP H0371348 A JPH0371348 A JP H0371348A JP 1206820 A JP1206820 A JP 1206820A JP 20682089 A JP20682089 A JP 20682089A JP H0371348 A JPH0371348 A JP H0371348A
Authority
JP
Japan
Prior art keywords
data
storage device
updating
input
external storage
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
JP1206820A
Other languages
Japanese (ja)
Inventor
Takao Sakuma
佐久間 隆夫
Yuji Ueki
植木 裕司
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Software Engineering Co Ltd
Hitachi Ltd
Original Assignee
Hitachi Software Engineering Co Ltd
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Software Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP1206820A priority Critical patent/JPH0371348A/en
Publication of JPH0371348A publication Critical patent/JPH0371348A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To efficiently obtain the latest data from file data by using different names for an exclusive resource name at the time of input for updating and an exclusive control resource name for reference. CONSTITUTION:By adding an identifier for updating at the time of updating processing 42, and adding an identifier for reference at the time of reference processing 43, they use an exclusive control management 45 as resource names, respectively. Accordingly, even if a store position is simultaneous data, updating and reference do not become exclusive control waiting, and in each processing, it is inputted from file data 27 of an external storage device 28 and can be stored in a buffer pool 44, and a simultaneous access can be efficiently realized. Also, in a control block for reference, a re-input instruction is recorded in advance when data is read out to the external storage device 28 by following the updating, by which when the same data is brought to access again by the reference processing 43, it is inputted from the file data 27 of the external storage device 28 and the latest data can be obtained without using the data stored in the buffer pool 44. In such a way, the latest data can be efficiently inputted.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータ処理システムに関し、ファイルデータの
更新と参照とが同一データにおいて競合したとき、参照
する処理を極力待ち状態にせずファイルから最新データ
を入力するのに好適な高速データアクセス方式に関する
ものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a data processing system, and when update and reference of file data conflict on the same data, the latest data is updated from the file without making the reference process wait as much as possible. The present invention relates to a high-speed data access method suitable for inputting data.

〔従来の技術〕[Conventional technology]

従来の方式は、特開昭61−269749−1公報に記
載のようにレコード更新要求が発生すると既にバッファ
に読込まれたブロックを無効化し、同時更新する複数ジ
ョブからのファイル更新に矛盾を生じない方式となって
いた。
In the conventional method, as described in Japanese Patent Application Laid-Open No. 61-269749-1, when a record update request occurs, blocks that have already been read into the buffer are invalidated, so that there is no inconsistency in file updates from multiple jobs updating simultaneously. It was a method.

また、特開昭63−145554号公報に記載のように
参照回数をメモリ中に蓄積し、−括更新時に参照頻度の
低いデータをメモリから消去する方式となっていた。
Further, as described in Japanese Patent Application Laid-Open No. 145554/1983, the number of times of reference is stored in a memory, and data that is referenced less frequently is erased from the memory at the time of bulk update.

更に一般的な方式例としては、同一データに対して更新
と参照とが競合すると一方が待ち状態となる排他制御方
式か、あるいは更新と参照とが競合しても同時にアクセ
スできる方式もあるが、−旦外部記憶装置のファイルデ
ータから入力すると主記憶装置のバッファプールに蓄え
られ、同一データを繰返し参照するとこのバッファプー
ルからデータが得られ方式であるか、または毎回外部記
憶装置のファイルデータから入力する方式となっていた
More common methods include an exclusive control method in which when an update and a reference conflict with the same data, one of them goes into a waiting state, or a method in which even if an update and a reference conflict, they can be accessed at the same time. - Once input from the file data of the external storage device, it is stored in the buffer pool of the main storage device, and when the same data is referenced repeatedly, the data is obtained from this buffer pool, or the data is input from the file data of the external storage device each time. The method was to do so.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記従来技術は、更新が発生する度にバッファを無効と
すると同時にアクセスした別ジョブの更新処理まで無効
となり、同時処理の効率的アクセス方式の点では問題が
あった。
In the above-mentioned conventional technology, the buffer is invalidated every time an update occurs, and at the same time, the update processing of another job that is accessed is also invalidated, and there is a problem in terms of an efficient access method for simultaneous processing.

また、参照頻度の低いデータを一括更新時にA′1去す
る方式、あるいは更新と参照とを同時にアクセスし各々
のバッファ上に蓄積する方式であると参照データがバッ
ファ上から消去されない限り更新データが入手できない
問題があった。
Additionally, if you use a method that removes data that is referenced infrequently from A'1 during a batch update, or a method that accesses update and reference simultaneously and stores them in each buffer, the updated data will not be updated unless the reference data is deleted from the buffer. There was a problem with not being able to get it.

更に同一データに対して更新と参照とが競合したとき、
4jl:他制御方式で行うと先行タスクにアクセス権限
が与えられ先行タスクのデータ処理時間に大きく左右さ
れることになり処理効率面で問題があった。
Furthermore, when there is a conflict between updating and referencing the same data,
4jl: If other control methods were used, access authority would be given to the preceding task, which would greatly depend on the data processing time of the preceding task, posing a problem in terms of processing efficiency.

本発明の目的は、従来方式における上記の問題を解決す
るために同一データに対して更新と参照とが競合しても
同時にアクセスし、また更新データが外部記憶装置に掃
出されたことを参照タスク側で検知し最新のデータを外
部記憶装置から入力し、バッファの有効活用と入出力回
数の軽減および最新データを入力することにある。
An object of the present invention is to solve the above-mentioned problems in the conventional method by accessing the same data at the same time even when updating and referencing conflict with each other, and by accessing the same data at the same time when the updated data is flushed to an external storage device. The goal is to detect the latest data on the task side and input it from an external storage device, effectively utilize the buffer, reduce the number of input/outputs, and input the latest data.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的を達成するために、外部記憶装置に記録してあ
るファイルデータをアクセスするデータ処理システムに
おいて、更新のための入力時の排他質層名称と参照のた
めの排他制御資源名称とを異なる名称で行うことにより
、同一レコード資源にもかかわらず排他制御待ちを防い
だものである。
In order to achieve the above purpose, in a data processing system that accesses file data recorded in an external storage device, the exclusive quality layer name at the time of input for updating and the exclusive control resource name for reference are given different names. By doing this, it is possible to prevent waiting for exclusive control even though the record resources are the same.

また、更新データを外部記憶装置へ掃出し中に同一デー
タの参照とが競合した場合のj頃序性を保証するために
は、アクセスしたデータの格納位置を記録する制御ブロ
ックに入出力状態を記録しておき、これを参照処理で検
出し描出し中と参照の二重要求を防ぐとともに先行の掃
出し完了待ち行列にキューイングする。その後、掃出し
処理が完了した時点で掃出し完了待ち行列にキューイン
グしてある参照要求を取出し、外部記憶装置のファイル
データから入力することにより最新のデータが入手でき
るものである。
In addition, in order to guarantee orderliness in the event that there is a conflict with references to the same data while the updated data is being flushed to an external storage device, the input/output status should be recorded in the control block that records the storage location of the accessed data. This is detected by reference processing to prevent double requests for rendering and reference, and is queued in the preceding purge completion queue. Thereafter, when the purge process is completed, the latest data can be obtained by taking out the reference request queued in the purge completion queue and inputting it from the file data in the external storage device.

!tJこ、同一データの参照処理を更新前後で繰返“、
1j1へ し実行すると、先行の参照処理で入力したデータを渡し
最新データが入手できないことから、これを既に入力し
たデータを記録してある制御ブロックに更新データを掃
出し終えた時点で再入力指示を更新タスクで記録してお
くことで、再び同一データの参照が発生しても再入力指
示のバッファプール内容は廃棄し、外部記憶装置のファ
イルデータから最新のデータを取得できるようにしたも
のである。
! tJ, repeat the reference process for the same data before and after updating.
When executing 1j1, the data input in the previous reference process is passed and the latest data cannot be obtained, so when the updated data is finished being flushed out to the control block that has already recorded the input data, a re-input instruction is issued. By recording in the update task, even if the same data is referenced again, the buffer pool contents of the re-input instruction are discarded, and the latest data can be obtained from the file data on the external storage device. .

〔作用〕[Effect]

本発明は、外部記憶装置に記録してある同一データに対
し更新と参照とが競合するシステムにおいて、参照する
処理を効率良く実行し最新のデータを取得するためには
、データの格納位置を示す情報に加え更新処理では更新
用の識別子を付加し、参照処理では参照用の識別子を付
加することでそれぞれの資源名称として排他制御管理を
使用する。
In a system where updating and referencing compete with each other for the same data recorded in an external storage device, the present invention provides information on the storage location of data in order to efficiently execute referencing processing and obtain the latest data. In addition to the information, an update identifier is added in the update process, and a reference identifier is added in the reference process, thereby using exclusive control management as the respective resource name.

それによって、格納位置が同時データであっても更新と
参照とが排他制御待ちとはならず、互の処理では外部記
憶装置のファイルデータから入力しバッファプールに格
納することができ効率的な同時アクセスが実現できる。
As a result, even if the data is stored at the same time, updates and references do not have to wait for exclusive control, and in mutual processing, the data can be input from the file data on the external storage device and stored in the buffer pool, resulting in efficient simultaneous processing. Access can be achieved.

また、更新のための外部記憶装置に掃出し中に同一デー
タに対して参照処理が発生すると、データをアクセスす
る単位に設けた制御ブロックにデータ格納位置と入出力
状態を記録しておき、参照のための入力処理を行うとき
に同一格納位置データの入出力状態を検出することがで
き更新と参照の二重要求を防ぐことができる。
In addition, if a reference process occurs for the same data while it is being flushed to an external storage device for updating, the data storage location and input/output status are recorded in a control block provided for each data access unit, and the reference process is performed. It is possible to detect the input/output status of data at the same storage location when performing input processing for data processing, thereby preventing double requests for update and reference.

更に、参照用の制御ブロックには更新に住い外部記憶装
置に掃出した際再入力指示を記録しておくことにより、
参照処理で同一データを再びアクセスするとバッファプ
ールに格納されているデータを使用せず外部記憶装置の
ファイルデータから入力し最新のデータを取得すること
ができる。
Furthermore, by recording the re-input instruction when updating the reference control block and flushing it to the external storage device,
When the same data is accessed again in the reference process, the latest data can be obtained by inputting from the file data of the external storage device without using the data stored in the buffer pool.

これらの動作により同一データに対して更新と参照とが
競合しても参照する処理では効率の良い最新のデータを
入力できるようにしたものである。
Through these operations, even if there is a conflict between updating and referencing the same data, the latest data can be efficiently input in the referencing process.

〔実施例〕〔Example〕

以下、本発明の実施例を図面に基づいて詳細に説明する
Embodiments of the present invention will be described in detail below with reference to the drawings.

第4図は、本発明が適用されるデータ処理システムの構
成例を示すものである。図において、41は電子計算(
幾に組込まれたデータ処理システム、42はファイルデ
ータのデータを更新する処理、43はファイルデータの
データを参照する処理、44はファイルデータを読込み
これを主記憶装置に記憶し、同一データレコードのアク
セスが発生したとき、バッファプールの読込み済データ
を渡すか、それとも更新に伴い最新データを外部記憶装
置のファイルデータから再度読込みするかを決定すると
ともに、データのアクセス形態に応じて排他制御を行う
処理、45は排他資源に対応した排他制御モードの状態
を調べ競合が発生した場合は、当該資源のモニドに応じ
て資源の解放待ちにキューイングする処理、27はデー
タ処理システムが扱うデータレコードでこれらのデータ
レコードを収納してあるのが外部記憶装置であり、デー
タベース28と称される。
FIG. 4 shows an example of the configuration of a data processing system to which the present invention is applied. In the figure, 41 is electronic calculation (
42 is a process for updating file data data; 43 is a process for referencing file data data; 44 is a data processing system that reads file data and stores it in the main storage device; When an access occurs, it determines whether to pass the read data in the buffer pool or re-read the latest data from the file data in the external storage device as it is updated, and performs exclusive control depending on the data access type. 45 is a process of checking the state of exclusive control mode corresponding to an exclusive resource and, if a conflict occurs, queuing the resource to be released according to the monid of the resource; 27 is a data record handled by the data processing system; An external storage device that stores these data records is called a database 28.

第1図は、同一データレコードに対し更新と参照が発生
しても排他制御管理で同一資源とは扱わないためのユニ
ークな資源名称とする規則11であり、各使用目的とデ
ータアクセスの種類におけるモード(共用モート二同−
資源に対し共用モード同志のアクセスは許可するモード
である。排他モード:同一資源に対しアクセスできるの
は一つのタスクのみで他からのアクセスは一切できない
モードである。)の関連12を示したものである。
Figure 1 shows Rule 11, which requires unique resource names so that even if updates and references occur to the same data record, they are not treated as the same resource under exclusive control management. mode (shared mode)
Shared mode is a mode that allows peer access to resources. Exclusive mode: A mode in which only one task can access the same resource and no other task can access it. ) shows relation 12.

この11.12から資源名称を更新用と参照用に別け、
かつデータアクセスの種類に応じてモードを使い分ける
ことにより、同一データを更新と参照とが同時に発生し
ても双方ともアクセスすることができる。
From this 11.12, the resource names are divided into those for updating and those for reference.
By using different modes depending on the type of data access, even if the same data is updated and referenced at the same time, both can be accessed.

第3図は、データレコードを各処理でアクセス29した
場合の全体の管理方式を示し、更新処理側でアクセスし
たデータレコードの先頭ポインタ21を持ち、参照処理
についても同様のポインタ22を持つ。
FIG. 3 shows the overall management system when a data record is accessed 29 in each process, in which the update process side has a head pointer 21 of the accessed data record, and the reference process also has a similar pointer 22.

また、ファイルデータの各データレコードを効率良く管
理するために格納位置をグループ編成26し、このグル
ープ内のデータレコードをアクセスすると該当グループ
管理テーブル23にデータレコード制御ブロック24を
登録する。この様な管理方式を採用することでデータレ
コードRatの掃出し中に参IK(処理でR31を入力
しようとすると、該当グループ管理テーブルに登録され
たデータレコード制御ブロックを倹素し、同一データレ
コードの入出力状態を調べる。この結果、Ra Lが掃
出し中であれば掃出し完了待ちキューに登録25し一旦
アクセスを諦める。このアクセスの再開は、更新データ
の掃出しが完了したとき更新タスク側で取出され参照タ
スクに入力開始を通知する。すると入力処理が再開始さ
れ最新のデータを外部記憶装置から入力することができ
る。
Furthermore, in order to efficiently manage each data record of file data, storage locations are organized into groups 26, and when a data record within this group is accessed, a data record control block 24 is registered in the corresponding group management table 23. By adopting such a management method, when an attempt is made to input reference IK (R31 in the process) while purging a data record Rat, the data record control block registered in the corresponding group management table is cleared, and the data record control block of the same data record is The input/output status is checked. As a result, if Ra L is in the process of cleaning, it is registered in the cleaning completion waiting queue 25 and access is temporarily given up. This access is resumed by the update task side when the cleaning of updated data is completed. The reference task is notified of the start of input.Then, the input process is restarted and the latest data can be input from the external storage device.

第3図は、更新及び参照処理でデータレコードを入力す
ると、データレコード制御ブロックにそれぞれのバッフ
ァプールアドレスが格納35される。
In FIG. 3, when data records are input in update and reference processing, respective buffer pool addresses are stored 35 in the data record control block.

その後、更新処理側でデータレコードR21゜RLLを
更新33すると、各レコードはバッファプール上のみ更
新され全ての更新処理が完了した時点で外部記憶装置の
ファイルデータに掃出される。
Thereafter, when the data record R21°RLL is updated 33 on the update processing side, each record is updated only on the buffer pool, and when all update processing is completed, it is flushed out to file data in the external storage device.

この掃出しが完了したとき、参照処理にHしてあるデー
タレコードの制御ブロックを求め同一データレコードR
a1. R,、に再入力指示を記録する。
When this sweep is completed, the control block of the data record that is H is searched for in the reference process, and the same data record R is searched.
a1. Record the re-input instruction in R, .

すると参照処理で既に入力したデータレコードR1,l
を再びアクセスすると、再入力指示のデータレコードは
バッファプール32に格納されたデータを使用せず、外
部記憶装置のファイルデータから入力し最新のデータを
取得する方式である。
Then, the data record R1,l that has already been input in the reference process
When the data record is accessed again, the data record for the re-input instruction does not use the data stored in the buffer pool 32, but is input from the file data in the external storage device to obtain the latest data.

本例では、更新と参照とが同一データにおいて競合して
も双方で緩衝し合うことが避けられ、かつ最新のデータ
を効率良くファイルデータから取得する効果がある。
In this example, even if an update and a reference conflict on the same data, buffering between them can be avoided, and the latest data can be efficiently obtained from the file data.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、外部記憶装置に記録してあるファイル
データの同一データに対して更新と参照とが競合しても
双方とも同時にアクセスすることができ、更に更新が伴
ったデータレコードに対しては、最新のデータが得られ
るように管理されているため効率の良いファイルデータ
アクセスに効果がある。
According to the present invention, even if updating and referencing conflict with the same data in file data recorded in an external storage device, both can access the same data at the same time, and furthermore, the data records that are updated can be accessed simultaneously. is effective for efficient file data access because it is managed to obtain the latest data.

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

第工図は、本発明の一実施例の排他制御管理規則の説明
図、第2図、第3図は外部記憶装置からデータレコード
をアクセスしたときの管理方式を示す説明図、第4図は
本発明が適用されるデータ処理システムの構成図、第5
図は処理フローチャー1−である。 11・・・排他資源名称、 12・・・排他制御関連表、 21〜25・・・アクセスデータレコードの管理方式、 26〜28・・・ファイルデータ。 31〜35・・・再入力指示を行うための管理方式。 4工・・・データ処理システム、 42・・・更新処理、 43・・・参照処理。 第 区 招 弔 4 固 塙 区
Fig. 4 is an explanatory diagram of exclusive control management rules according to an embodiment of the present invention; Figs. 2 and 3 are explanatory diagrams showing a management method when data records are accessed from an external storage device; Configuration diagram of a data processing system to which the present invention is applied, No. 5
The figure shows processing flowchart 1-. 11... Exclusive resource name, 12... Exclusive control related table, 21-25... Access data record management method, 26-28... File data. 31-35... Management method for issuing re-input instructions. 4. Data processing system, 42. Update processing, 43. Reference processing. Ward Condolence 4 Guanhan Ward

Claims (1)

【特許請求の範囲】[Claims] 1、外部記憶装置に記録してあるファイルデータをアク
セスするデータ処理システムにおいて、データの更新と
参照とが同一データにおいて競合したとき、データの更
新のための入力処理及びデータの参照のための入力処理
では互に排他待ちとならず外部記憶装置からデータを入
力して最新のデータを入力できることを特徴とする高速
データアクセス方式。
1. In a data processing system that accesses file data recorded in an external storage device, when data update and reference conflict for the same data, input processing for data update and input for data reference A high-speed data access method characterized in that the latest data can be input by inputting data from an external storage device without mutually exclusive waiting during processing.
JP1206820A 1989-08-11 1989-08-11 High speed data access system Pending JPH0371348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1206820A JPH0371348A (en) 1989-08-11 1989-08-11 High speed data access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1206820A JPH0371348A (en) 1989-08-11 1989-08-11 High speed data access system

Publications (1)

Publication Number Publication Date
JPH0371348A true JPH0371348A (en) 1991-03-27

Family

ID=16529629

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1206820A Pending JPH0371348A (en) 1989-08-11 1989-08-11 High speed data access system

Country Status (1)

Country Link
JP (1) JPH0371348A (en)

Similar Documents

Publication Publication Date Title
JPH04229355A (en) Data access method and data processing system
JP2586219B2 (en) High-speed media priority release exclusion method
JPH0622015B2 (en) Data processing system control method
JPH0371348A (en) High speed data access system
JPS63307553A (en) File control system
JPH0991098A (en) Device driver access system
JP2641399B2 (en) File management device
JPH0346033A (en) Data transfer control method for inter-job
JP3460265B2 (en) Data transfer method between computers
JP3585264B2 (en) Database system and data retrieval method
JPH05151037A (en) Reorganization processing system for database in business processing
JPH01119839A (en) File constitution control system
JPH03201045A (en) Data control system
JPS61123953A (en) Virtual object control method
JP2787107B2 (en) Buffer control system and device
JPH04139545A (en) Data base updating processing system
JPH05334249A (en) Nesting management system for catalog in interactive processing system
JPH0727531B2 (en) File control method
JPH0682334B2 (en) Management processing device for management table
JPS63280356A (en) Buffer management system for virtual disk device
JPH0664552B2 (en) Information processing device invalidation processing method
JPH05181721A (en) Method for reusing and retrieving shared buffer
JPS6126146A (en) Data registration in recording medium and its controlling method
JPH11353212A (en) Method and device for managing member in area sharing file
JPH11143745A (en) Data management system and method therefor