JPH05158988A - Data base access method - Google Patents

Data base access method

Info

Publication number
JPH05158988A
JPH05158988A JP3327249A JP32724991A JPH05158988A JP H05158988 A JPH05158988 A JP H05158988A JP 3327249 A JP3327249 A JP 3327249A JP 32724991 A JP32724991 A JP 32724991A JP H05158988 A JPH05158988 A JP H05158988A
Authority
JP
Japan
Prior art keywords
access
key
hash
storage page
hash function
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
JP3327249A
Other languages
Japanese (ja)
Inventor
Nobuyuki Kobayashi
伸幸 小林
Jinnosuke Nakamura
仁之輔 中村
Yoshihiro Umemoto
佳宏 梅本
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP3327249A priority Critical patent/JPH05158988A/en
Publication of JPH05158988A publication Critical patent/JPH05158988A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To facilitate designing a hash function according to the distribution of an access key to rialize a high speed hash access method using the hash function in a data base access processing. CONSTITUTION:In a hash access method which directly obtains the storage page of the access-intended record by an access key for the record, an element showing the range for an element to be distributed close to the consecutive numbers as well as the element showing the distribution close to the consecutive number are chosen among the components of the access key (101). The subtraction method is used for an element close to the consecutive number for each value of the element showing the range, and the access is executed by obtaining the storage page based on the subtraction while referring to the control table storing the parameter of the subtraction for each range (104).

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、データベースのアクセ
ス処理に用いられるハッシュアクセス方法に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a hash access method used for database access processing.

【0002】[0002]

【従来の技術】従来のハッシュアクセス方法では、ハッ
シュ関数により、アクセス対象となるレコードのアクセ
スキーの値から当該レコードの格納ページが直接求めら
れる。図4は、ハッシュアクセス方法を実現する構成を
説明するための図であり、401はアクセス対象のレコ
ード、402は当該レコード中のアクセスキー、403
はハッシュ関数、404は当該レコードの格納ページで
ある。図4において、アクセスキー402の値「12
3」に対して、ハッシュ関数403として、図4におけ
る「mod 17」で表わす「17」の剰余を求める除算
法を用いると、当該レコードの格納ページ404は
「4」となることを示している。ハッシュアクセス方法
では、アクセス対象格納ページに対する1回のi/oの
みで処理が行われ、そのため高速なアクセスが実現す
る。しかし、特定の格納ページにレコードが集中する
と、対象格納ページが一杯となり、レコードが格納でき
ないことが発生する。このときは、ハッシュ関数により
求められた格納ページにチェインされた別の格納ページ
に格納される。このとき、アクセスに必要となるi/o
は、ハッシュ関数により求められた格納ページとその格
納ページにチェインされた格納ページに対するものが必
要となり、アクセス速度が低下する。
2. Description of the Related Art In a conventional hash access method, a storage page of a record to be accessed is directly obtained from a value of an access key of a record to be accessed by a hash function. FIG. 4 is a diagram for explaining a configuration for realizing the hash access method, where 401 is a record to be accessed, 402 is an access key in the record, and 403 is a record.
Is a hash function, and 404 is a storage page of the record. In FIG. 4, the value of the access key 402 is “12
If the division method for obtaining the remainder of “17” represented by “mod 17” in FIG. 4 is used as the hash function 403 for “3”, the storage page 404 of the record becomes “4”. .. In the hash access method, the processing is performed only once for the access target storage page, so that high-speed access is realized. However, if the records are concentrated on a specific storage page, the target storage page becomes full, and the records cannot be stored. At this time, it is stored in another storage page chained to the storage page obtained by the hash function. At this time, i / o required for access
Requires the storage page obtained by the hash function and the storage page chained to the storage page, which reduces the access speed.

【0003】例えば、1格納ページに7アクセスレコー
ドが格納できるとき、ハッシュ関数によって、あるペー
ジに70レコードが集中した場合、対象格納ページの他
に9ページの格納ページが必要となる。このとき、アク
セスには最大10回のi/oが必要となる。
For example, when 7 access records can be stored in one storage page and when 70 records are concentrated in a certain page by the hash function, nine storage pages are required in addition to the target storage page. At this time, access requires up to 10 times of i / o.

