JPS593549A - File management system - Google Patents

File management system

Info

Publication number
JPS593549A
JPS593549A JP57111626A JP11162682A JPS593549A JP S593549 A JPS593549 A JP S593549A JP 57111626 A JP57111626 A JP 57111626A JP 11162682 A JP11162682 A JP 11162682A JP S593549 A JPS593549 A JP S593549A
Authority
JP
Japan
Prior art keywords
node
auxiliary storage
storage device
file
data
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
JP57111626A
Other languages
Japanese (ja)
Inventor
Hirokazu Kasashima
広和 笠嶋
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 Ltd
Original Assignee
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 Ltd filed Critical Hitachi Ltd
Priority to JP57111626A priority Critical patent/JPS593549A/en
Publication of JPS593549A publication Critical patent/JPS593549A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9017Indexing; Data structures therefor; Storage structures using directory or table look-up
    • G06F16/902Indexing; Data structures therefor; Storage structures using directory or table look-up using more than one table in sequence, i.e. systems with three or more layers

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To shorten a retrieving time of an index file, by placing node of continuous level at constant interval or more, when assigning each node of a wooden structure to an auxiliary storage device. CONSTITUTION:A node 8 of the second level is placed so that an inerval to a node 7 of the root exceeds the time required for retrieving a data in the node of the root at the processing device side. The interval between a node 9 of the third level and the node 8 of the second level, and its subsequent one are placed in the same way of thinking. In this way, when an index file is referred to, extending from the node of the root to a node of a leaf, waiting for access rotation by an auxiliary storage device is not caused in the process shifting to processing of a node of the following level, and a retrieving time of the index file can be shortened.

Description

【発明の詳細な説明】 本発明は、計算機システムに係り、特に、補助記憶装置
上のデータを検索するのに好適なファイル管理方式に関
する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a computer system, and particularly to a file management method suitable for searching data on an auxiliary storage device.

計算機システムで大量のデータを取扱う場合、大容量の
補助記憶装置上にこれらのデータを格納する。補助記憶
装置と主記憶装置間のデータ転送スピードは処理装置の
スピードに比べて遅く、データの書込み、読出しを効率
的に行なうだめのファイル管理機能が必要となる。
When a computer system handles a large amount of data, this data is stored on a large-capacity auxiliary storage device. The data transfer speed between the auxiliary storage device and the main storage device is slower than the speed of the processing device, and a file management function is required to efficiently write and read data.

第1図は、補助記憶装置に作成されたファイル構成の例
を示す。ファイル1は情報の取扱いの単位であるレコー
ド2の集まりで構成される。ファイル1の中から任意の
レコード2を捜す場合、先頭のレコード2から最終のレ
コード2まで順次読出しチェックする方式をとると、平
均的に総レコード数の半分を捜す必要が生ずる。このた
め索引専用の情報を格納したインデックスファイル3を
設け、より高速に必要なレコード2が検索できるように
する。
FIG. 1 shows an example of a file structure created in an auxiliary storage device. A file 1 is composed of a collection of records 2, which are units for handling information. When searching for an arbitrary record 2 in file 1, if a method is adopted in which the records are sequentially read and checked from the first record 2 to the last record 2, it becomes necessary to search half of the total number of records on average. For this reason, an index file 3 that stores index-only information is provided so that necessary records 2 can be searched for more quickly.

第2図は、インデックスファイル3の論理的な構成を示
す。インデックスファイル3は木構造を持つデータ構成
法で作成される。木構造は、分岐点にある節4と各節4
の中に格納される次下位レベルへの分岐ポインタ5で構
成さfLる。最下位しペルの節(葉の節と呼ぶ)での分
岐ポインタ5は空であり、代わりにレコードポインタ6
を持つ。
FIG. 2 shows the logical structure of the index file 3. The index file 3 is created using a data structure method having a tree structure. The tree structure consists of node 4 at the branch point and each node 4
It consists of a branch pointer 5 to the next lower level stored in fL. The branch pointer 5 at the lowest pel node (called the leaf node) is empty and the record pointer 6 is used instead.
have.

