JPH0736942A - Generating and updating process method for index data - Google Patents

Generating and updating process method for index data

Info

Publication number
JPH0736942A
JPH0736942A JP5224943A JP22494393A JPH0736942A JP H0736942 A JPH0736942 A JP H0736942A JP 5224943 A JP5224943 A JP 5224943A JP 22494393 A JP22494393 A JP 22494393A JP H0736942 A JPH0736942 A JP H0736942A
Authority
JP
Japan
Prior art keywords
index
data
storage device
hard disk
disk
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
JP5224943A
Other languages
Japanese (ja)
Inventor
Toshiya Fujioka
俊也 藤岡
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.)
Sord Computer Corp
Original Assignee
Sord Computer 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 Sord Computer Corp filed Critical Sord Computer Corp
Priority to JP5224943A priority Critical patent/JPH0736942A/en
Publication of JPH0736942A publication Critical patent/JPH0736942A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To provide the generating and updating process method for index data which speeds up the data processing of a computer, etc. CONSTITUTION:An index 8 stored on a hard disk 4 as a 1st storage device is copied to a RAM disk 3 as a 2nd storage device where high-speed processing is enabled, and the copied index 8 on the RAM disk is updated; after the updating process, the index 8 on the hard disk 4 before the update is deleted and the updated index 8 on the RAM disk is copied to the hard disk 4, thus performing the updating process for the index 8.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータ等におけ
るインデックスデータの作成及び更新に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to creating and updating index data in a computer or the like.

【従来の技術】従来、コンピュータ等においては、種々
なる業務分野のデータが処理されている。処理されるデ
ータは、フロッピーディスクや大量の記憶容量を有する
ハードディスク等の周辺記憶装置に記憶される。これら
周辺記憶装置に記憶された文字や数値等のデータの集ま
りについて、情報の検査を行うために高速検索用のイン
デックスが作成され、且つインデックスデータの更新が
行われている。
2. Description of the Related Art Conventionally, data in various business fields have been processed in computers and the like. The data to be processed is stored in a peripheral storage device such as a floppy disk or a hard disk having a large storage capacity. For a collection of data such as characters and numerical values stored in these peripheral storage devices, an index for high-speed search is created to check the information, and the index data is updated.

【0002】コンピュータの周辺記憶装置として、例え
ばハードディスクが用いられている場合の従来のインデ
ックスの作成及び更新処理について説明する。先ず新規
にインデックスを作成する場合は、ハードディスクに全
くキー・データを含まないインデックスを作成する。ハ
ードディスクのデータの集まりから検索用のキー・デー
タとこのキー・データが格納されている位置を示すデー
タ読み出して、先に作成したインデックスに挿入してイ
ンデックスデータを作成する。インデックスデータを更
新する場合は、ハードディスクのインデックスにおい
て、古いキー・データとこのキー・データが格納されて
いる位置を示すデータを削除し、更新する新しいキー・
データとその格納位置を示すデータをインデックスに挿
入してインデックスデータを更新する。
A conventional index creating and updating process when a hard disk is used as a peripheral storage device of a computer will be described. First, when a new index is created, an index containing no key data is created on the hard disk. The key data for retrieval and the data indicating the position where this key data is stored are read from the collection of data on the hard disk and inserted into the previously created index to create index data. When updating the index data, delete the old key data and the data indicating the location where this key data is stored in the index of the hard disk, and then update the new key data.
The index data is updated by inserting the data and the data indicating the storage location into the index.

【0003】[0003]

【発明が解決しようとする課題】このような従来のイン
デックスの作成及び更新処理は、読み書きに時間のかか
るフロッピーディスクまたはハードディスク等の周辺記
憶装置で行われているので、インデックスの作成や更新
のデータ量が多くなると、その処理に長い時間がかかっ
ていた。本発明の目的は、コンピュータ等におけるデー
タ処理において、高速に行うようにしたインデックスデ
ータの作成・更新処理方法を提供することにある。
Since such conventional index creation and update processing is performed in a peripheral storage device such as a floppy disk or a hard disk, which takes time to read and write, data for index creation and update is created. The larger the amount, the longer the process took. An object of the present invention is to provide a method for creating / updating index data that is performed at high speed in data processing in a computer or the like.

【0004】[0004]

