JPH04323743A - Null key excepting index management processing system - Google Patents

Null key excepting index management processing system

Info

Publication number
JPH04323743A
JPH04323743A JP3094228A JP9422891A JPH04323743A JP H04323743 A JPH04323743 A JP H04323743A JP 3094228 A JP3094228 A JP 3094228A JP 9422891 A JP9422891 A JP 9422891A JP H04323743 A JPH04323743 A JP H04323743A
Authority
JP
Japan
Prior art keywords
index
key
null
record
value
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
JP3094228A
Other languages
Japanese (ja)
Inventor
Fujio Komiya
小宮 冨士夫
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP3094228A priority Critical patent/JPH04323743A/en
Publication of JPH04323743A publication Critical patent/JPH04323743A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To efficiently retrieve a data base in the index system by suppressing index registration to invalid data for a user. CONSTITUTION:A null value invalidating attribute 2 is given as the key attribute for generation of an index key 1 and is set as the attribute (property) of the index part after generation. When the index part 1 having the null value invalidating attribute 2 will be generated, all records 7 of a data file 6 are read in, and values of key fields 8 of records 7 are evaluated in order from the smallest value, and a key entry 4 of the key field 8 whose value is not null is registered in an index block 5 but that of the key field 8 whose value is null is not registered. When a record will be added to the already generated index part 1, it is discriminated whether the value of the key field of the record is null or not, and it is not registered in the index part 1 if it is null.

Description

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

【0001】0001

【産業上の利用分野】この発明は、キー値とレコード番
号を対応付けしたインデックスファイルを有するデータ
ベース処理システムにおいて、冗長なキー情報をインデ
ックスに登録させないことにより、インデックスの検索
時間を短縮させたインデックス管理処理方式に関する発
明である。
[Industrial Application Field] This invention provides an index that reduces index search time by not registering redundant key information in the index in a database processing system that has an index file that associates key values with record numbers. This invention relates to a management processing method.

【0002】0002

【従来の技術】図2は、データファイルを高速にアクセ
スする手法として、例えば文献(三菱オフィスコンピュ
ータMELCOM80DPS10データ管理説明書)に
記載されたレコード内の特定項目をキーとして、そのキ
ーと当該レコードとの対応表をインデックス(索引)と
して作成し、このインデックスを利用して任意のキー値
に対応するレコードを高速にアクセスする方式を示す図
である。図において、1はインデックスファイルのイン
デックス部、3はインデックス部におけるルートインデ
ックスブロック、4はインデックスブロック内のキーコ
ントリ、5は最下位層におかれたインデックスブロック
、6はデータファイル、7はデータファイル内のレコー
ド、8はレコード内のキーフィールドである。
2. Description of the Related Art FIG. 2 shows a method for accessing a data file at high speed, for example, by using a specific item in a record described in a document (Mitsubishi Office Computer MELCOM80DPS10 Data Management Manual) as a key, and linking that key with the record. FIG. 4 is a diagram illustrating a method of creating a correspondence table as an index and using this index to access records corresponding to arbitrary key values at high speed. In the figure, 1 is the index part of the index file, 3 is the root index block in the index part, 4 is the key content in the index block, 5 is the index block placed in the lowest layer, 6 is the data file, and 7 is in the data file record, 8 is a key field within the record.

【0003】次に動作について説明する。インデックス
部1の生成は、データファイル6の中の全てのレコード
を読み込み、キーフィールド8の値を小さい順に並べ換
えて、インデックスブロック5にキーの値とレコードの
位置情報(レコード番号)をキーコントリ4として登録
する。データの検索処理は、指定されたキー値を持つキ
ーコントリ4を検索するために、ルートインデックスブ
ロック3より、指定キー値の含まれる下位のインデック
スブロック5を求め、インデックス・ブロック5より指
定キーをもつキーコントリ4を検索して、そのキーコン
トリ4より該当のレコード7を検索することができる。
Next, the operation will be explained. To generate the index part 1, read all the records in the data file 6, rearrange the values in the key field 8 in descending order, and write the key value and record position information (record number) in the index block 5 as the key content 4. register. In the data search process, in order to search for a key entry 4 having a specified key value, a lower index block 5 containing the specified key value is obtained from the root index block 3, and a lower index block 5 containing the specified key value is obtained from the index block 5. The key record 4 can be searched and the corresponding record 7 can be searched from the key record 4.

【0004】0004

