JPH04353944A - Record additional system for index order formation file - Google Patents

Record additional system for index order formation file

Info

Publication number
JPH04353944A
JPH04353944A JP3128076A JP12807691A JPH04353944A JP H04353944 A JPH04353944 A JP H04353944A JP 3128076 A JP3128076 A JP 3128076A JP 12807691 A JP12807691 A JP 12807691A JP H04353944 A JPH04353944 A JP H04353944A
Authority
JP
Japan
Prior art keywords
records
buffer
input
sequential file
added
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
JP3128076A
Other languages
Japanese (ja)
Inventor
Shigenobu Suzuki
重信 鈴木
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 JP3128076A priority Critical patent/JPH04353944A/en
Publication of JPH04353944A publication Critical patent/JPH04353944A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To considerably reduce the number of input/output times when there is much additional processing of previously stored records. CONSTITUTION:An input/output instruction execution part 1 fetches an input/ output instruction for an index order formation file 2. A buffer 3 temporarily stores the recordes to be added when the input/output instruction is an additional instruction. A record additional method judgement part 4 judges the additional method of the records to the index order formation file 2 according to whether the number of the records in the buffer 3 is more than a reference number or not. An addition instruction execution part 5 adds the record 1 in the buffer 3 to the index order formation file 2 one by one when the number of the records is not more than the reference number. A load processing part 6 sorts the records in the buffer 3 and the records in the index order formation file 2 when it is more than the reference number, and restores the records in the index order formation file 2 from an initial state.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は索引順編成ファイルのレ
コード追加方式に関し、特に索引順編成ファイルに対す
るレコードの追加処理を行う索引順編成ファイルのレコ
ード追加方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for adding records to an indexed sequential file, and more particularly to a method for adding records to an indexed sequential file for adding records to the indexed sequential file.

【0002】0002

【従来の技術】索引順編成ファイルは、一般にデータフ
ァイルとインデックスファイルとから構成されており、
従来の索引順編成ファイルのレコード追加方式は、索引
順編成ファイルに新たなレコードを書込むときには、初
期ロードとレコードの追加とで異なる別の処理を行って
いる。
[Prior Art] An indexed sequential file generally consists of a data file and an index file.
In the conventional indexed sequential file record addition method, when writing a new record to an indexed sequential file, different processes are performed for initial loading and record addition.

【0003】すなわち、初期ロードでは、あらかじめ、
レコードが格納すべき順序に分類されているので、レコ
ードを順々にデータファイルに格納して行くとともに、
インデックスファイルにも順々にインデックスを作成し
て行く。一方、レコードの追加では、追加する1レコー
ドに対してインデックスファイルを検索して、格納場所
を決めた後に、データファイル上の該当の頁を読出して
、追加する1レコードを付け加えて書戻している。
[0003] That is, in the initial load, in advance,
Since the records are classified in the order in which they should be stored, the records are stored in the data file one by one, and
Indexes are also created in the index files one by one. On the other hand, when adding a record, the index file is searched for the record to be added, the storage location is determined, the corresponding page is read from the data file, the record is added, and the record is written back. .

【0004】0004

【発明が解決しようとする課題】上述した従来の索引順
編成ファイルのレコード追加方式は、nレコードの追加
を行う際に、ディスク上の1頁にmレコードが書けると
すると、初期ロードでは、データファイルに対してn/
m回、インデックスファイルに対してn/m2 回の入
出力をそれぞれ必要としている。一方、既にrレコード
が格納された索引順編成ファイルに対するレコードの追
加では、データファイルに対して2n回、インデックス
ファイルに対してn/m2 +nlogm {(r+n
/2)/m}回の入出力をそれぞれ必要としている。
[Problems to be Solved by the Invention] In the conventional record addition method for indexed sequential files described above, when adding n records, assuming that m records can be written on one page on the disk, the data is n/for files
m times and n/m2 times of input/output to the index file. On the other hand, when adding a record to an indexed sequential file that has already stored r records, it is added 2n times to the data file and n/m2 +nlogm {(r+nlogm) to the index file.
/2)/m} times of input and output, respectively.