【0004】従来のハッシュアクセス方法では、アクセ
スキーの分布の全域に対して単一なハッシュ関数を適用
しており、前述の性能の劣化を防ぐために、全格納ペー
ジにレコードが均等に分散するハッシュ関数を使用する
ことが目指され、多くのハッシュ関数が提案された。そ
のようなハッシュ関数の例として、図4の例に用いた除
算法等がある。
In the conventional hash access method, a single hash function is applied to the entire area of the access key distribution, and in order to prevent the above-mentioned deterioration of performance, a hash in which records are evenly distributed over all stored pages. Aiming to use functions, many hash functions have been proposed. An example of such a hash function is the division method used in the example of FIG.

【0005】[0005]

【発明が解決しようとする課題】しかし、現状では、ど
のようなアクセスキー分布に対しても、常に均等にレコ
ードを分散するようなハッシュ関数は見つかっていな
い。従って、効率的にハッシュアクセス方法を使用する
ためには、アクセスキー分布に合わせてハッシュ関数を
設計する必要があるが、そのようなアクセスキー分布を
考慮した設計法は確立されていない。そのため、ハッシ
ュ関数を設計する作業は、ハッシュアクセス方法を使用
する上で困難な問題点となっている。
However, at present, no hash function has been found that always distributes records evenly for any access key distribution. Therefore, in order to use the hash access method efficiently, it is necessary to design the hash function according to the access key distribution, but a design method considering such an access key distribution has not been established. Therefore, the work of designing the hash function is a difficult problem in using the hash access method.

【0006】本発明は、前記問題点を解決するためにな
されたものであり、本発明の目的は、アクセスキー分布
に合わせて有効なハッシュ関数を設計することが可能な
技術を提供することにある。
The present invention has been made to solve the above problems, and an object of the present invention is to provide a technique capable of designing an effective hash function in accordance with an access key distribution. is there.

【0007】本発明の他の目的は、前記ハッシュ関数の
設計法に基づいて設計されたハッシュ関数を使用したハ
ッシュアクセス方法を提供することにある。
Another object of the present invention is to provide a hash access method using a hash function designed based on the above hash function design method.

【0008】本発明の前記ならびにその他の目的及び新
規な特徴は、本明細書の記述及び添付図面によって明ら
かにする。
The above and other objects and novel features of the present invention will become apparent from the description of this specification and the accompanying drawings.

【0009】[0009]

【課題を解決するための手段】前記目的を達成するため
に、本発明は、データベースアクセスにおけるアクセス
対象レコードのアクセスキーにより、当該アクセス対象
レコードの格納ページを直接求めるハッシュアクセス方
法において、アクセスキーの構成要素中からある要素が
連続番号に近い分布となるような範囲を示す要素及びそ
の連続番号に近い分布を示す要素を選択し、範囲を示す
要素の値毎に、その範囲内で連続番号に近い分布を示す
要素に対して除算法を用い、その範囲毎の除算法のパラ
メータを制御表に格納する。
In order to achieve the above object, the present invention provides a hash access method that directly obtains a storage page of an access target record by the access key of the access target record in database access. From the constituent elements, select the element that shows the range in which a certain element has a distribution close to the consecutive number and the element that shows the distribution close to the consecutive number. The division method is used for elements showing a close distribution, and the parameters of the division method for each range are stored in the control table.

【0010】さらに、アクセス処理時には、範囲を示す
要素の値毎の除算法のパラメータを格納した制御表を参
照しながら、除算法により格納ページを求めることによ
りアクセスを実行することを最も主要な特徴とする。
Further, at the time of access processing, the most main feature is that the access is executed by obtaining the storage page by the division method while referring to the control table storing the parameters of the division method for each value of the element indicating the range. And

【0011】[0011]

【作用】前述の手段によれば、データベースのアクセス
処理において、アクセスキーの分布に応じたハッシュ関
数の設計が容易にでき、そのハッシュ関数を使用した高
速なハッシュアクセス方法を実現することができる。
According to the above-mentioned means, in the access processing of the database, the hash function can be easily designed according to the distribution of the access key, and the high-speed hash access method using the hash function can be realized.

【0012】[0012]