レコード2の検索は、検索の手がかりになる情報(キー
と呼ぶ)を与えられ、対応するレコード2を得ることで
ある。本方式では、キー情報に従って最上位レベルの節
(根幹の節と呼ぶ)から葉の節に至る迄のポインタを索
弓1して、レコードポインタ6を求めることにより、こ
れを実現することができる。
The search for record 2 is to obtain the corresponding record 2 given information (called a key) that serves as a clue for the search. In this method, this can be achieved by setting the pointer from the highest level node (called the root node) to the leaf node according to the key information to find the record pointer 6. .

第3図は、従来技術での補助記憶装置上のインデックス
ファイルの構造を示す。根幹の節7から第2レベルの節
8、第3レベルの節9という順序で、補助記憶装置の回
転方向に合わせて配置されている。この場合、根幹の節
7の内容を処理装置側に読出して節円のデータを判定し
、次レベルの節8に対するポインタを得て、これに対応
する読出し指示を補助記憶装置に対して発行する迄の間
に、節8の格納位置が補助記憶装置の読出しヘッド位t
i1tOを通過してしまう。このため、節8の読出しは
、補助記憶装置が1回転して再度ヘッド位置lOに米る
まで待つ必要が生じる。この関係を第3図のタイムチャ
ートに示す。この問題は各々のレベルごとに発生し、イ
ンデックスファイルの検索時間が艮くなる欠点がある。
FIG. 3 shows the structure of an index file on an auxiliary storage device in the prior art. They are arranged in the order of nodes 7 at the root, nodes 8 at the second level, and nodes 9 at the third level in accordance with the rotational direction of the auxiliary storage device. In this case, the contents of the root node 7 are read to the processing device side, the data of the node circle is determined, a pointer to the next level node 8 is obtained, and a corresponding read instruction is issued to the auxiliary storage device. Until then, the storage position of node 8 is at the read head position of the auxiliary storage device t.
It passes through i1tO. Therefore, reading node 8 requires waiting until the auxiliary storage device rotates once and returns to the head position IO. This relationship is shown in the time chart of FIG. This problem occurs at each level, and has the drawback of increasing the search time for index files.

本発明の目的は、インテックス7アイルの検索時間を短
縮することにより、ファイル管理の処理を両速化し、計
算機システムの処理性能向上を図るファイル管理方式を
提供するにおる。
An object of the present invention is to provide a file management method that speeds up file management processing and improves the processing performance of a computer system by shortening the search time of the Intex 7 file.

本発明は、インデックスファイルの検索時間を短縮する
手段として、補助記憶装置に本構造の各節を割付けるに
あたり、引続くレベルの節は処理装置側で節円データを
検索するのに要する時間を考慮して、一定間隔以上空け
て配置することにより、インデックスファイルの検索時
に無用な補助記憶装置のアクセス回転待ちが発生しない
ようにしたものである。
As a means of reducing index file search time, the present invention allocates each node of this structure to an auxiliary storage device, and the nodes of subsequent levels require the time required for the processing device to search for node data. By taking this into consideration, they are arranged at a certain interval or more, so that unnecessary waiting for access rotation of the auxiliary storage device does not occur when searching for an index file.

第4図は、本発明通用時のインデックスファイルの構造
を示す。第2レベルの節8は、根幹の節7との間隔が根
幹の節7内のデータを処理装置110111で検索する
のに要する時間を越えるように配置される。第3レベル
の節9と第2レベルの節8との間隔およびそれ以降のも
のについても同様の考え方で配置される。これにより、
インデックスファイルを根幹の節7から葉の節に至る迄
の索引を行なう時、次レベルの節の処理に移る過程で補
助記憶装置に対するアクセス回転待ちが生じないように
なり、インデックス7ア1ルの検索時間を短縮する効果
がある。この関係を第4図のタイムチャートに示す。
FIG. 4 shows the structure of an index file when the present invention is applicable. The second level node 8 is arranged such that the distance from the root node 7 exceeds the time required for the processing device 110111 to retrieve the data in the root node 7. The spacing between the third-level node 9 and the second-level node 8 and the subsequent nodes are arranged in a similar manner. This results in
When indexing an index file from the root node 7 to the leaf nodes, there is no longer a wait for access rotation to the auxiliary storage device in the process of moving to the next level of nodes, and the index 7 al. This has the effect of shortening search time. This relationship is shown in the time chart of FIG.