【0005】これは、初期ロードでは、データファイル
およびインデックスファイルについて、必要な頁数だけ
の書込みを行うことで済むのに対して、レコードの追加
では、データファイルに追加する各レコードについて、
ディスク上の各頁のデータを読んで書くのに2n回の入
出力の必要があり、インデックスファイルについては、
格納場所の検索処理にnlogm {(r+n/2)/
m}回の頁読出しと実際の書込みにn/m2 回の頁書
込みとの入出力の必要があるためである。
[0005] In initial loading, only the required number of pages are written to the data file and index file, whereas in adding records, for each record added to the data file,
It takes 2n input/outputs to read and write the data for each page on disk, and for index files,
nlogm {(r+n/2)/
This is because it is necessary to perform input/output operations such as page reading m} times and page writing n/m2 times for actual writing.

【0006】従って、例えば、n=10000,m=1
0,r=10000である場合に、初期ロードでは、1
100回の入出力で済むのに対して、既に格納されたレ
コードの追加では、51860回の入出力が必要となる
Therefore, for example, n=10000, m=1
0, r=10000, at initial load, 1
While 100 input/outputs are required, adding an already stored record requires 51,860 input/outputs.

【0007】このように、従来の索引順編成ファイルの
レコード追加方式は、レコードの追加処理が多い場合に
は、索引順編成ファイルの莫大な入出力時間がかかると
いう欠点を有している。
[0007] As described above, the conventional method of adding records to indexed sequential files has the disadvantage that it takes an enormous amount of input/output time for indexed sequential files when many records are added.

【0008】[0008]

【課題を解決するための手段】第1の発明の索引順編成
ファイルのレコード追加方式は、(A)検索命令,追加
命令,更新命令,削除命令等の索引順編成ファイルに対
する入出力命令を取込む入出力命令実行部と、(B)前
記入出力命令実行部で取込んだ入出力命令が追加命令の
ときには、追加すべきレコードを一時的に格納しておく
バッファと、(C)前記入出力命令実行部で取込んだ入
出力命令が追加命令以外の命令のときには、前記バッフ
ァ内の追加すべきレコード数があらかじめ定めた基準数
以上か否かにより、前記索引順編成ファイルへのレコー
ドの追加方法を判定するレコード追加方法判定部と、(
D)前記レコード追加方法判定部の判定が基準数以上で
はないときに、前記バッファ内の追加すべきレコードを
1レコードずつ前記索引順編成ファイルへ追加する処理
を行う追加命令実行部と、(E)前記レコード追加方法
判定部の判定が基準数以上であるときに、前記バッファ
内の追加すべきレコードを分類するとともに、既に前記
索引順編成ファイル内に格納されているレコードを読出
して、これらを併合することにより、初期状態から前記
索引順編成ファイル内に格納し直す処理を行うロード処
理部と、を備えて構成されている。
[Means for Solving the Problems] A record addition method for an indexed sequential file according to the first invention includes (A) input/output instructions for an indexed sequential file, such as search commands, addition commands, update commands, and deletion commands; (B) When the input/output instruction taken in by the input/output instruction execution unit is an additional instruction, a buffer for temporarily storing the record to be added; (C) the input/output instruction execution unit; When the input/output instruction taken in by the output instruction execution unit is an instruction other than an addition instruction, the record is added to the indexed sequential file depending on whether the number of records to be added in the buffer is greater than or equal to a predetermined reference number. A record addition method determination unit that determines the addition method, and (
D) an addition instruction execution unit that performs a process of adding records to be added in the buffer to the index sequential file one record at a time when the record addition method determination unit determines that the number is not equal to or greater than the reference number; ) When the record addition method determination unit determines that the number of records is equal to or greater than the reference number, the records to be added in the buffer are classified, and the records already stored in the index sequential file are read out and the records are read out. and a load processing section that performs a process of re-storing the data in the indexed sequential file from the initial state by merging the files.