【実施例】以下、本発明の実施例を図面を用いて詳細に
説明する。図1は、本発明のハッシュアクセス方法に用
いるハッシュ関数の設計法を説明するための処理手順を
示す説明図である。
Embodiments of the present invention will be described in detail below with reference to the drawings. FIG. 1 is an explanatory diagram showing a processing procedure for explaining a design method of a hash function used in the hash access method of the present invention.

【0013】図1において、101は、アクセスキーの
構成要素中で、ある要素が連続番号に近い分布となるよ
うな範囲を示す要素及びその連続番号に近い要素の選択
を行う処理(区分要素・キー要素選択処理)である。以
下では、説明の便宜上、ある要素が連続番号に近い分布
となるような範囲を示す要素を「区分要素」と呼び、そ
の連続番号に近い分布を示す要素を「キー要素」と呼
ぶ。
In FIG. 1, reference numeral 101 denotes a process for selecting an element showing a range in which a certain element has a distribution close to a continuous number and an element close to the continuous number (partitioned element Key element selection processing). Hereinafter, for convenience of explanation, an element indicating a range in which a certain element has a distribution close to a continuous number is referred to as a “section element”, and an element having a distribution close to the continuous number is referred to as a “key element”.

【0014】102は、前記処理101でアクセスキー
を構成するカラムの付与基準を参照する処理を行う際に
使用するアクセスキー構成カラムの付与基準である。デ
ータベース中のデータは、ある基準に従って値が決ま
る。この基準のことを「付与基準」と呼ぶ。例えば、電
話番号は、広い地域を表わす市外局番、市外局番の中で
の細かい地域を表わす市外局番及び市外局番の中での4
桁の番号から構成されている。
Reference numeral 102 denotes an access key composing column reference used when the processing 101 refers to the column providing access key. The values of the data in the database are determined according to a certain standard. This standard is called "granting standard". For example, a telephone number is an area code indicating a wide area, an area code indicating a small area in the area code, and 4 in the area code.
It consists of digit numbers.

【0015】103は、前記処理101の結果が、アク
セスキー中での区分要素及びキー要素の桁位置を示す表
であり、これが次の処理104へ入力される。
103 is a table showing the digit positions of the partition element and the key element in the access key as a result of the process 101, which is input to the next process 104.

【0016】104は、区分要素の値毎に除算法のパラ
メータである除数及び使用する格納ページの範囲を示す
開始格納ページを決定する処理(除数・開始格納ページ
決定処理)である。105は、前記処理104で実際の
レコードを参照するための実際のレコードである。10
6は、前記処理104の結果が区分要素の取り得る各値
に対する除数,開始格納ページのリストであり、この設
計法の結果である。
Reference numeral 104 denotes a process (divisor / start storage page determination process) for determining a divisor that is a parameter of the division method and a start storage page indicating a range of storage pages to be used for each value of the partition element. Reference numeral 105 is an actual record for referring to the actual record in the process 104. 10
6 is a list of divisors and starting storage pages for each possible value of the partition element, which is the result of this design method.

【0017】以下に、前記処理101及び104につい
て詳細に説明する。図2は、図1に示す処理101の詳
細を説明するための説明図である。前記処理101は、
図2に示すように、処理201と202からなり、処理
201は、構成要素から区分要素の候補及びそれに対す
るキー要素を選択(抽出)する処理(区分要素候補・キ
ー要素選択処理)である。処理202は、区分要素及び
キー要素を選択する処理(区分要素・キー要素選択処
理)である。203は、アクセスキーを構成するカラム
の付与基準の表、204は、処理201におけるアクセ
ス対象レコード中のアクセスキー、205は、処理20
1におけるアクセスキーの構成要素、206は、処理2
01における区分要素の候補である。207は、処理2
01の結果である区分要素の候補及びそれに対応する連
続番号に近づく要素(キー要素)の表である。
The processes 101 and 104 will be described in detail below. FIG. 2 is an explanatory diagram for explaining the details of the process 101 shown in FIG. The process 101 is
As shown in FIG. 2, it comprises processes 201 and 202, and the process 201 is a process (partition element candidate / key element selection process) for selecting (extracting) a candidate for a partition element and a key element for the candidate from the constituent elements. The process 202 is a process of selecting a partition element and a key element (section element / key element selection processing). Reference numeral 203 is a table of assignment criteria of columns forming the access key, 204 is an access key in the access target record in the process 201, and 205 is a process 20.
1 is a component of the access key, 206 is process 2
It is a candidate for the division element in 01. 207 is process 2
12 is a table of the elements (key elements) that are close to the sequential element number corresponding to the segmental element candidate that is the result of 01.