【課題を解決するための手段】本発明は、新規にインデ
ックスを作成する場合は、フロッピーディスクまたはハ
ードディスク等の第1の記憶装置より高速処理が可能な
RAMディスク等の第2の記憶装置にキー・データを含
まないインデックスを作成し、第1の記憶装置に記憶さ
れているデータの集まりからキー・データとその格納位
置を示すデータを読み出し、第1の記憶装置から読み出
されたキー・データと格納位置を示すデータを第2の記
憶装置に作成したインデックスに挿入し、キー・データ
と格納位置を示すデータが挿入された第2の記憶装置の
インデックスを第1の記憶装置に複写してインデックス
データを作成し、インデックスデータを更新する場合
は、第1の記憶装置に記憶されているインデックスを、
第1の記憶装置より高速な処理が可能な第2の記憶装置
に複写し、第2の記憶装置に複写されたインデックスに
ついて更新処理し、第2の記憶装置のインデックスデー
タの更新処理後は、第1の記憶装置に記憶されている更
新前のインデックスを削除し、第2の記憶装置に記憶さ
れている更新処理したインデックスを第1の記憶装置に
複写して、第1の記憶装置のインデックスデータを更新
する。
According to the present invention, when a new index is created, a key is stored in a second storage device such as a RAM disk which can be processed at a higher speed than the first storage device such as a floppy disk or a hard disk. Key data read from the first storage device by creating an index that does not include data, reading the key data and the data indicating the storage position from the collection of data stored in the first storage device And the data indicating the storage position are inserted into the index created in the second storage device, and the index of the second storage device into which the key data and the data indicating the storage position are inserted is copied to the first storage device. When creating the index data and updating the index data, the index stored in the first storage device is
After copying to the second storage device capable of processing faster than the first storage device, updating the index copied to the second storage device, and updating the index data of the second storage device, The index before update stored in the first storage device is deleted, the updated index stored in the second storage device is copied to the first storage device, and the index of the first storage device is deleted. Update the data.

【0005】[0005]

【作用】ハードディスク等に記憶されているデータおよ
びインデックスについて、インデックスデータの更新等
を行うときは、高速処理が可能な記憶装置でインデック
スデータの処理が行われる。
With respect to the data and index stored in the hard disk or the like, when updating the index data or the like, the index data is processed by the storage device capable of high speed processing.

【実施例】以下図面を参照して、本発明の実施例を説明
する。
Embodiments of the present invention will be described below with reference to the drawings.

【0006】図1は本発明を用いたコンピュータの構成
を示すブロック図で、1はCPU、2は主記憶装置、3
はRAMディスク、4はハードディスク、5はフロッピ
ーディスクのドライブ装置、6はフロッピーディスクで
ある。この実施例では、RAMディスク3はディスクの
論理ドライブの一つに専用のRAMを割り当てて構成さ
れ、図2の説明図に示すようにRAMディスク3は主記
憶装置2の一部として使用し、データが記憶される外部
記憶装置の周辺記憶装置としてハードディスク4を用い
て、インデックスの作成・更新する場合を説明する。
FIG. 1 is a block diagram showing the configuration of a computer using the present invention. 1 is a CPU, 2 is a main storage device, and 3 is a memory device.
Is a RAM disk, 4 is a hard disk, 5 is a floppy disk drive device, and 6 is a floppy disk. In this embodiment, the RAM disk 3 is configured by allocating a dedicated RAM to one of the logical drives of the disk, and the RAM disk 3 is used as a part of the main memory 2 as shown in the explanatory view of FIG. A case will be described in which the hard disk 4 is used as a peripheral storage device of an external storage device in which data is stored and an index is created / updated.

【0007】図2に示すように主記憶装置2には、イン
デックスの作成・更新を行う処理プログラム(以下、処
理プログラムと称する)が、例えばハードディスク4か
らロードされる。周辺記憶装置のハードディスク4には
データの集まり7とインデックス8が記憶されている。
As shown in FIG. 2, a processing program for creating / updating an index (hereinafter referred to as a processing program) is loaded from the hard disk 4 into the main storage device 2. The hard disk 4 of the peripheral storage device stores a data collection 7 and an index 8.

【0008】CPU1はキーボード(図示せず)等から
の指令により処理プログラムを実行することにより、イ
ンデックスの作成・更新を行う。処理プログラムの実行
によって新規にインデックスを作成する場合は、CPU
1はRAMディスク3にキー・データ等を含まないイン
デックス8を作成し、次にハードディスク4のデータの
集まり7からキー・データと格納位置を示すデータを読
み出し、キー・データと格納位置を示すデータをRAM
ディスク3に作成したインデックス8に挿入、即ち書き
込む。次にCPU1はデータが挿入されたインデックス
8をハードディスク4に複写し、不要になったRAMデ
ィスク3のインデックス8を削除する。
The CPU 1 executes a processing program in accordance with a command from a keyboard (not shown) or the like to create / update an index. If a new index is created by executing the processing program, the CPU
Reference numeral 1 is an index 8 that does not include key data or the like in the RAM disk 3, and then reads the key data and the data indicating the storage position from the data collection 7 on the hard disk 4, and the key data and the data indicating the storage position. RAM
It is inserted, that is, written in the index 8 created on the disk 3. Next, the CPU 1 copies the index 8 in which the data has been inserted into the hard disk 4 and deletes the index 8 of the RAM disk 3 that is no longer needed.