【発明が解決しようとする課題】従来の方式では全ての
レコードに対応するキーコントリをインデックス部に登
録しているため、次のような問題があった。 (イ)  キーフィールドに利用者によって意味のない
データ(たとえば、将来の拡張用として使用するために
当面は空白となるようなデータ)部分を含んだ、インデ
ックスを生成すると、同一値(空白データ)を示すキー
コントリが大量に作成されて、データベース検索に時間
がかかる。 (ロ)  同様にレコードの追加、削除の操作も時間が
かかる。
[Problems to be Solved by the Invention] In the conventional system, key entries corresponding to all records are registered in the index section, which causes the following problems. (b) If you generate an index that includes data that is meaningless to the user in the key field (for example, data that will be left blank for the time being to be used for future expansion), the same value (blank data) will be created. A large number of key entries are created, and it takes time to search the database. (b) Similarly, adding and deleting records takes time.

【0005】この発明は上記のような問題点を解消する
ためになされたもので、次のようなことを目的とする。 (イ)  キーフィールドの属性として、空値無効属性
を設け、インデックスの生成時、あるいはレコードの追
加時に、キーフィールドに相当するデータが空値の場合
、インデックスには登録せず、不要なキー登録を減らし
て高速なインデックス検索を可能とする。 (ロ)  不要なキー登録を減らすことによって、レコ
ードの削除操作も、空値をもつキーを削除する必要がな
くなり、削除操作の性能も向上することを可能とする。
The present invention has been made to solve the above-mentioned problems, and has the following objects. (b) A null value invalid attribute is provided as an attribute of the key field, and when creating an index or adding a record, if the data corresponding to the key field has a null value, it will not be registered in the index and unnecessary key registration will be performed. to enable high-speed index searches. (b) By reducing unnecessary key registrations, it is no longer necessary to delete keys with null values in record deletion operations, and the performance of deletion operations can also be improved.

【0006】[0006]

【課題を解決するための手段】この発明によるインデッ
クス管理方式は、インデックスを生成する際に、キーフ
ィールドの属性定義に空値無効とするか否かの指定を行
い、空値無効と指定された場合にその情報をインデック
スの管理情報として記録する。
[Means for Solving the Problems] The index management method according to the present invention specifies whether or not to make a null value invalid in the attribute definition of a key field when generating an index. In this case, the information is recorded as index management information.

【0007】また、空値には、キーフィールドが文字タ
イプならば空白を、数値(バイナリを除く)タイプなら
ばNULL値を対象として、インデックス生成時にキー
値を評価して、空値キーを除外するものである。
[0007] Also, null values include blanks if the key field is a character type, and NULL values if the key field is a numeric (excluding binary) type, and the key value is evaluated during index generation and null keys are excluded. It is something to do.

【0008】[0008]

【作用】この発明におけるインデックス方式を利用した
データベース検索では、利用者にとって意味あるデータ
レコードのキーのみ管理することによって冗長なインデ
ックスサーチを減らして高速にデータベース検索するこ
とが可能である。
[Operation] In the database search using the index method according to the present invention, by managing only the keys of data records that are meaningful to the user, it is possible to reduce redundant index searches and perform database searches at high speed.

【0009】[0009]

【実施例】【Example】

実施例1.以下、この発明の一実施例の図について説明
する。図1において、1はインデックスファイルのイン
デックス部、2はインデックス部内にある空値無効属性
、3はインデックス部におけるルートインデックスブロ
ック、4はインデックスブロック内のキーコントリ、5
は最下位層におかれたインデックスブロック、6はデー
タファイル、7はデータファイル内のレコード、8はレ
コード内のキーフィールドである。
Example 1. Hereinafter, a diagram of an embodiment of the present invention will be described. In FIG. 1, 1 is the index part of the index file, 2 is a null invalid attribute in the index part, 3 is the root index block in the index part, 4 is a key content in the index block, 5
is an index block placed in the lowest layer, 6 is a data file, 7 is a record in the data file, and 8 is a key field in the record.

【0010】空値無効属性2は、インデックス部1を生
成するときのキー属性として与えられ、生成後は、その
インデックス部の属性(性質)として設定されたもので
ある。
[0010] The null value invalid attribute 2 is given as a key attribute when generating the index section 1, and after generation, it is set as an attribute (property) of the index section.

【0011】空値属性2を有するインデックス部1の生
成では、データファイル6の全てのレコード7を読み込
み、レコード7のキーフィールド8の値を小さい順に評
価し、空値でなければ、インデックスブロック5へその
キーコントリ4登録し、空値ならば、キーコントリ4を
登録しない。
To generate the index section 1 having the null value attribute 2, all records 7 of the data file 6 are read, and the values of the key fields 8 of the records 7 are evaluated in descending order.If the value is not null, the index block 5 is Navel key control 4 is registered, and if it is a blank value, key control 4 is not registered.

【0012】また、すでに存在するインデックス部1に
対して、レコード7を追加する操作においても、そのレ
コードのキーフィールドが空値か否か評価し、空値であ
ればインデックス部への登録は行わない。
[0012] Also, in the operation of adding record 7 to the index section 1 that already exists, the key field of that record is evaluated to see if it is a null value, and if it is a null value, it is not registered in the index section. do not have.