【0009】また、第2の発明の索引順編成ファイルの
レコード追加方式は、(A)検索命令,追加命令,更新
命令,削除命令等の索引順編成ファイルに対する入出力
命令を取込み、(B)取込んだ入出力命令が追加命令の
ときには、バッファに追加すべきレコードを一時的に格
納しておき、(C)取込んだ入出力命令が追加命令以外
の命令のときには、前記バッファ内の追加すべきレコー
ド数があらかじめ定めた基準数以上か否かにより、前記
索引順編成ファイルへのレコードの追加方法を判定し、
(D)前記バッファ内の追加すべきレコード数が基準数
以上ではないときには、前記バッファ内の追加すべきレ
コードを1レコードずつ前記索引順編成ファイルへ追加
する処理を行い、(E)前記バッファ内の追加すべきレ
コード数が基準数以上であるときには、前記バッファ内
の追加すべきレコードを分類するとともに、既に前記索
引順編成ファイル内に格納されているレコードを読出し
て、これらを併合することにより、初期状態から前記索
引順編成ファイル内に格納し直す処理を行う、ことによ
り構成されている。
[0009] Furthermore, the record addition method for an indexed sequential file according to the second invention (A) incorporates input/output instructions for the indexed sequential file, such as search commands, add commands, update commands, and deletion commands; (C) When the imported input/output instruction is an addition instruction, the record to be added to the buffer is temporarily stored; Determining how to add records to the index sequential file depending on whether the number of records to be added is equal to or greater than a predetermined reference number;
(D) When the number of records to be added in the buffer is not equal to or greater than the reference number, the records to be added in the buffer are added one record at a time to the indexed sequential file; When the number of records to be added is equal to or greater than the reference number, the records to be added in the buffer are classified, and records already stored in the indexed sequential file are read and merged. , performing a process of re-storing the data in the indexed sequential file from the initial state.

【0010】さらに、第3の発明の索引順編成ファイル
のレコード追加方式は、(A)検索命令,追加命令,更
新命令,削除命令等の索引順編成ファイルに対する入出
力命令を取込む入出力命令実行部と、(B)前記入出力
命令実行部で取込んだ入出力命令が追加命令のときには
、追加すべきレコードを一時的に格納するバッファと、
(C)前記入出力命令実行部で取込んだ入出力命令が追
加命令以外の命令のときには、前記バッファ内のレコー
ド数があらかじめ定めた一定数以上か否かにより、前記
索引順編成ファイルへのレコードの追加方法を判定する
レコード追加方法判定部と、(D)前記レコード追加方
法判定部の判定が一定数以上ではないときに、前記バッ
ファ内の追加すべきレコードを1レコードずつ前記索引
順編成ファイルへ追加する追加命令実行部と、(E)前
記レコード追加方法判定部の判定が一定数以上であると
きに、前記バッファ内の追加すべきレコードおよび既に
前記索引順編成ファイル内に格納されているレコードを
合せて分類して、初期状態から前記索引順編成ファイル
内に格納し直すロード処理部と、を備えて構成されてい
る。
Furthermore, the record addition method for the indexed sequential file of the third invention includes (A) an input/output instruction that takes input/output instructions for the indexed sequential file, such as a search command, an add command, an update command, a deletion command, etc.; (B) a buffer for temporarily storing records to be added when the input/output instruction taken in by the input/output instruction execution section is an addition instruction;
(C) When the input/output instruction taken in by the input/output instruction execution unit is an instruction other than an add instruction, the input/output instruction to the indexed sequential file is determined depending on whether the number of records in the buffer is greater than or equal to a predetermined number. (D) a record addition method determination unit that determines a record addition method; and (D) when the record addition method determination unit determines that the number of records is not greater than a certain number, the record to be added in the buffer is organized one record at a time in the index order; When the number of records to be added in the buffer and the records already stored in the indexed sequential file are determined by the addition instruction execution unit to be added to the file and (E) the record addition method determination unit is a certain number or more, and a load processing section that classifies all the records that exist and re-stores them in the indexed sequential file from an initial state.

【0011】[0011]

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