【0009】更新の場合も同様に、CPU1はキーボー
ド等からの指令により処理プログラムを実行することに
より、先ずCPU1は、ハードディスク4のインデック
ス8をRAMディスク3に複写し、RAMディスク3に
おけるインデックス8を更新処理する。次にCPU1
は、ハードディスク4の更新前のインデックス8を削除
し、RAMディスク3で更新処理したインデックス8を
ハードディスク4に複写して、インデックスデータの更
新処理を行う。
Similarly, in the case of updating, the CPU 1 executes the processing program in response to a command from the keyboard or the like, so that the CPU 1 first copies the index 8 of the hard disk 4 to the RAM disk 3 and then the index 8 in the RAM disk 3 is copied. Update process. Next CPU1
Deletes the index 8 on the hard disk 4 before updating, copies the index 8 updated on the RAM disk 3 to the hard disk 4, and updates the index data.

【0010】次に、本発明の動作を図5、図6に示すフ
ローチャート等を用いて説明する。ハードディスク4に
データが入力されてデータの集まり7が記憶され、新規
にインデックスを作成する場合は、図5に示すように先
ずRAMディスク4にキー・データ等が含まない初期イ
ンデックス8が作成される(ステップS1)。ステップ
S2ではハードディスク4のデータの集まり7からキー
・データとその格納位置を示すデータが読み出され、ス
テップS2でハードディスク4から読み出されたキー・
データと格納位置を示すデータがRAMディスク3に作
成したインデックス8に挿入、即ち書き込まれる。
Next, the operation of the present invention will be described with reference to the flow charts shown in FIGS. When data is input to the hard disk 4 to store the data collection 7 and a new index is created, an initial index 8 containing no key data or the like is first created in the RAM disk 4 as shown in FIG. (Step S1). In step S2, the key data and the data indicating the storage position thereof are read from the data collection 7 of the hard disk 4, and the key data read from the hard disk 4 in step S2.
The data and the data indicating the storage position are inserted, that is, written in the index 8 created in the RAM disk 3.

【0011】次にステップS4では、データの集まり7
において最後のデータまでキー・データと格納位置を示
すデータの読み出しが行われたか否かが判断され、途中
までの場合はステップS2にもどり、データの集まり7
からキー・データと格納位置を示すデータの読み出しが
行われる。データの集まり7からキー・データと格納位
置を示すデータの読み出しが終了すると、ステップS5
に進み、RAMディスク3のインデックス8がハードデ
ィスク4に複写され、ステップS6でRAMディスク3
の不要になったインデックス8が削除される。
Next, in step S4, a data collection 7
It is determined whether or not the key data and the data indicating the storage position have been read up to the last data in step S2, and if it is in the middle, the process returns to step S2 to collect the data 7
The key data and the data indicating the storage position are read from. When the reading of the key data and the data indicating the storage location from the data collection 7 is completed, step S5
And the index 8 of the RAM disk 3 is copied to the hard disk 4, and in step S6 the RAM disk 3
The index 8 that is no longer needed is deleted.

【0012】このように新規にインデックスを作成する
場合は、先ず、RAMディスク3にインデックスが作成
され、次に、RAMディスク3において作成されたイン
デックス8をハードディスク4に複写して行うインデッ
クス8の作成処理課程を、図3の説明図に示す。次に図
4の説明図と及び図6のフローチャートに示すように、
ハードディスク4のインデックス8を更新処理をする場
合の動作を説明する。インデックスデータの更新の具体
的な処理動作は、インデックス8において更新前の古い
キー・データを削除し、その後に新しいキー・データの
挿入、すなわち書き込みによって行われる。
When a new index is created in this way, first the index is created in the RAM disk 3, and then the index 8 created in the RAM disk 3 is copied to the hard disk 4 to create the index 8. The processing course is shown in the explanatory diagram of FIG. Next, as shown in the explanatory view of FIG. 4 and the flowchart of FIG.
The operation when updating the index 8 of the hard disk 4 will be described. The specific processing operation of updating the index data is performed by deleting the old key data before updating in the index 8 and then inserting or writing new key data.

