JPH02190971A - Index updating system - Google Patents

Index updating system

Info

Publication number
JPH02190971A
JPH02190971A JP1011057A JP1105789A JPH02190971A JP H02190971 A JPH02190971 A JP H02190971A JP 1011057 A JP1011057 A JP 1011057A JP 1105789 A JP1105789 A JP 1105789A JP H02190971 A JPH02190971 A JP H02190971A
Authority
JP
Japan
Prior art keywords
index
data
updating
file
update
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.)
Granted
Application number
JP1011057A
Other languages
Japanese (ja)
Other versions
JPH0833899B2 (en
Inventor
Kazumasa Iwamoto
岩本 和眞
Jun Tomita
冨田 準
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
NEC Solution Innovators Ltd
Original Assignee
NEC Corp
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 Corp, NEC Solution Innovators Ltd filed Critical NEC Corp
Priority to JP1011057A priority Critical patent/JPH0833899B2/en
Publication of JPH02190971A publication Critical patent/JPH02190971A/en
Publication of JPH0833899B2 publication Critical patent/JPH0833899B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the overhead of an output to an intermediate file and to shorten the updating processing time of an index by collectively sorting the index updating information stored in the intermediate file and then updating an index part in accordance with the sorted contents. CONSTITUTION:At the time of updating a file 5, a data part 6 is updated based upon a series of updating data and a conversion means 1 convert updating information including key values extracted about plural index items included in respective updating data into index updating information collectively consisting of a sortable format character string in the order appropriate for the updating of respective indexes in respective index parts 7-1 to 7-n and stores the converted updating information in the intermediate file 3. After ending the updating of the data part 6, the index updating information stored in the file 3 is collectively sorted to form the index updating information arranged in the order appropriate for the updating of respective index parts 7-1 to 7-n and updating is executed in accordance with the contents. Consequently, the overhead of the output to the file 3 can be reduced and the updating processing time of the indexes can be shortened.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ部と複数の索引部とを含むファイルを
ランダムアクセス可能な記憶装置に格納している情報処
理システムにおける前記索引部の更新方式に関し、特に
一連の更新データに従ってデータ部の更新を行った後に
索引部の更新を一括して行う索引更新方式に関する。
Detailed Description of the Invention [Industrial Application Field] The present invention relates to updating of an index section in an information processing system in which a file including a data section and a plurality of index sections is stored in a randomly accessible storage device. In particular, the present invention relates to an index update method in which the data section is updated according to a series of update data and then the index section is updated all at once.

〔従来の技術〕[Conventional technology]

複数の項目を含むデータを多数格納するファイル中から
所定の値の項目値を持つデータを検索し得るファイル編
成としては各種存在するが、その中の1つとして、デー
タを格納するデータ部とは別に、各データの各項目の値
をキー値として持ち又その値の項目を有するデータの所
在に関する情報たとえばデータのアドレス自体やそのア
ドレスを舟−る為の管理番号等を持つ索引データを索引
項日別の索引部に格納した編成方法のファイルがある。
There are various file organizations that can search for data with a predetermined item value from a file that stores a large amount of data including multiple items, but one of them is the data section that stores data. Separately, index data that has the value of each item of each data as a key value, and information about the location of the data that has the item of that value, such as the address of the data itself and the management number for shipping that address, is used as an index item. There is a file with the organization method stored in the daily index section.

このようなファイルでは、成る項目の値がαであるデー
タを取得する場合、その項目対応の索引部が検索され、
αのキー値を持つ索引データを見つけると、その索引デ
ータ中の所在情報に従ってデータ部から該当するデータ
が取得される。
In such a file, when acquiring data where the value of an item is α, the index section corresponding to that item is searched,
When index data having a key value of α is found, the corresponding data is acquired from the data section according to the location information in the index data.

ところで、この種のファイルを外部から与えられた一連
の更新データに従って更新する場合、データ部を更新す
ると共に索引部もそれに併せて更新する必要があり、こ
の更新は従来次のようにして行われていた。即ち、1つ
の更新データに従ってデータ部の1データを更新する毎
にその更新データから各索引項目毎の索引更新情報を抽
出して索引項目別に設けられた中間ファイルに出力する
処理を行い、一連の更新データによるデータ部の更新が
終了した後、中間ファイルに蓄えられた複数の索引更新
情報をその索引項目の定義属性に従ってキー値の順序に
ソートする等の如く更新処理に適した順序にソートし、
そのソート後の内容に従って対応する索引部を更新する
といった処理を、各中間ファイル毎つまり各索引項目毎
に行うものであった。
By the way, when updating this type of file according to a series of update data given from the outside, it is necessary to update the data section and the index section at the same time, and this update was conventionally done as follows. was. That is, each time one piece of data in the data section is updated according to one piece of update data, the index update information for each index item is extracted from the updated data and output to an intermediate file provided for each index item. After the data section has been updated with update data, the multiple index update information stored in the intermediate file is sorted in an order suitable for update processing, such as sorting in the order of key values according to the definition attributes of the index items. ,
The process of updating the corresponding index section according to the sorted contents was performed for each intermediate file, that is, for each index item.

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

上述した従来の索引更新方式は、索引の更新をデータの
更新と非同期に実施し、複数の索引更新情報を該当する
索引部の更新処理に適した順序にソートした後に一括し
て該当する索引部の更新を行うので、1データの更新毎
に逐次に索引部の更新を実行する方式に比べて、処理の
高速化が可能となる。しかしながら、各索引部の更新に
通した順序で並べられた索引更新情報を得る為に、索引
項目別の中間ファイルを設け、1つの更新データについ
て抽出した各項目毎の索引更新情報を各々の中間ファイ
ルに出力して1つの中間ファイルには1種類の索引項目
にかかる索引更新情報だけが蓄えられるようにし、その
後、各中間ファイル毎にソートするようにしているので
、1つの更新データの処理過程において複数の中間ファ
イルに対する出力が必要となる。従って、複数の中間フ
ァイルが磁気ディスク等の同一記憶媒体に存在する場合
、シーク時間によるオーバーヘッドが大きくなり、全体
としての更新時間が長くなる。
The conventional index update method described above updates the index asynchronously with the data update, sorts the multiple index update information in an order suitable for the update processing of the corresponding index section, and then updates the corresponding index section all at once. , the processing speed can be increased compared to a method in which the index section is updated sequentially every time one piece of data is updated. However, in order to obtain index update information arranged in the order in which each index section was updated, an intermediate file is created for each index item, and the index update information for each item extracted for one update data is stored in each intermediate file. By outputting to a file, only the index update information related to one type of index item is stored in one intermediate file, and then it is sorted for each intermediate file, so the process of processing one update data requires output to multiple intermediate files. Therefore, when a plurality of intermediate files exist on the same storage medium such as a magnetic disk, the overhead due to seek time becomes large, and the overall update time increases.

本発明はこのような従来の問題点を解決したものであり
、その目的は、中間ファイルに対する出力のオーバーヘ
ッドを削減して索引の更新処理時間を短縮し得る索引更
新方式を提供することにある。
The present invention has solved these conventional problems, and its purpose is to provide an index update method that can reduce the overhead of outputting to intermediate files and shorten the index update processing time.

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

本発明は上記の目的を達成するために、データ部とこの
データ部に格納されたデータの索引項目のキー値および
該当するデータの所在情報を含む索引データを索引項目
別に格納する複数の索引部とを有するファイルをランダ
ムアクセス可能な記憶装置に格納し、一連の更新データ
に基づいて前記データ部の更新を行った後に、今回の一
連の更新にかかる索引部の更新を一括して行う情報処理
システムにおける索引更新方式において、各更新データ
に含まれる複数の索引項目について抽出したキー値を含
む更新情報を、各索引部毎の索引の更新に適した順序に
一括してソート可能な形式の文字列から成る索引更新情
報に変換する変換手段と、この変換手段で生成された索
引更新情報を格納する中間ファイルとを備え、この中間
ファイルに格納された索引更新情報を前記順序に一括し
てソートした後、そのソート後の内容に従って前記索引
部の更新を行うように構成されている。
In order to achieve the above object, the present invention includes a data section and a plurality of index sections that store index data for each index item, including key values of index items of data stored in this data section and location information of the corresponding data. Information processing that stores a file with a randomly accessible storage device in a randomly accessible storage device, updates the data section based on a series of update data, and then updates the index section related to the current series of updates all at once. In the index update method of the system, update information including key values extracted for multiple index items included in each update data can be sorted all at once in an order suitable for updating the index for each index section. The system includes a conversion means for converting into index update information consisting of columns, and an intermediate file for storing the index update information generated by the conversion means, and the index update information stored in the intermediate file is sorted all at once in the above order. After that, the index section is updated according to the sorted contents.

〔作用〕[Effect]

本発明の索引更新方式においては、ファイルの更新時、
一連の更新データに基づいてデータ部の更新が行われる
と同時に、変換手段が各更新データに含まれる複数の索
引項目について抽出したキー値を含む更新情報を、各索
引部毎の索引の更新に適した順序に一括してソート可能
な形式の文字列から成る索引更新情報に変換して中間フ
ァイルに格納し、一連の更新データに基づくデータ部の
更新が終了した後、上記中間ファイルに格納された索引
更新情報を一括してソートして各索引部毎の更新に適し
た順序で並べられた索引更新情報を生成し、その内容に
従って索引部の更新が行われる。
In the index update method of the present invention, when updating a file,
At the same time as the data section is updated based on a series of update data, the conversion means updates the index of each index section with update information including key values extracted for multiple index items included in each update data. The index update information is converted into index update information consisting of strings in a format that can be sorted all at once in a suitable order and stored in an intermediate file, and after the data section has been updated based on a series of update data, it is stored in the intermediate file. The index update information is sorted all at once to generate index update information arranged in an order suitable for updating each index section, and the index sections are updated according to the contents.

〔実施例〕〔Example〕

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

第2図は本発明の索引更新方式を適用した情報処理シス
テムの一例を示す要部ブロック図であり、処理装置1と
、磁気ディスク装置の如きランダムアクセス可能な記憶
装置2と、ソート用の作業ファイル(中間ファイル)3
と、更新データファイル4とを含んでいる。
FIG. 2 is a block diagram of main parts showing an example of an information processing system to which the index update method of the present invention is applied. File (intermediate file) 3
and an update data file 4.

記憶装置2には、更新対象となるマスクファイル5が格
納されている。このマスクファイル5はデータ部6と索
引項目毎の複数の索引部?−1〜7−nとを含んでいる
。データ部6には複数のデータが格納されている。また
、各索引部7−1〜7−nには、データ部6に格納され
たデータ中の該当項目の値をキー値として持ち且つその
データの所在に関する情報を併せ持つ索引データが格納
されている。データの所在に関する情報としてはデータ
のアドレス自体やマスクファイル5内で一意となるデー
タ管理番号等が採用され、本実施例ではデータ管理番号
を使用している。なお、各データのアドレスはマスクフ
ァイル5内の図示しない領域にデータ管理番号と対応付
けて管理され、その領域から実際のアドレスが取得され
るが、本発明と直接的には関係しないので、その詳細は
省略している。
The storage device 2 stores a mask file 5 to be updated. This mask file 5 has a data section 6 and multiple index sections for each index item? -1 to 7-n. The data section 6 stores a plurality of data. In addition, each index section 7-1 to 7-n stores index data that has the value of a corresponding item in the data stored in the data section 6 as a key value and also has information regarding the location of the data. . The data address itself, a data management number that is unique within the mask file 5, etc. are used as information regarding the location of the data, and in this embodiment, the data management number is used. Note that the address of each data is managed in an area (not shown) in the mask file 5 in association with a data management number, and the actual address is obtained from that area, but this is not directly related to the present invention. Details have been omitted.

第3図はマスクファイル5のデータ部6におけるデータ
の形式例を示す、同図に示すように1つのデータには複
数の索引項目fl−f5が含まれる。なお、1つのデー
タは1つのデータレコードとして格納されるものである
。ここに例示する索引項目f1〜f5は次のようなもの
である。
FIG. 3 shows an example of the format of data in the data section 6 of the mask file 5. As shown in the figure, one data includes a plurality of index items fl-f5. Note that one piece of data is stored as one data record. The index items f1 to f5 illustrated here are as follows.

・索引項目r1 項目識別−C1,定義属性=文字型1桁数=12桁(文
字) ・索引項目f2 項目識別−02,定義属性−アンパック形式%式% 項目識別−03,定義属性−アンパック形式10進数1
桁数−7桁 ・索引項目「4 項目識別=04.定義属性=パック形式10%式% 項目識別=05.定義属性−バツク形式10進数5桁数
11桁 再び第2図を参照すると、更新データファイル4には、
マスクファイル5に対する更新データすなわち追加すべ
きデータ、削除すべきデータ、変更すべきデータに関す
るデータが格納されている。
- Index item r1 Item identification - C1, Definition attribute = Character type 1 digit number = 12 digits (characters) - Index item f2 Item identification - 02, Definition attribute - Unpack format % expression % Item identification - 03, Definition attribute - Unpack format decimal number 1
Number of digits - 7 digits / Index item "4 Item identification = 04. Definition attribute = Pack format 10% formula % Item identification = 05. Definition attribute - Back format Decimal number 5 digits Number 11 digits Referring to Figure 2 again, update Data file 4 contains
Update data for the mask file 5, that is, data regarding data to be added, data to be deleted, and data to be changed is stored.

更新の態様の1つである追加の場合を例にすれば、更新
データファイル4には、第4図に示すような形式を持つ
追加データD1〜Di、・・・が格納されている。ここ
に例示した追加データDiは、左端から順番に索引項目
rl、f2.[3,[4,f5の値が並んでいる。なお
、1つの追加データは1つの追加レコードとして格納さ
れている。
Taking the case of addition, which is one of the update modes, as an example, the update data file 4 stores additional data D1 to Di, . . . having a format as shown in FIG. The additional data Di illustrated here includes index items rl, f2 . The values of [3, [4, f5] are lined up. Note that one piece of additional data is stored as one additional record.

第2図の処理装置1は、更新データファイル4に格納さ
れた一連の更新データに基づいて記憶装置2に格納され
たマスクファイル5の更新を行う装置であり、データ部
6の更新を行った後に、必要な索引部の更新を一括して
行う非同期の索引更新を実施する。また、更新データフ
ァイル4に格納された更新データに含まれる複数の索引
項目について抽出したキー値を含む更新情報を、各索引
部毎の索引の更新に適した順序に一括してソート可能な
形式の文字列から成る索引更新情報に変換する機能、こ
の機能で生成された索引更新情報を作業ファイル3に出
力する機能1作業ファイル3に格納された索引更新情報
を一括してソートする機能等を実現する為に、第1図の
流れ図に示す如き処理30−312を実行する。
The processing device 1 in FIG. 2 is a device that updates the mask file 5 stored in the storage device 2 based on a series of update data stored in the update data file 4, and updates the data section 6. Later, an asynchronous index update is performed to update the necessary index sections all at once. In addition, the update information including the key values extracted for multiple index items included in the update data stored in the update data file 4 can be sorted all at once in an order suitable for updating the index for each index section. function to convert index update information consisting of character strings, function to output index update information generated by this function to work file 3, function to collectively sort index update information stored in work file 3, etc. To achieve this, processes 30-312 as shown in the flowchart of FIG. 1 are executed.

次に、本実施例の動作を、第3図に示すデータ形式のデ
ータ部6を持つマスクファイル5に対して第4図に示す
追加データを追加する処理を例にし、第1図の流れ図に
沿って説明する。
Next, we will explain the operation of this embodiment by taking as an example the process of adding additional data shown in FIG. 4 to the mask file 5 having the data section 6 in the data format shown in FIG. I will explain along.

更新データファイル4による記憶装置2中のマスクファ
イル5の更新が指示されると、処理装置1は第1図に示
す処理を開始する。
When instructed to update the mask file 5 in the storage device 2 with the update data file 4, the processing device 1 starts the process shown in FIG.

(0)初期設定処理SO ソート用の作業ファイル3の生成、マスクファイル5の
オープン等、必要な動作環境の準備を行い、+ (+ 
;内部変数)−1とする。
(0) Initial setting processing SO Prepares the necessary operating environment such as generating work file 3 for sorting, opening mask file 5, etc.
; internal variable) -1.

(1)更新データ取り込み処理Sl 更新データファイル4の先頭より追加データD1を取り
込み、マスクファイル5内で一意なデータ管理番号Rx
を割り付ける。
(1) Update data import processing Sl Import additional data D1 from the beginning of the update data file 4, and use a data management number Rx that is unique within the mask file 5.
Assign.

(2)データ部更新処理S2 追加データDiをマスクファイル5のデータ部6へ挿入
する等の処理を行い、j(j;内部変数)−1とする。
(2) Data section update processing S2 Processes such as inserting additional data Di into the data section 6 of the mask file 5 are performed, and j (j; internal variable) is set to -1.

(3)索引更新情報抽出処理S3 追加データDi中のj番目の索引項目fjに対応する更
新情報diJを抽出する。
(3) Index update information extraction process S3 Update information diJ corresponding to the j-th index item fj in the additional data Di is extracted.

(4)項目属性判定処理S4 索引項目fjの定義属性を判定し、文字型なら文字型キ
ー値変換処理S5.アンパック形式10進数ならアンパ
ック形式10進数キー値変換処理S6.パック形式10
進数ならバンク形式10進数キー値変換処理S7へ制御
を渡す。
(4) Item attribute determination process S4 Determine the definition attribute of index item fj, and if it is character type, character type key value conversion process S5. If it is an unpacked decimal number, unpacked decimal key value conversion processing S6. Pack format 10
If it is a base number, control is passed to bank format decimal number key value conversion processing S7.

(5)文字型キー値変換処理S5 更新情報d1jのキー値はそのままにし、項目識別CI
、データ管理番号Rxおよび追加/削除識別として「追
加」に相当する値「1」を付加して索引更新情報kij
を作成し、索引更新情報出力処理S8へ制御を渡す。
(5) Character type key value conversion processing S5 Leave the key value of update information d1j as is, and change the item identification CI
, the index update information kij is added with the data management number Rx and the value "1" corresponding to "addition" as the addition/deletion identification.
is created, and control is passed to index update information output processing S8.

第5図(a)は、第4図の追加データDiの索引項目f
1に対応する更新情報dilのキー値ABCDEFGH
ΔΔΔΔから、索引更新情報kllを作成した例を示す
FIG. 5(a) shows the index item f of the additional data Di in FIG.
Key value ABCDEFGH of update information dil corresponding to 1
An example in which index update information kll is created from ΔΔΔΔ is shown.

(6)アンパック形式10進数キー値変換処理S更新情
報diJのキー値をバック化し、文字列としてのキー値
の大小関係を維持するため項目定義上取り得る最大値を
加え、項目識別Cjおよびデータ管理番号Rxを付加し
、さらに追加/削除識別として「追加」に相当する値r
L」を付加して索引更新情報kijを作成し、索引更新
情報出力処理S8へ制御を渡す。
(6) Unpacked decimal key value conversion processing S Back up the key value of update information diJ, add the maximum value that can be taken based on the item definition to maintain the magnitude relationship of the key value as a character string, and convert the item identification Cj and data A management number Rx is added, and a value r corresponding to "addition" is added as an addition/deletion identification.
L" is added to create index update information kij, and control is passed to index update information output processing S8.

第5図(ロ)、(C)は、第4図の追加データD+の索
引項目f2.[3に対応する更新情報di2.di3の
キー値1234567、−9876をバック化し、項目
定義上取り得る最大値9999999999.9999
999を加えて10001234566.999012
3として索引更新情報ki2.に+3を作成した例を示
す。
FIGS. 5(B) and 5(C) show the index item f2. of the additional data D+ in FIG. [Update information corresponding to 3 di2. Convert di3 key values 1234567 and -9876 to the maximum value 9999999999.9999 that can be taken according to the item definition.
Add 999 to 10001234566.999012
3 as index update information ki2. An example of creating +3 is shown below.

(7)パック形式10進数キー値変換処理87更新情報
dijのキー値に文字列としてのキー値の大小関係を維
持するため項目定義上取り得る最大値を加え、項目識別
Cjおよびデータ管理番号Rxを付加し、更に追加/削
除識別として「追加」に相当する値「1」を付加して索
引更新情報kiJを作成し、索引更新情報出力処理S8
へ制御を渡す。
(7) Packed format decimal key value conversion processing 87 Add the maximum value possible in the item definition to the key value of the update information dij to maintain the magnitude relationship of the key value as a character string, and add the item identification Cj and data management number Rx is added, and a value "1" corresponding to "addition" is added as an addition/deletion identification to create index update information kiJ, and index update information output processing S8
Transfer control to

第5図(ロ)、(e)は、第4図の追加データDiの索
引項目f4.f5に対応する更新情報di4.di5の
キー値111111.−22222に項目定義上取り得
る最大値99999999.99999999999を
加えて100111110゜99999977777と
して索引更新情報k14、ki5を作成した例を示す。
FIGS. 5(b) and 5(e) show the index item f4. of the additional data Di in FIG. Update information di4. corresponding to f5. di5 key value 111111. An example of creating index update information k14 and ki5 as 100111110°99999977777 by adding the maximum value 99999999.99999999999 that can be taken based on the item definition to -22222 is shown.

なお、文字型キー値変換処理S5.アンパック形式10
進数キー値変換処理36.パック形式10進数キー値変
換処理S7で作成する索引更新情報ktjのキー値は、
その長さを全索引項目中の最大のものに合わせ右空白詰
めとする。
Note that character type key value conversion processing S5. Unpacked format 10
Decimal key value conversion process 36. The key value of the index update information ktj created in packed format decimal key value conversion process S7 is
Its length is adjusted to the maximum of all index items, padded with spaces on the right.

(8)索引更新情報出力処理S8 索引更新情報kiJをソート用の作業ファイル3に出力
する。
(8) Index update information output processing S8 The index update information kiJ is output to the work file 3 for sorting.

(9)項目終了判定処理S9 jを追加データ中の最後の索引項目番号と比較し、jが
それより小さければ未処理の索引項目が残っているので
jに1を加算して索引更新情報抽出処理S3へ制御を渡
し、jがそれ以上の値であれば全項目終了として更新デ
ータ終了判定処理S10に制御を渡す。
(9) Item end determination processing S9 Compare j with the last index item number in the additional data, and if j is smaller than that, there are unprocessed index items remaining, so add 1 to j and extract index update information Control is passed to process S3, and if j is a value greater than that value, all items are considered to have ended and control is passed to update data end determination process S10.

(10)更新データ終了判定処理5IO1を更新データ
ファイル4に含まれる更新データの数(今の場合追加デ
ータ数)と比較し、Iがそれより小さければ未処理の追
加データが残りでいるのでlに1を加算して更新データ
取り込み処理Slへ制御を渡し、iがそれ以上の値であ
れば全追加データの終了として一括ソート処理Sllに
制御を渡す。
(10) Update data end determination process 5 Compare IO1 with the number of update data (in this case, the number of additional data) included in update data file 4, and if I is smaller than that, there is unprocessed additional data remaining. 1 is added to , and control is passed to the updated data importing process Sl. If i is a value greater than that, control is passed to the batch sorting process Sll as the end of all additional data.

(11)−括ソート処理Sll ソート用の作業ファイル3に出力された全て°の索引更
新情報を、項目識別を第1キー、キー値を第2キー、デ
ータ管理番号を第3キー、追加/削除識別を第4キーと
して一括してソートする。
(11) - Batch sort processing Sll Add/add all the index update information output to the work file 3 for sorting, using the item identification as the first key, the key value as the second key, and the data management number as the third key. Sort all at once using the deletion identification as the fourth key.

(12)索引更新情報S12 作業ファイル3から、−括ソート処理Sllによって索
引項目毎にキー順に並べられた索引更新情報を順次に入
力し、マスクファイル5の該当する索引部へのキー挿入
を実行して各索引の更新を行う、これで、一連の更新が
完了する。
(12) Index update information S12 From the work file 3, sequentially input the index update information arranged in key order for each index item by the -batch sort processing Sll, and execute key insertion into the corresponding index section of the mask file 5. This completes the series of updates.

以上、データの追加処理を例にして本実施例の動作を説
明したが、データの削除処理の場合は、追加/削除識別
として「削除」を示す識別値2が付加された索引更新情
報kjが作成される。また、データの変更処理の場合は
、追加/削除識別として「削除」を示す識別値2が付加
された旧データに関する索引更新情報kijが作成され
ると共に、追加/削除識別として「追加」を示す識別値
lが付加された索引更新情報kljが付加された新デー
タに関する索引更新情報kiJが作成されるものである
The operation of this embodiment has been explained above using data addition processing as an example. However, in the case of data deletion processing, index update information kj to which identification value 2 indicating "deletion" is added as addition/deletion identification is Created. In addition, in the case of data change processing, index update information kij is created regarding the old data to which identification value 2 indicating "deletion" is added as the addition/deletion identification, and index update information kij is created that indicates "addition" as the addition/deletion identification. Index update information kiJ regarding new data to which index update information klj to which identification value l has been added is created.

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

以上説明したように、本発明の索引更新方式においては
、各更新データに含まれる複数の索引項目について抽出
したキー値を含む更新情報を各索引部毎の索引の更新に
適した順序に一括してソート可能な形式の文字列から成
る索引更新情報に変換して中間ファイルに格納し、その
中間ファイルに格納された索引更新情報を一括してソー
トすることにより各索引部毎の更新に適した順序で並べ
られた索引更新情報を得るようにしたので、従来各索引
項目毎に必要であった中間ファイルを1本化でき、索引
更新情報を中間ファイルに出力する際のオーバーヘッド
を削減することが可能となる。
As explained above, in the index update method of the present invention, update information including key values extracted for multiple index items included in each update data is batched in an order suitable for updating the index for each index section. The index update information is converted into index update information consisting of character strings in a sortable format and stored in an intermediate file, and the index update information stored in the intermediate file is sorted all at once, making it suitable for updating each index section. Since index update information is obtained in order, the intermediate files that were conventionally required for each index item can be reduced to one, and the overhead when outputting index update information to intermediate files can be reduced. It becomes possible.

従って、索引の更新処理時間を短縮することができる。Therefore, the index update processing time can be shortened.

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

第1図は本発明の実施例における索引更新にかかる処理
の流れ図、 第2図は本発明の索引更新方式を適用した情報処理シス
テムの一例を示す要部ブロック図、第3図はマスクファ
イル5のデータ部6におけるデータの形式例を示す図、 第4図は追加データの形式例を示す図および、第5図は
索引更新情報の変換形式例を示す図である。 図において、 1・・・処理装置 2・・・ランダムアクセス可能な記憶装置3・・・ソー
ト用の作業ファイル(中間ファイル)4・・・更新デー
タファイル 5・・・マスクファイル 6・・・データ部 7−1〜?−n・・・索引部 本発明の実施例における索引更新にかかる処理第1図(
1)
FIG. 1 is a flow chart of processing related to index update in an embodiment of the present invention, FIG. 2 is a block diagram of main parts showing an example of an information processing system to which the index update method of the present invention is applied, and FIG. 3 is a mask file 5 FIG. 4 is a diagram showing an example of the format of additional data, and FIG. 5 is a diagram showing an example of the conversion format of index update information. In the figure, 1... Processing device 2... Randomly accessible storage device 3... Sorting work file (intermediate file) 4... Update data file 5... Mask file 6... Data Part 7-1~? -n...Index section Processing related to index update in the embodiment of the present invention FIG. 1 (
1)

Claims (1)

【特許請求の範囲】 データ部と該データ部に格納されたデータの索引項目の
キー値および該当するデータの所在情報を含む索引デー
タを索引項目別に格納する複数の索引部とを有するファ
イルをランダムアクセス可能な記憶装置に格納し、一連
の更新データに基づいて前記データ部の更新を行った後
に、今回の一連の更新にかかる索引部の更新を一括して
行う情報処理システムにおける索引更新方式において、
各更新データに含まれる複数の索引項目について抽出し
たキー値を含む更新情報を、各索引部毎の索引の更新に
適した順序に一括してソート可能な形式の文字列から成
る索引更新情報に変換する変換手段と、 該変換手段で生成された索引更新情報を格納する中間フ
ァイルとを備え、 該中間ファイルに格納された索引更新情報を前記順序に
一括してソートした後、そのソート後の内容に従って前
記索引部の更新を行うことを特徴とする索引更新方式。
[Claims] A file having a data section and a plurality of index sections storing index data including key values of index items of data stored in the data section and location information of the corresponding data for each index item is randomly generated. In an index update method in an information processing system that stores the data in an accessible storage device and updates the data section based on a series of update data, and then updates the index section related to the current series of updates at once. ,
Update information including key values extracted for multiple index items included in each update data is converted into index update information consisting of strings in a format that can be sorted all at once in an order suitable for updating the index for each index section. comprising a converting means for converting, and an intermediate file for storing the index update information generated by the converting means, and after sorting the index update information stored in the intermediate file in the above order at once, An index update method characterized in that the index section is updated according to contents.
JP1011057A 1989-01-20 1989-01-20 Index update method Expired - Lifetime JPH0833899B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1011057A JPH0833899B2 (en) 1989-01-20 1989-01-20 Index update method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1011057A JPH0833899B2 (en) 1989-01-20 1989-01-20 Index update method

Publications (2)

Publication Number Publication Date
JPH02190971A true JPH02190971A (en) 1990-07-26
JPH0833899B2 JPH0833899B2 (en) 1996-03-29

Family

ID=11767389

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1011057A Expired - Lifetime JPH0833899B2 (en) 1989-01-20 1989-01-20 Index update method

Country Status (1)

Country Link
JP (1) JPH0833899B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0652222A (en) * 1992-07-30 1994-02-25 Matsushita Electric Ind Co Ltd Information retrieval processor
JPH08235217A (en) * 1995-02-24 1996-09-13 Pioneer Electron Corp Data retrieval and output device and karaoke device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62287350A (en) * 1986-06-06 1987-12-14 Nec Corp Index integrally updating system
JPS6413646A (en) * 1987-07-07 1989-01-18 Nec Corp Index maintenance system for file with plural indexes

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62287350A (en) * 1986-06-06 1987-12-14 Nec Corp Index integrally updating system
JPS6413646A (en) * 1987-07-07 1989-01-18 Nec Corp Index maintenance system for file with plural indexes

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0652222A (en) * 1992-07-30 1994-02-25 Matsushita Electric Ind Co Ltd Information retrieval processor
JPH08235217A (en) * 1995-02-24 1996-09-13 Pioneer Electron Corp Data retrieval and output device and karaoke device

Also Published As

Publication number Publication date
JPH0833899B2 (en) 1996-03-29

Similar Documents

Publication Publication Date Title
US4908759A (en) Hierarchical database conversion with conditional write
EP0483424A1 (en) Key hashing in data processors
JPH06222903A (en) Method and means for provision of static dictionary structure for unfolding of compressed data by compressing character data
JPS63113727A (en) Method and apparatus for determining data base address
JP2888188B2 (en) Information retrieval device
JPH02190971A (en) Index updating system
JP3647940B2 (en) Data management device
JPH11232283A (en) Information retrieving method
JPH02297291A (en) Image data input/output system
JPS642970B2 (en)
EP3683698A1 (en) Data storage method and system for datasets
JPH0352068A (en) Logical operation system
JPS62287350A (en) Index integrally updating system
JPH1115845A (en) Information retrieving method and device and recording medium storing information retrieving program
JPH06162096A (en) Record retrieval method
JPH05181719A (en) Variable length data storage and reference system
JPH04250568A (en) Record retrieval device
JP2021009528A (en) Database and information processing system
JPH0451362A (en) Index retrieval processing system
JPH02273868A (en) Character-string data retrieving system
JPH05165891A (en) Data registration/retrieval system of data base
JPS61275934A (en) Disc sort system
JPH0145648B2 (en)
SYSTEM DEVELOPMENT CORP SANTA MONICA CA JOVIAL COMPILER. VOLUME V. DESCRIPTION OF SYSTEM-DEPENDENT PROCEDURES
JPH0969113A (en) Document management system