【0012】図1は本発明の索引順編成ファイルのレコ
ード追加方式の一実施例を示すブロック図である。図1
に示すように、入出力命令実行部1は、検索命令,追加
命令,更新命令,削除命令等の索引順編成ファイル2に
対する入出力命令を取込んでいる。そして、バッファ3
は、入出力命令実行部1で取込んだ入出力命令が追加命
令のときには、追加すべきレコードを入出力命令実行部
1から受けて一時的に格納している。
FIG. 1 is a block diagram showing an embodiment of a record addition method for an indexed sequential file according to the present invention. Figure 1
As shown in FIG. 2, the input/output command execution unit 1 takes in input/output commands for the index sequential file 2, such as search commands, add commands, update commands, and deletion commands. And buffer 3
When the input/output instruction taken in by the input/output instruction execution section 1 is an addition instruction, the record to be added is received from the input/output instruction execution section 1 and temporarily stored therein.

【0013】一方、レコード追加方法判定部4は、入出
力命令実行部1で取込んだ入出力命令が追加命令以外の
命令のときには、バッファ3内の追加すべきレコード数
があらかじめ定めた基準数以上か否かにより、索引順編
成ファイル2へのレコードの追加方法を判定している。
On the other hand, when the input/output instruction taken in by the input/output instruction execution section 1 is an instruction other than an addition instruction, the record addition method determining section 4 determines that the number of records to be added in the buffer 3 is a predetermined reference number. The method for adding records to the indexed sequential file 2 is determined depending on whether or not the above is true.

【0014】そして、追加命令実行部5は、レコード追
加方法判定部4の判定が基準数以上ではないときにだけ
、バッファ3内の追加すべきレコードを1レコードずつ
索引順編成ファイル2へ追加する処理を行っている。
[0014] Then, the addition command execution unit 5 adds the records to be added in the buffer 3 one record at a time to the indexed sequential file 2 only when the record addition method determination unit 4 determines that the number is not equal to or greater than the reference number. Processing is in progress.

【0015】また、ロード処理部6は、レコード追加方
法判定部4の判定が基準数以上であるときに、バッファ
3内の追加すべきレコードを分類するとともに、既に索
引順編成ファイル2内に格納されているレコードを読出
して、これらを併合することにより、初期状態から索引
順編成ファイル2内に格納し直す処理を行っている。
Furthermore, when the record addition method determination unit 4 determines that the number of records is equal to or greater than the reference number, the load processing unit 6 classifies the records to be added in the buffer 3 and records that are already stored in the index sequential organization file 2. By reading the records that have been stored and merging them, processing is performed to re-store them in the indexed sequential file 2 from the initial state.

【0016】図2は本実施例の索引順編成ファイルのレ
コード追加方式における動作の一例を示す流れ図である
。また、図3は図2のバッファ内レコードの処理14の
一例を示す流れ図である。図2に示すように、ステップ
11で、検索命令,追加命令,更新命令,削除命令等の
索引順編成ファイルに対する入出力命令を取込み、ステ
ップ12で、取込んだ入出力命令が追加命令であるかど
うかを判断し、追加命令のときには、ステップ13で、
バッファ内に追加すべきレコードを書込んでいる。 また、ステップ12で、取込んだ入出力命令が追加命令
以外の命令のときには、ステップ14で、図3に示すバ
ッファ内レコードの処理を行っている。
FIG. 2 is a flowchart showing an example of the operation in the record addition method for an indexed sequential file according to this embodiment. Further, FIG. 3 is a flowchart showing an example of the processing 14 for records in the buffer shown in FIG. As shown in FIG. 2, in step 11, input/output instructions for the indexed sequential file, such as search instructions, addition instructions, update instructions, and deletion instructions, are loaded, and in step 12, the loaded input/output instructions are added instructions. If it is an additional command, in step 13,
Writing records to be added into the buffer. Further, in step 12, when the input/output instruction taken in is an instruction other than an addition instruction, in step 14, the records in the buffer shown in FIG. 3 are processed.

【0017】すなわち、図3に示すように、ステップ2
1で、バッファ内にレコードがあるかどうかを判定し、
バッファ内にレコードがあるときには、ステップ22で
、バッファ内の追加すべきレコード数があらかじめ定め
た一定数以上か否かを判定し、バッファ内の追加すべき
レコード数が一定数以上ではないときには、ステップ2
3で、バッファ内の追加すべきレコードを1レコードず
つ索引順編成ファイルへ追加する処理を行っている。
That is, as shown in FIG.
1, determine whether there is a record in the buffer,
When there are records in the buffer, it is determined in step 22 whether the number of records to be added in the buffer is greater than or equal to a predetermined number; if the number of records to be added in the buffer is not greater than a predetermined number, Step 2
3, the records to be added in the buffer are added to the indexed sequential file one record at a time.