【0013】ハードディスク4のインデックス8を更新
する場合は、先ず、ハードディスク4のインデックス8
をRAMディスク3に複写される(ステップS1)。次
に、ステップS2では削除するデータから削除するキー
・データとその格納位置を示すデータが読み出され、ス
テップS3に進む。ステップS3では、ハードディスク
4から読み出されたキー・データとその格納位置を示す
データに基づいて、RAMディスク3に複写したインデ
ックス8おいて削除するキー・データが検索されて削除
される。高速処理が可能なRAMディスク3において削
除するキー・データが検索・削除されるので高速に処理
できる。
When updating the index 8 of the hard disk 4, first, the index 8 of the hard disk 4 is updated.
Is copied to the RAM disk 3 (step S1). Next, in step S2, the key data to be deleted and the data indicating the storage position thereof are read out from the data to be deleted, and the process proceeds to step S3. In step S3, the key data to be deleted is searched and deleted in the index 8 copied to the RAM disk 3, based on the key data read from the hard disk 4 and the data indicating the storage position thereof. Since the key data to be deleted is searched and deleted in the RAM disk 3 which can be processed at high speed, the processing can be performed at high speed.

【0014】ステップS4では、削除するデータが最後
のデータか否かが判断され、途中のデータまでのときは
ステップS2に戻る。削除するデータが最後のデータの
場合はステップS5に進む。 ステップS5では、追加
するデータからキー・データとその格納位置を示すデー
タが読み出され、ステップS6に進む。ステップS6で
は、追加するデータから読み出されたキー・データとそ
の格納位置を示すデータに基づいて、RAMディスク3
に複写したインデックス8において追加するキー・デー
タが検索されて追加される。高速処理が可能なRAMデ
ィスク3において追加するキー・データが検索・追加さ
れるので、高速に処理できる。
In step S4, it is judged whether or not the data to be deleted is the last data, and when the data is in the middle, the process returns to step S2. If the data to be deleted is the last data, the process proceeds to step S5. In step S5, the key data and the data indicating the storage position thereof are read from the data to be added, and the process proceeds to step S6. In step S6, the RAM disk 3 is read based on the key data read from the data to be added and the data indicating the storage position thereof.
The key data to be added is searched for and added in the index 8 copied to the table. Since the key data to be added is searched and added in the RAM disk 3 capable of high speed processing, high speed processing is possible.

【0015】ステップS7では、追加するデータが最後
のデータか否かが判断され、途中のデータまでのときは
ステップS5に戻り、追加するキー・データとその格納
位置を示すデータが読み出され、ステップS6に進む。
追加するデータが最後のデータの場合はステップS8に
進む。ステップS8では、ハードディスク4の更新前の
インデックス8(図4では、旧インデックスと表示)を
削除し、ステップS9に進む。ステップS9ではRAM
ディスク3において更新したインデックス8をハードデ
ィスク4へ複写し、ステップS10で不要になったRA
Mディスク3のインデックス8を削除する。
In step S7, it is determined whether or not the data to be added is the last data, and when the data is in the middle, the process returns to step S5, and the key data to be added and the data indicating the storage position thereof are read out. Go to step S6.
If the data to be added is the last data, the process proceeds to step S8. In step S8, the pre-update index 8 (displayed as the old index in FIG. 4) of the hard disk 4 is deleted, and the process proceeds to step S9. RAM in step S9
The index 8 updated in the disk 3 is copied to the hard disk 4, and RA is no longer needed in step S10.
The index 8 of the M disk 3 is deleted.

【0016】このようにして、ハードディスク4のイン
デックス8の更新処理が終了する。
Thus, the updating process of the index 8 on the hard disk 4 is completed.

【発明の効果】以上のように本発明では、処理速度の遅
いフロッピーディスクやハードディスク等に記憶されて
いるデータについて、高速検索用のインデックスを作成
及びインデックスデータを更新する場合は、高速処理が
可能なRAMディスクにおいてインデックスデータの作
成及び更新処理を行うので、インデックスデータの作成
及び更新は高速に行うことができる。
As described above, according to the present invention, when data stored in a floppy disk, a hard disk or the like having a slow processing speed is created, high speed processing is possible when an index for high speed search is created and the index data is updated. Since the index data is created and updated in a simple RAM disk, the index data can be created and updated at high speed.

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

【図1】本発明を用いた実施例の構成を示すブロック
図。
FIG. 1 is a block diagram showing a configuration of an embodiment using the present invention.

【図2】同実施例に係わる説明図。FIG. 2 is an explanatory diagram according to the embodiment.