【0013】[0013]

【発明の効果】以上のように、この発明によれば利用者
にとって無効なデータに対するインデックス登録を抑制
することにより、インデックス部の登録キーコントリ数
を必要なものだけとし、効率よい、インデックス方式に
よるデータベース検索が可能となる効果がある。
As described above, according to the present invention, by suppressing the index registration of data that is invalid for the user, the number of registered key entries in the index section can be reduced to only the necessary ones, and an efficient database using the index method can be created. This has the effect of making search possible.

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

【図1】この発明の一実施例によるインデックス管理処
理方式を示す図である。
FIG. 1 is a diagram showing an index management processing method according to an embodiment of the present invention.

【図2】従来のインデックス管理処理方式を示す図であ
る。
FIG. 2 is a diagram showing a conventional index management processing method.

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

1  インデックス部 2  空値無効属性 3  ルートインデックスブロック 4  キーコントリ 5  インデックスブロック 6  データファイル 7  レコード 8  キーフィールド 1 Index section 2 Null value invalid attribute 3 Root index block 4 Key control 5 Index block 6. Data file 7 Record 8 Key field

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  実データを保持するデータファイルと
、上記実データ内の特定の項目をキーとする索引情報が
格納される1つまたは複数のインデックスファイルとか
らなるデータベースを管理するシステムにおけるインデ
ックス管理方式において、上記インデックスファイル内
のキーは、上記データファイル内の各レコードと1対1
に対応作成機能と、レコード中の該当キーフィールドが
利用者にとって意味のないデータ(空値データ)の場合
には、そのレコードに対応するキーをインデックスファ
イル内に登録することを抑制する手段を備えたことを特
徴とする空値キー除外インデックス管理処理方式。
1. Index management in a system that manages a database consisting of a data file that holds actual data and one or more index files that store index information using specific items in the actual data as keys. In this method, the keys in the index file have a one-to-one relationship with each record in the data file.
If the corresponding key field in a record is meaningless data for the user (null data), it has a means to suppress the registration of the key corresponding to that record in the index file. A null key exclusion index management processing method characterized by:
JP3094228A 1991-04-24 1991-04-24 Null key excepting index management processing system Pending JPH04323743A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3094228A JPH04323743A (en) 1991-04-24 1991-04-24 Null key excepting index management processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3094228A JPH04323743A (en) 1991-04-24 1991-04-24 Null key excepting index management processing system

Publications (1)

Publication Number Publication Date
JPH04323743A true JPH04323743A (en) 1992-11-12

Family

ID=14104452

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3094228A Pending JPH04323743A (en) 1991-04-24 1991-04-24 Null key excepting index management processing system

Country Status (1)

Country Link
JP (1) JPH04323743A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0713826A (en) * 1993-06-25 1995-01-17 Nec Corp Dummy block advance generating means for data base index part
JPH0836514A (en) * 1994-07-22 1996-02-06 Nec Corp Management system for relational data base

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0713826A (en) * 1993-06-25 1995-01-17 Nec Corp Dummy block advance generating means for data base index part
JPH0836514A (en) * 1994-07-22 1996-02-06 Nec Corp Management system for relational data base

Similar Documents

Publication Publication Date Title
US5893087A (en) Method and apparatus for improved information storage and retrieval system
US5812995A (en) Electronic document filing system for registering and retrieving a plurality of documents
US7529726B2 (en) XML sub-document versioning method in XML databases using record storages
JPH04124774A (en) Data storage method for hierarchical construction in related data base
Yadav et al. Wavelet tree based dual indexing technique for geographical search.
JP3258063B2 (en) Database search system and method
JPH04323743A (en) Null key excepting index management processing system
JPH0744579A (en) Logical structure sentence retrieval system
JPH08190571A (en) Document retrieval method
JP2001067369A (en) Information retrieval system, information retrieval method and recording medium recording information retrieval probram
JP3980326B2 (en) Data management method and computer-readable recording medium
JPH0377536B2 (en)
JPH04156624A (en) High speed accessing systme in knowledge base systme
JPH01282634A (en) Data base device
Fritchey Index Architecture
JPH0962696A (en) Data base managing system
JPH05165891A (en) Data registration/retrieval system of data base
JPH02190970A (en) Index structure and search processing method using the structure
JPS61251941A (en) Data base management system
CN1097794C (en) Real-time auxiliary system and method
JPH0546669A (en) Hit ratio improvement system for data base retrieval system
JPH041855A (en) Document/drawing control system
Rickman et al. Structures for an interactive on-line thesaurus
JPS6286430A (en) Data storage system
JPH0962698A (en) Table data retrieving method