JPH04323743A - Null key excepting index management processing system - Google Patents
Null key excepting index management processing systemInfo
- 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
Links
- 238000000034 method Methods 0.000 claims description 6
- 238000003672 processing method Methods 0.000 claims description 4
- 230000007717 exclusion Effects 0.000 claims 1
- 238000007726 management method Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000013523 data management Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【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]
実施例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.
【図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.
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)
、上記実データ内の特定の項目をキーとする索引情報が
格納される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:
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)
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 |
-
1991
- 1991-04-24 JP JP3094228A patent/JPH04323743A/en active Pending
Cited By (2)
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 |