第5図は、本発明の一実施例の処理フローを示す。木構
造をもつインデックスファイルの各節を補助記憶装置上
に割付は管理するためのテーブルとして補助記憶装置割
付はエリアの空き管理テーブル11を、主記憶装置もし
くは補助記憶装置上に確保する。空き管理テーブル11
は、補助記憶装置120回転位置に対応してこのエリア
の空きもしくは使用中の状態を記憶する構成とし、該エ
リアと対応するテーブルの内容が00場合には空き、1
の場合には使用中であることを示す。空き管理テーブル
11は、補助記憶装置12上にインデックスファイルの
木構造を構築する時に使用され、初期状態はすべてOと
なっている。木構造の各節が補助記憶装置12上に割付
けられると、対応部分が0から1に変更される。本構造
の各節を補助記憶装置12上に割付ける場合の手順を、
第5図のフローに示す。木構造全体の割付けは、このフ
ローの処理を繰返し実行することにより完成される。
FIG. 5 shows a processing flow of an embodiment of the present invention. An auxiliary storage allocation area free management table 11 is secured on the main storage or auxiliary storage as a table for managing the allocation of each node of the index file having a tree structure on the auxiliary storage. Vacant management table 11
is configured to store the empty or used state of this area in correspondence with the rotational position of the auxiliary storage device 120, and if the content of the table corresponding to the area is 00, it is empty, 1
indicates that it is in use. The free space management table 11 is used when constructing a tree structure of index files on the auxiliary storage device 12, and the initial state is all O's. When each node of the tree structure is allocated on the auxiliary storage device 12, the corresponding portion is changed from 0 to 1. The procedure for allocating each node of this structure on the auxiliary storage device 12 is as follows.
The flow is shown in FIG. Layout of the entire tree structure is completed by repeatedly executing the processing of this flow.

このフローの手順によると13で、節円のデータを処理
装置側で検索するのに必要な時間を求める。14で、今
回割付けを行なう節の上位にある節の補助記憶装置上で
の割付は位置を求める。
According to the steps in this flow, in step 13, the time required for searching the nodal circle data on the processing device side is determined. In step 14, the allocation position on the auxiliary storage device of the node above the node to be allocated this time is determined.

15で、13と14の結果から今回割付けの節を格納す
べき位置を計算する。16で、テーブル11を参照して
該当位置のところに窒きがあるか否かをチェックする。
In step 15, the location where the currently allocated node should be stored is calculated from the results of steps 13 and 14. At step 16, it is checked with reference to the table 11 whether or not there is a build-up at the corresponding position.

ここで空きがない場合には、17で、割付は予定位置が
次の回転位置に進められるようにテーブル参照のポイン
タの更新を行なう。16で空きが見つかった場合には、
18で、テーブル11の該当位置を管理する箇所に藺用
中の表示を行なう、119では、補助記憶装置の該当位
置のところに節の情報を格納する。これによp、1つの
節に対する割付けが完了する。
If there is no free space, the table reference pointer is updated in step 17 so that the planned position is advanced to the next rotational position. If a vacancy is found at 16,
At step 18, a message indicating that the relevant position is being managed is displayed in the table 11, and at step 119, the section information is stored at the relevant position in the auxiliary storage device. This completes the assignment to one node.

本発明によれば、大量のデータを扱う場合のファイル管
理の処理を高速化することができ、計算機システム全体
の処理性能を向上することができる。
According to the present invention, it is possible to speed up file management processing when handling a large amount of data, and it is possible to improve the processing performance of the entire computer system.

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

第1図は補助記憶装置上に作成されたファイル構成図、
第2図はインデックスファイルの論理構成図、第3図は
従来の補助記憶装置上のインデックスファイルの構造図
、第4図は本発明のインデックスファイルの構造図、第
5図は本発明の実施例の処理フローチャートである。 
。 茎40 茎S図
Figure 1 is a file configuration diagram created on the auxiliary storage device.
Fig. 2 is a logical configuration diagram of an index file, Fig. 3 is a structural diagram of a conventional index file on an auxiliary storage device, Fig. 4 is a structural diagram of an index file of the present invention, and Fig. 5 is an embodiment of the present invention. It is a processing flowchart.
. Stem 40 Stem S diagram