【0018】処理201の内容は、以下の通りである。 .アクセスキーの構成するカラムの付与基準に基づ
き、アクセスキーをいくつかの構成要素に分解する。こ
の例では、アクセスキーの構成するカラムの付与基準2
03から、アクセスキー204はアクセスキーの構成要
素205のC1,C2,C3の3つの要素に分解され
る。
The contents of the process 201 are as follows. . The access key is decomposed into several components based on the assignment criteria of the columns that the access key comprises. In this example, the assignment criterion 2 of the column that the access key comprises
From 03, the access key 204 is decomposed into three elements C1, C2 and C3 of the access key component 205.

【0019】.ある要素の値を固定したとき、別な要
素の分布が連続番号の分布に近づく場合、もとの要素を
区分要素の候補とする。例では、C1の値を固定したと
き、C2,C3及びそれらの組み合わせが連続番号の分
布に近づく。C2の値を固定すると、C3は連続番号の
分布に近づく。また、C1C2の組み合せを固定する
と、C3は連続番号に近づく。これにより、区分要素の
候補は、C1,C2及びその組み合わせのC1C2とな
る。
.. When the value of a certain element is fixed and the distribution of another element approaches the distribution of consecutive numbers, the original element is set as a candidate for the segmented element. In the example, when the value of C1 is fixed, C2, C3, and combinations thereof approach a distribution of consecutive numbers. If the value of C2 is fixed, C3 approaches a continuous number distribution. Further, when the combination of C1C2 is fixed, C3 approaches the serial number. As a result, the candidates for the partition element are C1, C2 and C1C2 of the combination thereof.

【0020】処理202は、前記処理201で選択した
候補の内から、キー要素を選択し、同時に区分要素の選
択を行う。図2において、208は、処理の結果である
区分要素、キー要素のアクセスキー中の桁位置,桁数の
一覧表である。
In process 202, a key element is selected from the candidates selected in process 201, and at the same time, a partition element is selected. In FIG. 2, reference numeral 208 is a list of the digit positions and the number of digits in the access key of the partition element and the key element, which are the results of the processing.

【0021】処理202の内容は、以下の通りである。 .表207の中で最も連続番号に近い分布となるよう
な要素の候補を区分要素とする。また、その時の連続番
号に近い分布を示す要素をキー要素とする。この例で
は、C1,C2の組み合わせに対するC3が最も連続番
号に近くなるので、区分要素はC1C2、キー要素はC
3となる。
The contents of the process 202 are as follows. . In the table 207, element candidates having a distribution that is the closest to the continuous number are set as segmented elements. Also, an element showing a distribution close to the serial number at that time is used as a key element. In this example, C3 for the combination of C1 and C2 is the closest to the sequential number, so the partition element is C1C2 and the key element is C.
It becomes 3.

【0022】.アクセスキー中の区分要素及びキー要
素の桁位置を抽出する。
.. Extract the digit position of the partition element and key element in the access key.

【0023】前記図1において、処理101で選択され
た区分要素及びキー要素に基づいて、処理104が行わ
れる。処理104では、実際のアクセスレコードの全デ
ータあるいはサンプルデータを参照し、区分要素の値毎
に、除算法を適用するために除算法のパラメータの除数
及び開始格納ページを決定する。以下にそのための処理
手順を示す。
In FIG. 1, the process 104 is performed based on the partition element and the key element selected in the process 101. In the process 104, all the data of the actual access record or the sample data is referred to, and the divisor of the parameter of the division method and the starting storage page for applying the division method are determined for each value of the partition element. The processing procedure for that is shown below.