【0018】一方、ステップ22で、バッファ内の追加
すべきレコード数が一定数以上であるときには、ステッ
プ24で、既に索引順編成ファイル内に格納されている
レコードを読込み、ステップ25で、バッファ内の追加
すべきレコードを読込み、ステップ26で、これらをソ
ートにより分類して併合し、ステップ27で、初期状態
から索引順編成ファイル内に格納し直すロード処理を行
っている。
On the other hand, if it is determined in step 22 that the number of records to be added in the buffer is greater than or equal to a certain number, then in step 24 the records already stored in the indexed sequential file are read, and in step 25 the records in the buffer are In step 26, the records to be added are read, and in step 26, they are sorted and merged.In step 27, a load process is performed in which they are stored again in the indexed sequential file from the initial state.

【0019】そして、図2のステップ15で、ステップ
11により取込んだ追加命令以外の入出力命令の実行を
行っている。
Then, in step 15 of FIG. 2, input/output instructions other than the additional instruction taken in in step 11 are executed.

【0020】そこで、本実施例の索引順編成ファイルの
レコード追加方式は、nレコードの追加を実施する際に
、ディスク上の各頁にmレコードが書けるとすると、既
に、rレコードが格納された索引順編成ファイルに対す
るレコードの追加に対して、データファイルからのデー
タの読出しにはr/m回、これらのソートの処理に対し
ては{(r+n)/m}logk {(r+n)/m}
回(ただし、ソート用のメモリ領域をkレコードとして
算出している。)、データファイルへのデータの書込み
に(r+n)/m回、インデックスファイルへのインデ
ックスの書込みに(r+n)/m2 回の入出力をそれ
ぞれ必要としている。
Therefore, in the record addition method of the indexed sequential file of this embodiment, when adding n records, if m records can be written on each page on the disk, r records have already been stored. For every record added to the indexed sequential file, data is read from the data file r/m times, and for these sorts, {(r+n)/m}logk {(r+n)/m}
times (however, the memory area for sorting is calculated as k records), (r+n)/m times to write data to the data file, and (r+n)/m2 times to write the index to the index file. Each requires input and output.

【0021】この結果、例えば、n=10000,m=
10,r=10000,k=100である前述の場合に
は、既に格納されたレコードの追加に対して、1000
+3300+2000+200=6500回の入出力が
必要となる。従って、従来の索引順編成ファイルのレコ
ード追加方式による51860回に比較して、入出力回
数が大幅に減少している。
As a result, for example, n=10000, m=
10, r=10000, k=100 in the above case, 1000
+3300+2000+200=6500 input/output operations are required. Therefore, the number of inputs and outputs is significantly reduced compared to 51,860 times using the conventional indexed sequential file record addition method.

【0022】[0022]

【発明の効果】以上説明したように、本発明の索引順編
成ファイルのレコード追加方式は、従来の索引順編成フ
ァイルのレコード追加方式に比較して、既に格納された
レコードの追加処理が多い場合には、入出力回数を大幅
に減少させることができるという効果を有している。
[Effects of the Invention] As explained above, the record addition method for an indexed sequential file of the present invention is more effective when adding records to already stored records than the conventional indexed sequential file record addition method. This has the effect of significantly reducing the number of inputs and outputs.

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

【図1】本発明の索引順編成ファイルのレコード追加方
式の一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a record addition method for an indexed sequential file according to the present invention.

【図2】本実施例の索引順編成ファイルのレコード追加
方式における動作の一例を示す流れ図である。
FIG. 2 is a flowchart showing an example of the operation in the record addition method for the indexed sequential file according to the present embodiment.

【図3】図2のバッファ内レコードの処理14の一例を
示す流れ図である。
FIG. 3 is a flowchart illustrating an example of processing 14 for records in a buffer in FIG. 2;

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