Claims (1)

【特許請求の範囲】[Claims] 1、大量のデータを処理するにあたり、補助記憶装置上
にデータを格納しておき、必要に応じて処理装置側に読
出し参照を行なうようにした計算機システムにおいて、
関連の秦るデータの集りをファイルとして管理し、この
ファイル内の任意のデータを高速に検索するために索引
専用のファイルを設け、木構造の根幹から葉に至るまで
の各節を順次索引し、前記索引専用ファイルを前記補助
記憶装置上に構築するにあたシ、@り合うレベルの節は
前記処理装置側で節円データを検索するのに必要となる
時間を考慮して、一定間隔だけ空けて配置することを特
徴とするファイル管理方式。
1. In a computer system that processes a large amount of data, the data is stored on an auxiliary storage device and read and referenced to the processing device as necessary.
A collection of related data is managed as a file, and an index-only file is created to quickly search for any data within this file, and each node from the root of the tree structure to the leaves is sequentially indexed. , When constructing the index-only file on the auxiliary storage device, nodes at matching levels are set at regular intervals in consideration of the time required for searching the node data on the processing device side. A file management method that is characterized by arranging files with only a few spaces between them.
JP57111626A 1982-06-30 1982-06-30 File management system Pending JPS593549A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57111626A JPS593549A (en) 1982-06-30 1982-06-30 File management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57111626A JPS593549A (en) 1982-06-30 1982-06-30 File management system

Publications (1)

Publication Number Publication Date
JPS593549A true JPS593549A (en) 1984-01-10

Family

ID=14566081

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57111626A Pending JPS593549A (en) 1982-06-30 1982-06-30 File management system

Country Status (1)

Country Link
JP (1) JPS593549A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61273689A (en) * 1985-05-29 1986-12-03 Toppan Moore Co Ltd Integrated circuit card containing discriminating means between history information and replacement information
JPS6278820A (en) * 1985-10-01 1987-04-11 Rohm Co Ltd Resist developing method
US5416047A (en) * 1990-09-07 1995-05-16 Tokyo Electron Limited Method for applying process solution to substrates

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61273689A (en) * 1985-05-29 1986-12-03 Toppan Moore Co Ltd Integrated circuit card containing discriminating means between history information and replacement information
JPH0473196B2 (en) * 1985-05-29 1992-11-20 Toppan Moore Kk
JPS6278820A (en) * 1985-10-01 1987-04-11 Rohm Co Ltd Resist developing method
JPH0543172B2 (en) * 1985-10-01 1993-06-30 Rohm Kk
US5416047A (en) * 1990-09-07 1995-05-16 Tokyo Electron Limited Method for applying process solution to substrates

Similar Documents

Publication Publication Date Title
US5826262A (en) Parallel bottom-up construction of radix trees
US5568638A (en) Split control system for a page/page group in a data processing system a pre-split process using a temporary overflow area
CN114416646A (en) Data processing method and device of hierarchical storage system
JPS593549A (en) File management system
US20210209087A1 (en) Reorganization of Databases by Sectioning
JP2675958B2 (en) Information retrieval computer system and method of operating storage device thereof
JP2745882B2 (en) Block management method
US8200920B2 (en) Systems and methods for storing and accessing data stored in a data array
JP2874810B2 (en) Key memory allocation method
JP3578501B2 (en) Document search method and apparatus
JPS6143338A (en) Searching of thin data base using association technology
JP2604787B2 (en) Two-dimensional data storage method
JPS63136216A (en) Vtoc accessing system
JPH03225412A (en) File data read system
EP0111689A2 (en) Method of storing a B-tree type index file on rotating media devices
CN118642652A (en) Virtual disk defragmentation method and computing device
CN115543992A (en) Operation request processing method and related device
Chun Access and organization of secondary memory devices
JPH04287245A (en) System for managing free area of file system
JPH06348572A (en) Multi-mechanism disk system
JPH03142641A (en) High speed medium retrieving system
JPS607303B2 (en) Page buffer search processing method
JPS62177642A (en) File management system for postscript filing device
JPS62239249A (en) File managing device
JPH027108B2 (en)