【0024】.使用する格納ページの範囲を示す開始
格納ページを求める。除算法では、除数分の格納ページ
にレコードが格納される。例えば、除数を「11」とす
るならば、ハッシュ関数の値は「0」から「10」の値
となり、それぞれに対応する11格納ページにレコード
は格納される。このことにより、いま、対象としている
区分要素の値の1つ前に対応する開始格納ページに除数
を加えた値が、いま、対象としている開始格納ページと
なる。例えば、1つ前の区分要素の値に対応する開始格
納ページが「123」であり、除数が「11」ならば、
いま、対象としている区分要素の値に対する開始格納ペ
ージは「134」となる。
[0024]. Find the starting storage page that indicates the range of storage pages to use. In the division method, records are stored in the storage page for the divisor. For example, if the divisor is “11”, the hash function value changes from “0” to “10”, and the record is stored in the 11 storage pages corresponding to each. As a result, the value obtained by adding the divisor to the start storage page corresponding to the value immediately before the target partition element becomes the target start storage page. For example, if the starting storage page corresponding to the value of the preceding partition element is “123” and the divisor is “11”,
Now, the starting storage page for the value of the target partition element is "134".

【0025】.1格納ページに格納できるレコードの
数、実際のデータを参照して得られた区分要素の値毎の
レコード数、格納ページ内の使用率を考えて、区分要素
の値毎に必要となる格納ページ数を求める。
[0025]. The number of records that can be stored in one storage page, the number of records for each value of the partition element obtained by referring to actual data, and the usage rate in the storage page, and the storage page required for each value of the partition element Find the number.

【0026】.必要な格納ページ数から除算法のパラ
ーメータの除数を求める。ここで、除数の求め方は幾つ
かある。例えば、「Key-to-Address Transform Techniq
ues:A Fundamental Performance Study on Large Exist
ing Formatted Files,V.Y.Lum,P.S.Yuen,and M.Dodd,CA
CM,Vol.14,No.4,1971」に記載されているように、必要
な格納ページに近い素数などを選択する方法がある。
.. Calculate the divisor of the division parameter from the required number of stored pages. Here, there are several ways to obtain the divisor. For example, "Key-to-Address Transform Techniq
ues: A Fundamental Performance Study on Large Exist
ing Formatted Files, VYLum, PSYuen, and M.Dodd, CA
As described in "CM, Vol.14, No.4, 1971", there is a method of selecting a prime number close to a required storage page.

【0027】前述の処理手順により、区分要素の取る値
毎に、その値に対応する除数,開始格納ページが対とな
ったリストが作成される。このリストは、各区分要素の
値毎の除算法のパラメータを示している。この発明のハ
ッシュアクセス方法では、このリストを参照しながらア
クセス処理が行われるので、このリストを特にハッシュ
制御表と呼ぶことにする。
By the above-mentioned processing procedure, for each value taken by the partition element, a list in which the divisor corresponding to the value and the starting storage page are paired is created. This list shows the division parameter for each value of each partition element. In the hash access method of the present invention, the access process is performed with reference to this list, so this list will be referred to as a hash control table.

【0028】図3は、本実施例のハッシュ制御表を用い
てハッシュアクセス方法を実現する構成を説明するため
の説明図である。図3において、301はアクセスキ
ー、302は区分要素及びキー要素の桁位置、303は
アクセスキーから区分要素及びキー要素の抽出処理、3
04はハッシュ関数、305はハッシュ制御表、306
は格納ページを示している。
FIG. 3 is an explanatory diagram for explaining a configuration for realizing a hash access method using the hash control table of this embodiment. In FIG. 3, 301 is an access key, 302 is a digit position of a partition element and a key element, 303 is a process of extracting the partition element and the key element from the access key, 3
04 is a hash function, 305 is a hash control table, 306
Indicates a storage page.

【0029】本実施例のハッシュ制御表を用いたハッシ
ュアクセス方法を、図3を用いてその処理手順を以下に
説明する。
The processing procedure of the hash access method using the hash control table of this embodiment will be described below with reference to FIG.

【0030】.区分要素及びキー要素の桁位置を参照
し、アクセスキー301から区分要素及びキー要素を抽
出する。図3においては、「129634」から区分要
素「129」、キー要素「634」が取り出される。
.. The partition element and the key element are extracted from the access key 301 by referring to the digit positions of the partition element and the key element. In FIG. 3, the partition element “129” and the key element “634” are extracted from “129634”.

【0031】.区分要素の値でハッシュ制御表の当該
エントリを参照して、その値に対する除数及び開始格納
ページを抽出する。図3においては、ハッシュ制御表の
区分要素「129」のエントリから除数が「71」開始
格納ページが「100」となる。
.. The entry of the hash control table is referred to by the value of the partition element, and the divisor and starting storage page for that value are extracted. In FIG. 3, the divisor from the entry of the partition element “129” in the hash control table is “71”, and the starting storage page is “100”.