1    入出力命令実行部 2    索引順編成ファイル 3    バッファ 4    レコード追加方法判定部 5    追加命令実行部 6    ロード処理部 1 Input/output instruction execution unit 2 Index sequential file 3 Buffer 4 Record addition method determination section 5 Additional instruction execution unit 6 Load processing section

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】(A)検索命令,追加命令,更新命令,削
除命令等の索引順編成ファイルに対する入出力命令を取
込む入出力命令実行部と、(B)前記入出力命令実行部
で取込んだ入出力命令が追加命令のときには、追加すべ
きレコードを一時的に格納しておくバッファと、(C)
前記入出力命令実行部で取込んだ入出力命令が追加命令
以外の命令のときには、前記バッファ内の追加すべきレ
コード数があらかじめ定めた基準数以上か否かにより、
前記索引順編成ファイルへのレコードの追加方法を判定
するレコード追加方法判定部と、(D)前記レコード追
加方法判定部の判定が基準数以上ではないときに、前記
バッファ内の追加すべきレコードを1レコードずつ前記
索引順編成ファイルへ追加する処理を行う追加命令実行
部と、(E)前記レコード追加方法判定部の判定が基準
数以上であるときに、前記バッファ内の追加すべきレコ
ードを分類するとともに、既に前記索引順編成ファイル
内に格納されているレコードを読出して、これらを併合
することにより、初期状態から前記索引順編成ファイル
内に格納し直す処理を行うロード処理部と、を備えるこ
とを特徴とする索引順編成ファイルのレコード追加方式
Claim 1: (A) an input/output instruction execution unit that receives input/output instructions for the indexed sequential file, such as search instructions, addition instructions, update instructions, deletion instructions, etc.; When the added input/output instruction is an add instruction, a buffer for temporarily storing the record to be added, and (C)
When the input/output instruction taken in by the input/output instruction execution unit is an instruction other than an addition instruction, depending on whether the number of records to be added in the buffer is equal to or greater than a predetermined reference number,
(D) a record addition method determining unit that determines a method for adding records to the indexed sequential file; (E) an addition command execution unit that performs a process of adding records one by one to the indexed sequential file; and (E) classifying records to be added in the buffer when the record addition method determination unit determines that the number is equal to or greater than a reference number; and a load processing unit that reads records already stored in the indexed sequential file, merges them, and re-stores them in the indexed sequential file from an initial state. A record addition method for an indexed sequential file is characterized by:
【請求項2】(A)検索命令,追加命令,更新命令,削
除命令等の索引順編成ファイルに対する入出力命令を取
込み、(B)取込んだ入出力命令が追加命令のときには
、バッファに追加すべきレコードを一時的に格納してお
き、(C)取込んだ入出力命令が追加命令以外の命令の
ときには、前記バッファ内の追加すべきレコード数があ
らかじめ定めた基準数以上か否かにより、前記索引順編
成ファイルへのレコードの追加方法を判定し、(D)前
記バッファ内の追加すべきレコード数が基準数以上では
ないときには、前記バッファ内の追加すべきレコードを
1レコードずつ前記索引順編成ファイルへ追加する処理
を行い、(E)前記バッファ内の追加すべきレコード数
が基準数以上であるときには、前記バッファ内の追加す
べきレコードを分類するとともに、既に前記索引順編成
ファイル内に格納されているレコードを読出して、これ
らを併合することにより、初期状態から前記索引順編成
ファイル内に格納し直す処理を行う、ことを特徴とする
索引順編成ファイルのレコード追加方式。
Claim 2: (A) capture input/output instructions for the indexed sequential file, such as search instructions, addition instructions, update instructions, deletion instructions, etc.; (B) when the captured input/output instructions are addition instructions, add them to the buffer; (C) If the input/output instruction taken in is an instruction other than an addition instruction, the number of records to be added in the buffer is greater than or equal to a predetermined reference number. , determines how to add records to the index sequential file, and (D) when the number of records to be added in the buffer is not equal to or greater than the reference number, the records to be added in the buffer are added one record at a time to the index; (E) If the number of records to be added in the buffer is greater than or equal to the reference number, the records to be added in the buffer are classified, and the records already in the indexed sequential file are classified. 1. A method for adding records to an indexed sequential file, characterized in that the records stored in the indexed sequential file are read out and merged, thereby re-storing them in the indexed sequential file from an initial state.
【請求項3】(A)検索命令,追加命令,更新命令,削
除命令等の索引順編成ファイルに対する入出力命令を取
込む入出力命令実行部と、(B)前記入出力命令実行部
で取込んだ入出力命令が追加命令のときには、追加すべ
きレコードを一時的に格納するバッファと、(C)前記
入出力命令実行部で取込んだ入出力命令が追加命令以外
の命令のときには、前記バッファ内のレコード数があら
かじめ定めた一定数以上か否かにより、前記索引順編成
ファイルへのレコードの追加方法を判定するレコード追
加方法判定部と、(D)前記レコード追加方法判定部の
判定が一定数以上ではないときに、前記バッファ内の追
加すべきレコードを1レコードずつ前記索引順編成ファ
イルへ追加する追加命令実行部と、(E)前記レコード
追加方法判定部の判定が一定数以上であるときに、前記
バッファ内の追加すべきレコードおよび既に前記索引順
編成ファイル内に格納されているレコードを合せて分類
して、初期状態から前記索引順編成ファイル内に格納し
直すロード処理部と、を備えることを特徴とする索引順
編成ファイルのレコード追加方式。
Claim 3: (A) an input/output instruction execution section that takes input/output instructions for the indexed sequential file, such as search instructions, addition instructions, update instructions, deletion instructions, etc.; (C) When the input/output instruction taken in by the input/output instruction execution unit is an instruction other than the addition instruction, the buffer for temporarily storing the record to be added; (D) a record addition method determining unit that determines a method for adding records to the indexed sequential file depending on whether the number of records in the buffer is equal to or greater than a predetermined number; (E) an addition instruction execution unit that adds records to be added in the buffer one record at a time to the indexed sequential file when the number is not above a certain number; and (E) a determination by the record addition method judgment unit that the number is above a certain number At a certain time, a load processing unit classifies records to be added in the buffer and records already stored in the index sequential file and stores them again in the index sequential file from an initial state; A method for adding records to an indexed sequential file, comprising:
JP3128076A 1991-05-31 1991-05-31 Record additional system for index order formation file Pending JPH04353944A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3128076A JPH04353944A (en) 1991-05-31 1991-05-31 Record additional system for index order formation file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3128076A JPH04353944A (en) 1991-05-31 1991-05-31 Record additional system for index order formation file