【図3】同実施例に係わる説明図。FIG. 3 is an explanatory diagram according to the embodiment.

【図4】同実施例に係わる説明図。FIG. 4 is an explanatory diagram according to the embodiment.

【図5】同実施例の動作を示すフローチャート。FIG. 5 is a flowchart showing the operation of the embodiment.

【図6】同実施例の動作を示すフローチャート。FIG. 6 is a flowchart showing the operation of the embodiment.

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

1…CPU、2…主記憶装置、3…RAMディスク、4
…ハードディスク 5…フロッピーディスク、8…インデックス。
1 ... CPU, 2 ... Main storage device, 3 ... RAM disk, 4
… Hard disk 5… Floppy disk, 8… Index.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 データの集まりが記憶された第1の記憶
装置についてインデックスデータを作成する方法であっ
て、第1の記憶装置より高速処理が可能な第2の記憶装
置にキー・データを含まないインデックスを作成し、第
1の記憶装置に記憶されているデータの集まりからキー
・データとその格納位置を示すデータを読み出し、第1
の記憶装置から読み出されたキー・データと格納位置を
示すデータを第2の記憶装置に作成したインデックスに
挿入し、キー・データと格納位置を示すデータが挿入さ
れた第2の記憶装置のインデックスを第1の記憶装置に
複写してインデックスデータを作成する方法。
1. A method of creating index data for a first storage device in which a collection of data is stored, wherein key data is included in a second storage device that can be processed faster than the first storage device. Creates a non-existing index, reads out key data and data indicating the storage position from the collection of data stored in the first storage device,
Of the second storage device in which the key data read out from the storage device and the data indicating the storage position are inserted into the index created in the second storage device, and the key data and the data indicating the storage position are inserted. A method of creating index data by copying the index to the first storage device.
【請求項2】 第1の記憶装置に記憶されているインデ
ックスを、第1の記憶装置より高速な処理が可能な第2
の記憶装置に複写し、第2の記憶装置に複写されたイン
デックスについて更新処理し、第2の記憶装置のインデ
ックスデータの更新処理後は、第1の記憶装置に記憶さ
れている更新前のインデックスを削除し、第2の記憶装
置に記憶されている更新処理したインデックスを第1の
記憶装置に複写して、第1の記憶装置のインデックスデ
ータを更新する方法。
2. A second storage device capable of processing an index stored in the first storage device at a higher speed than the first storage device.
Of the index stored in the first storage device after updating the index data copied to the second storage device and updating the index data of the second storage device. Is deleted, the updated index stored in the second storage device is copied to the first storage device, and the index data in the first storage device is updated.
JP5224943A 1993-07-22 1993-07-22 Generating and updating process method for index data Withdrawn JPH0736942A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5224943A JPH0736942A (en) 1993-07-22 1993-07-22 Generating and updating process method for index data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5224943A JPH0736942A (en) 1993-07-22 1993-07-22 Generating and updating process method for index data

Publications (1)

Publication Number Publication Date
JPH0736942A true JPH0736942A (en) 1995-02-07

Family

ID=16821629

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5224943A Withdrawn JPH0736942A (en) 1993-07-22 1993-07-22 Generating and updating process method for index data

Country Status (1)

Country Link
JP (1) JPH0736942A (en)

Similar Documents

Publication Publication Date Title
JP3178475B2 (en) Data processing device
JP3554459B2 (en) Text data registration search method
EP0487331B1 (en) Directory management system
JP2002055995A (en) Method and device for information processing
JP6156517B2 (en) Write information storage device, method, and program
US5857198A (en) Incremental change processing apparatus for presented objects
JPH01191270A (en) Graphic editor
JP2925042B2 (en) Information link generation method
JPH0736942A (en) Generating and updating process method for index data
JPH0322046A (en) Control method for file using draw type storage medium
JPH11120044A (en) Data processor, data processing method, data processing system and recording medium
JP3169596B2 (en) Database management device
JP2822869B2 (en) Library file management device
JPH06103128A (en) Storage device
JP3016255B2 (en) Database management system
JP3020213B2 (en) Document processing device
JPS60225938A (en) Information retrieving system
JPH08328929A (en) Database split management system
JPH04165543A (en) Electronic filing device
JPH02278439A (en) Data control system for draw
JPS63311451A (en) Access system for low-speed access medium incapable of rewriting
JP2925137B2 (en) Word processor and control method thereof
JPH06149647A (en) Multi-media file managing system
JPH05274206A (en) Data managing device
JPH01169793A (en) System for moving optical disk management information

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: 20001003