【0032】.キー要素に対して除算を行い、さらに
開始格納ページとの和を取ることにより格納ページを求
める。図3においては、「mod」は除算法を表してお
り、「631」の「71」の剰余より「63」が求ま
り、さらに開始格納ページ「100」との和を取り、ア
クセス対象格納ページは「163」となる。
.. The storage page is obtained by performing division on the key element and then taking the sum with the start storage page. In FIG. 3, "mod" represents a division method, "63" is obtained from the remainder of "71" of "631", and the sum with the start storage page "100" is obtained, and the access target storage page is It becomes “163”.

【0033】以上の説明からわかるように、本実施例に
よれば、実際のシステムで使用される2種類のアクセス
キー及び乱数発生により作成したアクセスキーに使用し
た結果、従来のハッシュアクセス方法に比較して、ハッ
シュ関数により求めた格納ページに格納できないレコー
ド数は最大15分の1に減少した。また、従来の手法よ
り性能劣化することはなかった。これにより、従来の方
法では困難であったアクセスキーの分布に適したハッシ
ュ関数の設計が容易に行うことが可能となり、高速なデ
ータベースアクセス処理が可能となった。
As can be seen from the above description, according to this embodiment, as a result of using two kinds of access keys used in an actual system and an access key created by random number generation, comparison with the conventional hash access method is made. Then, the number of records that cannot be stored in the storage page obtained by the hash function is reduced to a maximum of 1/15. Moreover, the performance did not deteriorate as compared with the conventional method. As a result, it became possible to easily design a hash function suitable for the distribution of access keys, which was difficult with the conventional method, and high-speed database access processing became possible.

【0034】以上、本発明を実施例に基づき具体的に説
明したが、本発明は、前記実施例に限定されるものでは
なく、その要旨を逸脱しない範囲において種々変更し得
ることはいうまでもない。
Although the present invention has been specifically described based on the embodiments, the present invention is not limited to the above embodiments, and various modifications can be made without departing from the scope of the invention. Absent.

【0035】[0035]

【発明の効果】以上、説明したように、本発明によれ
ば、データベースのアクセス処理において、アクセスキ
ーの分布に応じたハッシュ関数の設計が容易にでき、そ
のハッシュ関数を使用した高速なハッシュアクセス方法
を実現することができる。
As described above, according to the present invention, in the access processing of the database, the hash function can be easily designed according to the distribution of the access key, and the high-speed hash access using the hash function is performed. The method can be realized.

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

【図1】 本発明のハッシュアクセス方法にかかわるハ
ッシュ関数の設計法を説明するための処理手順を示す説
明図、
FIG. 1 is an explanatory view showing a processing procedure for explaining a method of designing a hash function related to a hash access method of the present invention,

【図2】 図1に示す区分要素・キー要素選択処理の詳
細を説明するための説明図、
FIG. 2 is an explanatory diagram for explaining details of the partition element / key element selection processing shown in FIG.

【図3】 本実施例のハッシュ制御表を用いてハッシュ
アクセス方法を実現する構成を説明するための説明図、
FIG. 3 is an explanatory diagram for explaining a configuration for implementing a hash access method using the hash control table of the present embodiment,

【図4】 ハッシュアクセス方法を実現する構成を説明
するための図。
FIG. 4 is a diagram for explaining a configuration for implementing a hash access method.

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