Publications (1)

Publication Number Publication Date
JPH04353944A true JPH04353944A (en) 1992-12-08

Family

ID=14975840

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3128076A Pending JPH04353944A (en) 1991-05-31 1991-05-31 Record additional system for index order formation file

Country Status (1)

Country Link
JP (1) JPH04353944A (en)

Similar Documents

Publication Publication Date Title
US4514826A (en) Relational algebra engine
JPH02178730A (en) Internal sorting system using dividing method
JP3515810B2 (en) Sort processing method and apparatus
JPH04353944A (en) Record additional system for index order formation file
US5170479A (en) File block managing system using next record header position data and delete history data from block header and record headers to locate requested record block
JPS6132695B2 (en)
JP2822869B2 (en) Library file management device
JPH0581337A (en) Data processor
JPS62121532A (en) Data retrieving method
JPH0239225A (en) Filing system
JP2923952B2 (en) Merge processing method
JP2507399B2 (en) Database equipment
JPS63196959A (en) Saving and restoring system for file
JPS6266326A (en) Array processing system for japanese data
JP2747009B2 (en) Record addition method for indexed sequential files
JP2605476B2 (en) Dump collection processing method
JP3293544B2 (en) Sorting method using auxiliary storage
JPS63276629A (en) Sorting system for record in file
JP3293551B2 (en) Sorting method
JPH01147720A (en) Classification processing system
JPH03226829A (en) Information processor
JPS5924344A (en) Overlay controlling system
JPH0877044A (en) Data base controller
JPH02165325A (en) Sorting system for random access file
JPH01228022A (en) Tow-dimensional data storing system