101…区分要素・キー要素選択処理、102…アクセ
スキー構成カラムの付与基準、103…区分要素・キー
要素の桁位置を示す表、104…除数・開始格納ページ
決定処理、105…実際のレコード、106…除数・開
始格納ページリスト(ハッシュ制御表)、201…区分
要素候補・キー要素選択処理、202…区分要素・キー
要素選択処理、203…カラム付与基準表、204…ア
クセス対象レコード中のアクセスキー、205…アクセ
スキーの構成要素、206…区分要素の候補、207…
区分要素候補・キー要素の一覧表、208…区分要素・
キー要素のアクセスキー中の桁位置,桁数の一覧表、3
01…アクセスキー、302…区分要素・キー要素の桁
位置、303…区分要素・キー要素抽出処理、304…
ハッシュ関数、305…ハッシュ制御表、306…格納
ページ。
101 ... Partition element / key element selection process, 102 ... Access key configuration column assignment standard, 103 ... Table showing digit positions of partition element / key element, 104 ... Divisor / start storage page determination process, 105 ... Actual record, 106 ... Divisor / start storage page list (hash control table), 201 ... Partition element candidate / key element selection processing, 202 ... Partition element / key element selection processing, 203 ... Column assignment reference table, 204 ... Access in access target record Key 205, access key component 206, segment candidate, 207
Category element candidate / key element list, 208 ... Category element /
List of digit position and number of digits in access key of key element, 3
01 ... Access key, 302 ... Digit position of partition element / key element, 303 ... Partition element / key element extraction process, 304 ...
Hash function, 305 ... Hash control table, 306 ... Storage page.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 データベースアクセスにおけるアクセス
対象レコードのアクセスキーにより、当該アクセス対象
レコードの格納ページを直接求めるハッシュアクセス方
法において、アクセスキーの構成要素中からある要素が
連続番号に近い分布となるような範囲を示す要素及びそ
の連続番号に近い分布を示す要素を選択し、範囲を示す
要素の値毎に、その範囲内で連続番号に近い分布を示す
要素に対して除算法を用い、その範囲毎の除算法のパラ
メータを格納した制御表を参照しながら、除算法により
格納ページを求めることによりアクセスを実行すること
を特徴とするデータベースアクセス方法。
1. In a hash access method in which a storage page of an access target record is directly obtained by an access key of an access target record in database access, an element among access key components has a distribution close to a continuous number. Select an element showing a range and an element showing a distribution close to its continuous number, and for each value of the element showing a range, use the division method for the element showing a distribution close to a continuous number within that range, and A database access method characterized in that access is executed by obtaining a storage page by the division method while referring to a control table storing the parameters of the division method.
JP3327249A 1991-12-11 1991-12-11 Data base access method Pending JPH05158988A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3327249A JPH05158988A (en) 1991-12-11 1991-12-11 Data base access method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3327249A JPH05158988A (en) 1991-12-11 1991-12-11 Data base access method

Publications (1)

Publication Number Publication Date
JPH05158988A true JPH05158988A (en) 1993-06-25

Family

ID=18197001

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3327249A Pending JPH05158988A (en) 1991-12-11 1991-12-11 Data base access method

Country Status (1)

Country Link
JP (1) JPH05158988A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08161351A (en) * 1994-12-07 1996-06-21 Toshiba Corp Word number replacing method, index preparing method and method and device for document retrieval

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08161351A (en) * 1994-12-07 1996-06-21 Toshiba Corp Word number replacing method, index preparing method and method and device for document retrieval

Similar Documents

Publication Publication Date Title
Peterson Addressing for random-access storage
US4785400A (en) Method for processing a data base
JPH04230575A (en) Method and apparatus for performing key hashing in data processor
CN111914020A (en) Data synchronization method and device and data query method and device
JP2001331509A (en) Relational database processor, relational database processing method, and computer-readable recording medium recorded with relational database processing program
Price Table lookup techniques
CN116881287A (en) Data query method and related equipment
US6711596B1 (en) Method and apparatus for determining the approximate valve of a logarithmic function
JPH05158988A (en) Data base access method
JP2007048318A (en) Relational database processing method and relational database processor
CN113590805A (en) Method and device for searching textile commodity names based on knowledge graph
JPH06139280A (en) File management system
JPH0962696A (en) Data base managing system
JPH05334354A (en) Method for reading-in index organization file
JPH04257062A (en) Data processor using hash queue
Bratbergsengen et al. Improved and optimized partitioning techniques in database query processing
JPS60211542A (en) Data retrieval circuit
JPH04101272A (en) Data element retrieving method
KR20210052148A (en) Method and apparatus for conversing data key value
JPH09330322A (en) Data retrieval device
JPH1049545A (en) Associative storage device
GB2575845A (en) Data table control
JPH10240744A (en) System for processing retrieval of range division chart and method therefor and recording medium for recording retrieval processing program
JPH01253027A (en) Data base address calculating device
JPS5853768B2 (en) Document creation device with kanji dictionary