JPH08166897A - Data storing method and device in database system - Google Patents

Data storing method and device in database system

Info

Publication number
JPH08166897A
JPH08166897A JP6307632A JP30763294A JPH08166897A JP H08166897 A JPH08166897 A JP H08166897A JP 6307632 A JP6307632 A JP 6307632A JP 30763294 A JP30763294 A JP 30763294A JP H08166897 A JPH08166897 A JP H08166897A
Authority
JP
Japan
Prior art keywords
area
record
overflow
storage
page
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.)
Granted
Application number
JP6307632A
Other languages
Japanese (ja)
Other versions
JP2689928B2 (en
Inventor
Atsushi Ogasa
淳 小笠
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP6307632A priority Critical patent/JP2689928B2/en
Publication of JPH08166897A publication Critical patent/JPH08166897A/en
Application granted granted Critical
Publication of JP2689928B2 publication Critical patent/JP2689928B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To efficiently perform the data storage processing in a data base system in short time. CONSTITUTION: An area securing part 2 secures the continuous unused page within a database file as an initial area and an overflow area and registers the attribute information specific to each area in an area information storage area 3. An initial address generation part 4 calculates the storage candidate page or the storage candidate address within the initial area by the key value of a processing object record and the attribute information of the initial area within the area information storage area 3. An overflow address generation part 5 calculates the storage candidate page or the storage candidate address within each overflow area by the key value of the processing object record and the attribute information of each overflow area within the area information storage area 3. A record processing execution part 6 performs a record storage processing by the storage candidate page or the storage candidate address calculated in the initial address generation part 4 and the overflow address generation part 5.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、データベースシステム
におけるデータ格納方法およびデータ格納装置に関し、
特にキー値と、初期領域またはオーバフロー領域固有の
属性情報とを参照して、初期領域内またはオーバフロー
領域内のレコード格納候補ページ、または格納候補アド
レスである処理対象レコードの格納先を決定するデータ
ベースシステムにおけるデータ格納方法およびデータ格
納装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data storage method and data storage device in a database system,
In particular, by referring to the key value and the attribute information unique to the initial area or the overflow area, a database system that determines the storage destination page of the record storage candidate page in the initial area or the overflow area or the processing target record that is the storage candidate address The present invention relates to a data storage method and a data storage device.

【0002】[0002]

【従来の技術】特開昭61−216016号公報には、
データベースを格納する領域を、複数ページで構成され
る1次領域と、オーバフロー領域とに分割して管理する
データベースシステムに関する一技術が開示されてい
る。このようなオーバーフロー領域におけるページの管
理方法としては、ページ間チェーンを使用する方法と、
オーバフロー領域を予め用意しておきオーバフロー領域
内でどのページを使用しているか否かを管理する方法が
ある。
2. Description of the Related Art JP-A-61-216016 discloses
A technique related to a database system in which a region for storing a database is divided into a primary region composed of a plurality of pages and an overflow region for management is disclosed. As a method of managing pages in such an overflow area, a method of using an inter-page chain,
There is a method of preparing an overflow area in advance and managing which page is used in the overflow area.

【0003】前者のページチェーンを用いたオーバフロ
ーページの管理方法では、先頭のオーバフローページを
格納候補ページからページチェーンでリンクし、さらに
オーバフローページが複数存在する場合には、各オーバ
フローページを順次ページ間チェーンでリンクする。こ
の方法の場合、レコード格納処理では、キー値をハッシ
ングして得られた格納候補ページに処理対象レコードが
格納できない時には、順次ページ間チェーンを辿り、オ
ーバフローページ内にレコード格納可能な空きスペース
があるかどうかを判定し、レコードを格納している。
In the former overflow page management method using a page chain, the top overflow page is linked from the storage candidate page by a page chain, and when there are a plurality of overflow pages, each overflow page is sequentially linked between pages. Link in a chain. In this method, in the record storing process, when the record to be processed cannot be stored in the storage candidate page obtained by hashing the key value, the chain between pages is sequentially traced, and there is a free space for storing the record in the overflow page. It is determined whether or not the record is stored.

【0004】一方、後者の予めオーバフロー領域を用意
してオーバフローページを管理する方法では、オーバフ
ローページが必要となった場合には処理対象レコードが
格納可能な空きスペースを有するページを領域内からサ
ーチし、見つかったページをオーバフローページとして
用いている。
On the other hand, in the latter method of preparing an overflow area in advance and managing an overflow page, when an overflow page is required, a page having an empty space in which a record to be processed can be stored is searched from within the area. , The found page is used as an overflow page.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、この従
来のページ間チェーンによるオーバフローページの管理
方法においては、レコード追加時において、処理対象レ
コードを追加しようとする格納候補ページに既に他のレ
コードが格納されていて(シノニム発生)、格納するこ
とができない場合、格納候補ページに処理対象レコード
を格納するだけの空きスペースがなかった場合、あるい
はレコード検索時において目的のレコードが格納候補ペ
ージになかった場合には、各ページ間チェーンを順次辿
る必要があり、目的のレコードや空きスペースの有無に
かかわらず、各ページごとにページ読み出し処理が発生
するという問題点がある。
However, according to this conventional overflow page management method by the inter-page chain, when a record is added, another record is already stored in the storage candidate page to which the record to be processed is to be added. If there is no free space to store the record to be processed in the storage candidate page, or if the target record is not in the storage candidate page when searching for records, Has a problem that a page read process occurs for each page regardless of whether there is a target record or a free space because it is necessary to sequentially follow the chain between pages.

【0006】さらに、格納候補ページを基点としてペー
ジ間チェーンが構成されているために、ハッシング結果
が同一格納候補ページとなるような異なるキー値を持っ
た複数レコードを同時に処理しようとしても、オーバフ
ローページでページ排他制御処理が発生して1つのレコ
ード処理が完結するまで他の処理が動作できないという
同時走行性に関する問題点がある。
Further, since the inter-page chain is formed with the storage candidate page as a starting point, even if an attempt is made to simultaneously process a plurality of records having different key values so that the hashing result is the same storage candidate page, the overflow page is processed. Therefore, there is a problem regarding the simultaneous running property that the page exclusive control process occurs and other processes cannot operate until one record process is completed.

【0007】また、従来のオーバフロー領域内のページ
使用状況を用いたオーバフローページの管理方法におい
ては、処理対象レコードのキー値に関係なくオーバフロ
ーページが管理されている為に、特にレコード検索時に
は、オーバフロー領域内で使用されている全てのオーバ
フローページに関し目的のレコードか否かを判定しなが
ら探さなければならないのでページ読み出し処理が必要
以上に発生し、検索時の処理時間が増大するという問題
点がある。
In the conventional overflow page management method using the page usage status in the overflow area, the overflow page is managed regardless of the key value of the record to be processed. Since it is necessary to search for all the overflow pages used in the area while judging whether or not they are the target records, there is a problem that the page reading process occurs more than necessary and the processing time at the time of search increases. .

【0008】本発明の目的は、データベースシステムに
おけるデータ格納処理を効率的に短時間で実行すること
にある。
An object of the present invention is to efficiently execute data storage processing in a database system in a short time.

【0009】本発明の他の目的は、データベースへのレ
コード追加時にシノニムが発生し、初期領域内のページ
がオーバフローした場合でも、ページ間チェーンを辿っ
て順次オーバフローページ内に該レコードの格納アドレ
スを探していくのではなく、初期領域と同様に、キー値
とオーバフロー領域情報に基づいて各オーバフロー領域
内の格納アドレスを算定し、決定することで、ページ間
チェーンを辿る為に必要とされていたページ読み出し回
数を削減し処理時間の短縮を図ることにある。
Another object of the present invention is to sequentially store the storage addresses of the records in the overflow page by tracing the inter-page chain even when a synonym occurs when a record is added to the database and the page in the initial area overflows. Rather than searching for it, it was necessary to trace the inter-page chain by calculating and deciding the storage address in each overflow area based on the key value and overflow area information, as in the initial area. This is to reduce the number of page readings and shorten the processing time.

【0010】さらに本発明の他の目的は、格納アドレス
を確保された領域固有の属性情報を用いて算定すること
で、初期領域内でシノニムとなっていたレコード群、あ
るいはオーバフロー領域内でシノニムとなっていたレコ
ード群を、次に用意されたオーバフロー領域内ではそれ
ぞれ別ページに分散させて格納し、レコード処理の同時
走行性を向上させることにある。
Still another object of the present invention is to calculate a storage address using attribute information unique to a secured area, so that a record group that has become a synonym in the initial area or a synonym in an overflow area can be identified. This is to improve the simultaneous running property of the record processing by storing the record groups that have been stored in the next prepared overflow area by distributing them to different pages.

【0011】[0011]

【課題を解決するための手段】本発明の第1のデータベ
ースシステムにおけるデータ格納方法は、データベース
ファイル内の連続未使用ページを検索する検索ステップ
と、初期領域およびオーバフロー領域として確保する確
保ステップと、レコードを該初期領域に格納するととも
に、該レコードが該初期領域に格納できない場合には、
該オーバフロー領域に格納する格納ステップとを備えて
いる。
According to a first aspect of the present invention, there is provided a data storage method in a database system, which comprises a search step of searching for continuous unused pages in a database file, and a securing step of securing an initial area and an overflow area. When the record is stored in the initial area and the record cannot be stored in the initial area,
A storage step of storing in the overflow area.

【0012】本発明の第2のデータベースシステムにお
けるデータ格納装置は、レコード内の指定されたフィー
ルドをキー項目とし、その値であるキー値に基づいて該
レコードのデータベースファイルに対する格納アドレス
を決定するデータベースシステムにおけるデータ格納装
置であって、前記データベースファイル内の連続未使用
ページを検索し、初期領域およびオーバフロー領域とし
て確保するとともに、確保した領域に固有の属性情報を
領域情報記憶域に登録する領域確保部と、前記レコード
を前記領域確保部で確保された前記初期領域に格納する
ために、前記レコードのキー値を用いて前記初期領域内
の格納候補ページか格納候補アドレスのいずれか一方を
算出し、該ページか該アドレスのいずれか一方が指す領
域へ該レコードを格納するとともに、該レコードを前記
初期領域に格納できなかった場合には、該レコードを前
記領域確保部で確保された前記オーバフロー領域に格納
するために、前記レコードのキー値を用いて前記オーバ
フロー領域内の格納候補ページか格納候補アドレスのい
ずれか一方を算出し、該ページか該アドレスのいずれか
一方が指す領域へ該レコードを格納する制御部とを備え
ている。
The data storage device in the second database system of the present invention uses a designated field in a record as a key item, and determines a storage address for the database file of the record based on the key value which is the value of the field. A data storage device in the system, which secures an area for searching consecutive unused pages in the database file and securing them as an initial area and an overflow area, and registering attribute information unique to the secured area in the area information storage area. And a storage candidate page or storage candidate address in the initial area is calculated using the key value of the record to store the record in the initial area secured by the area securing unit. , The record to the area pointed to by either the page or the address When the record cannot be stored in the initial area while storing the record, the overflow area is stored using the key value of the record in order to store the record in the overflow area secured by the area securing unit. And a control unit for calculating one of the storage candidate page and the storage candidate address and storing the record in an area designated by one of the page and the address.

【0013】本発明の第3のデータベースシステムにお
けるデータ格納装置は、レコード内の指定されたフィー
ルドをキー項目とし、その値であるキー値に基づいて該
レコードのデータベースファイルに対する格納アドレス
を決定するデータベースシステムにおけるデータ格納装
置であって、前記データベースファイル内の連続未使用
ページを検索し、初期領域およびオーバフロー領域とし
て確保するとともに、確保した領域に固有の属性情報を
領域情報記憶域に登録する領域確保部と、前記レコード
のキー値と前記領域確保部で前記領域情報記憶域に登録
されている前記領域確保部で確保された前記初期領域の
属性情報とに基づいて、前記初期領域内の格納候補ペー
ジか格納候補アドレスのいずれか一方を算出する初期ア
ドレス生成部と、前記レコードのキー値と前記領域情報
記憶域に登録されている前記領域確保部で確保された前
記オーバフロー領域の属性情報とに基づいて、前記オー
バフロー領域内の格納候補ページか格納候補アドレスの
いずれか一方を算出するオーバフローアドレス生成部
と、前記初期アドレス生成部、および前記オーバフロー
アドレス生成部で算定された格納候補ページか格納候補
アドレスのいずれか一方が指す領域に、前記レコードを
格納するレコード処理実行部と、前記レコードを前記初
期領域に格納するために、前記初期アドレス生成部を起
動して前記初期領域内の格納候補ページか格納候補アド
レスのいずれか一方を算出し、前記レコード処理実行部
を起動して該ページか該アドレスのいずれか一方が指す
領域へ該レコードを格納するとともに、該レコードを前
記初期領域に格納できなかった場合には、該レコードを
オーバフロー領域に格納するために、前記オーバフロー
アドレス生成部を起動して前記オーバフロー領域内の格
納候補ページか格納候補アドレスのいずれか一方を算出
し、前記レコード処理実行部を起動して該ページか該ア
ドレスのいずれか一方が指す領域へ該レコードを格納す
る制御部とを備えている。
The data storage device in the third database system of the present invention uses a designated field in a record as a key item, and determines a storage address for the database file of the record based on the key value which is the value of the field. A data storage device in the system, which secures an area for searching consecutive unused pages in the database file and securing them as an initial area and an overflow area, and registering attribute information unique to the secured area in the area information storage area. A storage candidate in the initial area based on a copy number, the key value of the record, and the attribute information of the initial area secured by the area securing unit registered in the area information storage area by the region securing unit. An initial address generation unit that calculates either a page or a storage candidate address, Either a storage candidate page or a storage candidate address in the overflow area based on the key value of the record and the attribute information of the overflow area secured by the area securing unit registered in the area information storage area. Record processing is executed to store the record in an area indicated by either an overflow address generation unit that calculates one, the initial address generation unit, or the storage candidate page or the storage candidate address calculated by the overflow address generation unit. Section, in order to store the record in the initial area, the initial address generation section is activated to calculate either a storage candidate page or a storage candidate address in the initial area, and the record processing execution section Start up and store the record in the area pointed to by either the page or the address If the record cannot be stored in the initial area, either the storage candidate page or the storage candidate address in the overflow area is activated by activating the overflow address generation unit to store the record in the overflow area. And a control unit for calculating one of them, activating the record processing execution unit, and storing the record in an area designated by either the page or the address.

【0014】本発明の第4のデータベースシステムにお
けるデータ格納装置は、レコード内の指定されたフィー
ルドをキー項目とし、その値であるキー値に基づいて該
レコードのデータベースファイルに対する格納アドレス
を決定するデータベースシステムにおけるデータ格納装
置であって、前記データベースファイル内の連続未使用
ページを検索し、初期領域およびオーバフロー領域とし
て確保する領域確保部と、この領域確保部が確保した初
期領域およびオーバフロー領域に固有の属性情報として
領域番号、領域内ページ数、および先頭ページ番号から
なる組データを登録する領域情報記憶域と、前記レコー
ドのキー値と前記領域確保部で前記領域情報記憶域に登
録されている前記領域確保部で確保された前記初期領域
の属性情報とに基づいて、前記初期領域内の格納候補ペ
ージか格納候補アドレスのいずれか一方を算出する初期
アドレス生成部と、前記レコードのキー値と前記領域情
報記憶域に登録されている前記領域確保部で確保された
前記オーバフロー領域の属性情報とに基づいて、前記オ
ーバフロー領域内の格納候補ページか格納候補アドレス
のいずれか一方を算出するオーバフローアドレス生成部
と、前記初期アドレス生成部、および前記オーバフロー
アドレス生成部で算定された格納候補ページか格納候補
アドレスのいずれか一方が指す領域に、前記レコードを
格納するレコード処理実行部と、前記領域情報記憶域に
前記初期領域の属性情報が格納されていない場合には、
前記領域確保部を起動して前記初期領域を確保し、該初
期領域の属性情報を前記領域情報記憶域に登録し、前記
レコードを前記初期領域に格納するために、前記初期ア
ドレス生成部を起動して前記初期領域内の格納候補ペー
ジか格納候補アドレスのいずれか一方を算出し、前記レ
コード処理実行部を起動して該ページか該アドレスのい
ずれか一方が指す領域へ該レコードを格納する一方、該
レコードを前記初期領域に格納できなかった場合で、か
つ前記領域情報記憶域に前記オーバフロー領域の属性情
報が格納されていない場合には、前記領域確保部を起動
して前記オーバフロー領域を確保し、前記オーバフロー
領域の属性情報を前記領域情報記憶域に登録し、該レコ
ードを前記オーバフロー領域に格納するために、前記オ
ーバフローアドレス生成部を起動して前記オーバフロー
領域内の格納候補ページか格納候補アドレスのいずれか
一方を算出し、前記レコード処理実行部を起動して該ペ
ージか該アドレスのいずれか一方が指す領域へ該レコー
ドを格納するとともに、さらに該レコードを前記オーバ
フロー領域に格納できなかった場合で、かつ前記領域情
報記憶域に別のオーバフロー領域の属性情報が格納され
ていない場合には、前記領域確保部を起動して別のオー
バフロー領域を確保し、別のオーバフロー領域の属性情
報を前記領域情報記憶域に登録し、該レコードを別のオ
ーバフロー領域に格納するために、前記オーバフローア
ドレス生成部を起動して該オーバフロー領域内の格納候
補ページか格納候補アドレスのいずれか一方を算出し、
前記レコード処理実行部を起動して該ページか該アドレ
スのいずれか一方が指す領域へ該レコードを格納する制
御部とを備えている。
The data storage device in the fourth database system of the present invention uses a designated field in a record as a key item, and determines a storage address for the database file of the record based on the key value which is the value of the field. A data storage device in the system, which is an area reserve unit that searches for consecutive unused pages in the database file and secures it as an initial region and an overflow region, and an initial region and an overflow region that are secured by this region reserve unit. An area information storage area for registering group data consisting of an area number, the number of pages in the area, and a first page number as attribute information, a key value of the record, and the area reservation unit registered in the area information storage area. Based on the attribute information of the initial area secured by the area securing unit It is ensured by an initial address generation unit that calculates either a storage candidate page or a storage candidate address in the initial area, and a key value of the record and the area reservation unit registered in the area information storage area. An overflow address generation unit that calculates either a storage candidate page or a storage candidate address in the overflow region based on the attribute information of the overflow region, the initial address generation unit, and the overflow address generation unit. In the case where the attribute information of the initial area is not stored in the area indicated by either the calculated storage candidate page or the storage candidate address, the record processing execution unit that stores the record, and the area information storage area ,
The area allocation unit is activated to secure the initial area, the attribute information of the initial area is registered in the area information storage area, and the initial address generation unit is activated to store the record in the initial area. One of the storage candidate page and the storage candidate address in the initial area is calculated, and the record processing execution unit is activated to store the record in the area pointed to by either the page or the address. If the record could not be stored in the initial area and the attribute information of the overflow area is not stored in the area information storage area, the area securing unit is activated to secure the overflow area. However, in order to register the attribute information of the overflow area in the area information storage area and store the record in the overflow area, the overflow address is stored. The generation unit is activated to calculate either the storage candidate page or the storage candidate address in the overflow area, and the record processing execution unit is activated to move the record to the area indicated by either the page or the address. When the record cannot be stored in the overflow area and the attribute information of another overflow area is not stored in the area information storage area, the area securing unit is activated. Secures another overflow area, registers the attribute information of the other overflow area in the area information storage area, and activates the overflow address generation unit to store the record in the other overflow area. Calculate either storage candidate page or storage candidate address in the area,
And a control unit for activating the record processing execution unit and storing the record in an area designated by either the page or the address.

【0015】[0015]

【実施例】以下、本発明の一実施例について、図を参照
しながら詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below in detail with reference to the drawings.

【0016】図1を参照すると、本発明の一実施例であ
るデータベースシステムにおけるデータ格納装置は、デ
ータベースファイル内の連続未使用ページをサーチし、
これを初期領域あるいはオーバフロー領域として確保す
ると共に、確保した領域に固有の属性情報を領域情報記
憶域3に登録する領域確保部2と、レコード格納時に、
処理対象レコードのキー値と領域情報記憶域3に登録さ
れている初期領域の属性情報とに基づいて、初期領域内
の格納候補ページまたは格納候補アドレスを算出する初
期アドレス生成部4と、処理対象レコードのキー値と領
域情報記憶域3に登録されている各オーバフロー領域の
属性情報とに基づいてそれぞれのオーバフロー領域内の
格納候補ページまたは格納候補アドレスを算出するオー
バフローアドレス生成部5と、初期アドレス生成部4、
およびオーバフローアドレス生成部5で算定された格納
候補ページあるいは格納候補アドレスに基づいてレコー
ド格納処理を施すレコード処理実行部6とを備えてい
る。
Referring to FIG. 1, a data storage device in a database system according to an embodiment of the present invention searches for consecutive unused pages in a database file,
An area securing unit 2 that secures this as an initial area or an overflow area, registers attribute information unique to the secured area in the area information storage area 3, and at the time of record storage,
An initial address generation unit 4 that calculates a storage candidate page or a storage candidate address in the initial area based on the key value of the processing target record and the attribute information of the initial area registered in the area information storage area 3, and the processing target. An overflow address generation unit 5 for calculating a storage candidate page or a storage candidate address in each overflow area based on the key value of the record and the attribute information of each overflow area registered in the area information storage area 3, and an initial address Generation unit 4,
And a record processing execution unit 6 that performs a record storage process based on the storage candidate page or the storage candidate address calculated by the overflow address generation unit 5.

【0017】図4を参照すると、領域情報記録部3は、
初期領域の属性情報を格納する初期領域情報301と、
オーバフロー領域の属性情報を格納するオーバフロー領
域情報302と、ページ構成303とから構成される。
Referring to FIG. 4, the area information recording unit 3 is
Initial area information 301 storing attribute information of the initial area,
It is composed of overflow area information 302 for storing attribute information of the overflow area and a page structure 303.

【0018】初期領域情報301は、属性情報として領
域番号、領域内ページ数、および先頭ページ番号を含
み、図4の例においては、初期領域番号iを持つ連続ペ
ージがデータベースファイル内のページ番号xからsペ
ージ分確保されていることを示している。
The initial area information 301 includes the area number, the number of pages in the area, and the first page number as attribute information. In the example of FIG. 4, the continuous page having the initial area number i is the page number x in the database file. It means that s pages have been secured.

【0019】オーバフロー領域情報302は、属性情報
として領域番号、領域内ページ数、および先頭ページ番
号を含み、図4の例においては、オーバフロー領域番号
1を持つ連続ページがページ番号yからtページ分確保
され、またオーバフロー領域番号2を持つ連続ページが
ページ番号zからuページ分確保されていることを示し
ている。
The overflow area information 302 includes the area number, the number of pages in the area, and the first page number as attribute information. In the example of FIG. 4, continuous pages having the overflow area number 1 are from page number y to page t. This shows that the continuous pages having the overflow area number 2 are secured for the page numbers z to u.

【0020】ページ構成303は、初期領域情報301
とオーバフロー領域情報302とを関係づける。
The page structure 303 is the initial area information 301.
And the overflow area information 302 are associated with each other.

【0021】次に本発明の一実施例であるデータベース
システムにおけるデータ格納装置について、図1〜図4
を参照して説明する。
Next, a data storage device in a database system according to an embodiment of the present invention will be described with reference to FIGS.
Will be described with reference to.

【0022】利用者からのレコード格納要求に応じて、
制御部1はまず領域情報記録部3に初期領域に関する属
性情報が登録されているか否かを判定し(ステップ10
1)、登録されていると判定した場合には、ステップ1
04へ至る。
In response to a record storage request from the user,
The control unit 1 first determines whether or not the attribute information about the initial area is registered in the area information recording unit 3 (step 10
1) If it is determined that it is registered, step 1
To 04.

【0023】制御部1は、領域情報記録部3に初期領域
の属性情報が登録されていないと判定した場合には、領
域確保部2を起動する(ステップ102)。
When it is determined that the attribute information of the initial area is not registered in the area information recording section 3, the control section 1 activates the area securing section 2 (step 102).

【0024】領域確保部2は、未使用連続ページをデー
タベースファイル内から検索して初期領域として確保す
る(ステップ201)と共に、確保した初期領域に関す
る情報を属性情報として領域情報記録域3に登録する
(ステップ202)。
The area reserving unit 2 retrieves an unused continuous page from the database file and reserves it as an initial area (step 201), and registers information on the secured initial area in the area information recording area 3 as attribute information. (Step 202).

【0025】次に制御部1は初期アドレス生成部4を起
動する(ステップ103)。
Next, the controller 1 activates the initial address generator 4 (step 103).

【0026】初期アドレス生成部4は、処理対象となる
レコードのキー値を制御部1から、また初期領域の属性
情報を領域情報記憶域3から取得し、初期領域内の格納
候補アドレスを算定し、制御を制御部1に戻す。
The initial address generation unit 4 obtains the key value of the record to be processed from the control unit 1 and the attribute information of the initial area from the area information storage area 3, and calculates the storage candidate address in the initial area. , Control is returned to the control unit 1.

【0027】以下に初期アドレス生成部4の処理を詳細
に説明する。
The processing of the initial address generator 4 will be described in detail below.

【0028】初期アドレス生成部4は、処理対象となる
レコードのキー値を制御部1から取得し(ステップ40
1)、初期領域の属性情報である初期領域情報301を
領域情報記憶域3から取得する(ステップ402)。
The initial address generator 4 acquires the key value of the record to be processed from the controller 1 (step 40).
1) The initial area information 301, which is the attribute information of the initial area, is acquired from the area information storage area 3 (step 402).

【0029】次に初期アドレス生成部4は、初期領域情
報301内の領域番号と、先頭ページ番号と、制御部1
から得た処理対象レコードの持つキー値とから、ハッシ
ュ対象となる被演算値を生成する(ステップ403)。
Next, the initial address generator 4 determines the area number in the initial area information 301, the top page number, and the controller 1
A computed value to be hashed is generated from the key value of the processing target record obtained from (step 403).

【0030】被演算値の生成方法は、例えば領域番号、
先頭ページ番号、キー値の順に重みを付け、その和をと
る方法がある。
The method of generating the operand value is, for example, a region number,
There is a method of weighting in order of the first page number and the key value and taking the sum.

【0031】初期アドレス生成部4は、ステップ403
で求めた値をハッシングし(ステップ404)、ハッシ
ング結果の値と初期領域情報301内の領域内ページ数
とから初期領域内の格納候補ページ番号を算出する(ス
テップ405)。
The initial address generator 4 operates in step 403.
The value obtained in step 2 is hashed (step 404), and the storage candidate page number in the initial area is calculated from the value of the hashing result and the number of pages in the area in the initial area information 301 (step 405).

【0032】格納候補ページ番号の算出方法は、例えば
ハッシュ結果の値をページ数で割ったときの剰余に初期
領域の先頭ページ番号を加える方法がある。
As a method of calculating the storage candidate page number, for example, there is a method of adding the first page number of the initial area to the remainder when the value of the hash result is divided by the number of pages.

【0033】制御部1は、初期アドレス生成部4の処理
が終了すると、レコード処理実行部6を起動する(ステ
ップ104)。
When the processing of the initial address generation unit 4 is completed, the control unit 1 activates the record processing execution unit 6 (step 104).

【0034】レコード処理実行部6は、初期アドレス生
成部4により算出された格納候補アドレスが指す初期領
域内の該当ページをデータベースファイルから読み出し
(ステップ601)、処理対象レコードが該ページに格
納可能か否かを判定し(ステップ602)、格納可能と
判定した場合には該処理対象レコードを該ページに格納
する(ステップ603)。
The record processing execution unit 6 reads from the database file the corresponding page in the initial area pointed to by the storage candidate address calculated by the initial address generation unit 4 (step 601), and whether the record to be processed can be stored in that page. It is determined whether or not (step 602), and when it is determined that the processing target record can be stored, the processing target record is stored in the page (step 603).

【0035】レコード処理実行部6は、該ページに処理
対象レコードを格納できないと判定した場合には、処理
を制御部1に戻す。
When the record processing execution unit 6 determines that the record to be processed cannot be stored in the page, it returns the process to the control unit 1.

【0036】レコード処理実行部6から初期領域内の格
納候補アドレスにレコードが格納できないと通知された
制御部1は、領域情報記録部3にオーバフロー領域に関
する属性情報であるオーバフロー領域情報302が登録
されているか否かを判定し(ステップ105)、登録さ
れていると判定した場合には、ステップ108へ至る。
When the control unit 1 is notified by the record processing execution unit 6 that the record cannot be stored at the storage candidate address in the initial area, the overflow area information 302, which is attribute information about the overflow area, is registered in the area information recording unit 3. It is determined whether or not it is registered (step 105), and when it is determined that it is registered, the process proceeds to step 108.

【0037】制御部1は、ステップ105において、オ
ーバフロー領域情報302が登録されていないと判定し
た場合には、領域確保部2を起動する(ステップ10
6)。
When it is determined in step 105 that the overflow area information 302 is not registered, the control section 1 activates the area securing section 2 (step 10).
6).

【0038】領域確保部2は、初期領域確保時と同様に
未使用連続ページをデータベースファイル内から検索し
てオーバフロー領域として確保する(ステップ203)
と共に、確保したオーバフロー領域に関する情報を属性
情報すなわちオーバフロー領域情報302として領域情
報記録域3に登録し(ステップ204)、処理を制御部
1に戻す。
The area reserving unit 2 retrieves an unused continuous page from the database file and reserves it as an overflow area, as in the case of reserving the initial area (step 203).
At the same time, information about the secured overflow area is registered in the area information recording area 3 as attribute information, that is, overflow area information 302 (step 204), and the process is returned to the control unit 1.

【0039】次に制御部1は、オーバフローアドレス生
成部5を起動する(ステップ107)。
Next, the controller 1 activates the overflow address generator 5 (step 107).

【0040】オーバフローアドレス生成部5は、処理対
象となるレコードのキー値を制御部1から、オーバフロ
ー領域情報302を領域情報記憶域3から取得し、オー
バフロー領域内の格納候補アドレスを算定し、制御を制
御部1に戻す。
The overflow address generation unit 5 acquires the key value of the record to be processed from the control unit 1 and the overflow area information 302 from the area information storage area 3, calculates the storage candidate address in the overflow area, and controls it. To the control unit 1.

【0041】以下にオーバフローアドレス生成部5の処
理を詳細に説明する。
The processing of the overflow address generator 5 will be described in detail below.

【0042】オーバフローアドレス生成部5は、処理対
象となるレコードのキー値を制御部1から取得し(ステ
ップ501)、オーバフロー領域の属性情報であるオー
バフロー領域情報302を領域情報記憶域3から取得す
る(ステップ502)。
The overflow address generation unit 5 acquires the key value of the record to be processed from the control unit 1 (step 501) and acquires the overflow area information 302, which is the attribute information of the overflow area, from the area information storage area 3. (Step 502).

【0043】次にオーバフローアドレス生成部5は、オ
ーバフロー領域情報302内の領域番号と、先頭ページ
番号と、制御部1から得た処理対象レコードの持つキー
値とから、ハッシュ対象となる被演算値を生成する(ス
テップ503)。
Next, the overflow address generation unit 5 uses the area number in the overflow area information 302, the first page number, and the key value of the processing target record obtained from the control unit 1 to calculate the value to be hashed. Is generated (step 503).

【0044】被演算値の生成方法は、初期アドレス生成
部4における処理と同様に、重み付けによる方法を採用
しても、またオーバフローアドレス生成用に別の方式を
設定してもよい。いずれにしても初期アドレス生成時に
おける被演算値と異なる値が得られるものを採用する。
As the method of generating the operand, a weighting method may be adopted as in the processing in the initial address generating section 4, or another method may be set for overflow address generation. In any case, the one that can obtain a value different from the value to be calculated at the time of generating the initial address is adopted.

【0045】オーバフローアドレス生成部5は、ステッ
プ503で求めた値をハッシングし(ステップ50
4)、ハッシング結果の値とオーバフロー領域情報30
2内の領域内ページ数とからオーバフロー領域内の格納
候補ページ番号を算出する(ステップ505)。
The overflow address generator 5 hashes the value obtained in step 503 (step 50).
4), value of hashing result and overflow area information 30
The storage candidate page number in the overflow area is calculated from the number of pages in area 2 (step 505).

【0046】格納候補ページ番号の算出方法は、初期ア
ドレス生成時と同様な方法が考えられる。
As a method of calculating the storage candidate page number, the same method as that at the time of generating the initial address can be considered.

【0047】制御部1は、オーバフローアドレス生成部
5の処理が終了すると、レコード処理実行部6を再起動
する(ステップ108)。
When the processing of the overflow address generation section 5 is completed, the control section 1 restarts the record processing execution section 6 (step 108).

【0048】再起動されたレコード処理実行部6は、オ
ーバフローアドレス生成部5により算出された格納候補
アドレスが指すオーバフロー領域内の該当ページをデー
タベースファイルから読み出し(ステップ604)、処
理対象レコードが該ページに格納可能か否かを判定し
(ステップ605)、格納可能と判定した場合には該処
理対象レコードを該ページに格納する(ステップ60
6)。
The restarted record processing execution unit 6 reads the corresponding page in the overflow area indicated by the storage candidate address calculated by the overflow address generation unit 5 from the database file (step 604), and the record to be processed is the page. It is determined whether or not the record can be stored in the page (step 605), and when it is determined that the record can be stored in the page, the record to be processed is stored in the page (step 60).
6).

【0049】レコード処理実行部6は、該ページに処理
対象レコードを格納できないと判定した場合には、該オ
ーバフロー領域には該処理対象レコードを格納できない
ので、初期領域内に処理対象レコードを格納できなかっ
た場合と同様に、処理を制御部1に戻し、再び領域確保
部2によるオーバフロー領域の確保、オーバフローアド
レス生成部5による新規に確保された別のオーバフロー
領域に対する格納候補アドレス算定を経て、再々度レコ
ード処理実行部6を起動してレコードを格納する。
If the record processing execution unit 6 determines that the record to be processed cannot be stored in the page, it cannot store the record to be processed in the overflow area, so that the record to be processed can be stored in the initial area. In the same manner as in the case where there is no such a case, the processing is returned to the control unit 1, the overflow area is secured again by the area securing unit 2, and the storage candidate address for another newly secured overflow area is calculated by the overflow address generating unit 5 and then re-repeated. Each time, the record processing execution unit 6 is activated to store the record.

【0050】この一連の処理により、初期領域で同一ペ
ージに格納されていた異なるキー値を持つレコードが、
オーバフロー領域においては、別ページに格納されるこ
とになる。
By this series of processing, the records having different key values stored in the same page in the initial area are
In the overflow area, it will be stored in another page.

【0051】例えば図4において、初期領域内の格納候
補ページを求めるためにキー値、初期領域情報301の
領域番号i、領域内ページ数s、および先頭ページ番号
xを、オーバフロー領域1内の格納候補アドレスを求め
るために変数にキー値、オーバフロー領域情報302の
領域番号j、領域内ページ数t、先頭ページ番号yを、
さらにオーバフロー領域2内の格納候補アドレスを求め
るために変数にキー値、オーバフロー領域302の領域
番号k、領域内ページ数u、先頭ページ番号zをそれぞ
れ用いることにより、初期領域内でページ番号「j」に
格納されていたキー値「a」、「b」、「c」、および
「d」を持つレコードが、オーバフロー領域1内のペー
ジ番号「k」にはキー値「a」と、「b」を持つレコー
ドのみ格納されるようになり、またオーバフローページ
2内のページ番号「l」にはキー値「a」を持つレコー
ドのみを格納することができ、初期領域でシノニムが発
生するレコード群をオーバフロー領域内では分散させる
ことができるようになる。
For example, in FIG. 4, the key value, the area number i of the initial area information 301, the number of pages in the area s, and the start page number x are stored in the overflow area 1 in order to find the storage candidate page in the initial area. In order to obtain the candidate address, the key value, the area number j of the overflow area information 302, the number of pages in the area t, and the top page number y are set as variables.
Further, by using the key value, the area number k of the overflow area 302, the number of pages in the area u, and the first page number z as variables for obtaining the storage candidate address in the overflow area 2, the page number "j" is set in the initial area. The records having the key values “a”, “b”, “c”, and “d” stored in “” are stored in the page number “k” in the overflow area 1 as the key values “a” and “b”. Only records having the key value "a" can be stored in the page number "l" in the overflow page 2, and a record group in which a synonym occurs in the initial area is stored. Can be distributed in the overflow region.

【0052】例えば図4に示すように、領域情報記憶域
3内の初期領域情報301に初期領域番号i、領域内ペ
ージ数s、および先頭ページ番号xで示される初期領域
が登録され、オーバフロー領域情報302にオーバフロ
ー領域番号j、領域内ページ数t、先頭ページ番号yで
示されるオーバフロー領域が登録され、さらにオーバフ
ロー領域302にオーバフロー領域番号k、領域内ペー
ジ数u、先頭ページ番号zで示されるオーバフロー領域
が登録されているとする。
For example, as shown in FIG. 4, in the initial area information 301 in the area information storage area 3, the initial area number i, the number of pages in the area s, and the initial area indicated by the first page number x are registered, and the overflow area is registered. An overflow area indicated by an overflow area number j, the number of pages in the area t, and a start page number y is registered in the information 302, and further, an overflow area number k, the number of pages in the area u, and a start page number z are registered in the overflow area 302. It is assumed that the overflow area is registered.

【0053】まずキー値aを持つレコードを初期領域i
に格納するために初期アドレス生成部4により格納候補
アドレスを算出するとページjが示されるので、該レコ
ードをレコード処理実行部6によりページjに格納す
る。同様にして、キー値b、キー値c、およびキー値d
を持つレコードについてそれぞれ初期領域i内の格納候
補アドレスを算出すると、キー値aの場合と同様にペー
ジjが示されるので、該レコードをレコード処理実行部
6により格納する。
First, the record having the key value a is set to the initial area i.
Since the page j is shown when the storage candidate address is calculated by the initial address generation unit 4 to store it in the page, the record processing execution unit 6 stores the record in the page j. Similarly, key value b, key value c, and key value d
When the storage candidate address in the initial area i is calculated for each of the records with, the page j is shown as in the case of the key value a, and the record processing execution unit 6 stores the record.

【0054】次にキー値aを持つレコードを初期領域i
に格納するために初期アドレス生成部4により格納候補
アドレスを算出するとページjが示されたが、初期領域
iのページjには、該レコードが格納できないことによ
り、オーバフロー領域1に格納しようとしてオーバフロ
ーアドレス生成部5により格納候補アドレスを算出する
とページkが示されるので、該レコードをレコード処理
実行部6によりページkに格納する。同様にして、キー
値bを持つレコードを初期アドレス生成部4が示す初期
領域iのページjに格納しようとしたが格納できないこ
とにより、オーバフロー領域1に格納しようとしてオー
バフローアドレス生成部5により格納候補アドレスを算
出すると、ページkが示されるので、該レコードをレコ
ード処理実行部6により格納する。さらに同様にして、
キー値c、キー値dを持つレコードを、オーバフロー領
域1に格納しようとしてオーバフローアドレス生成部5
により格納候補アドレスを算出すると、ページkではな
く、それぞれページmが示されるので、該レコードをレ
コード処理実行部6により格納する。
Next, the record having the key value a is set to the initial area i.
The page j is shown when the storage candidate address is calculated by the initial address generation unit 4 to store it in the first area. However, since the record cannot be stored in the page j of the initial area i, the overflow is attempted to be stored in the overflow area 1. When the storage candidate address is calculated by the address generation unit 5, page k is shown. Therefore, the record processing execution unit 6 stores the record in page k. Similarly, an attempt to store a record having the key value b in page j of the initial area i indicated by the initial address generator 4 cannot be performed, so that the overflow address generator 5 attempts to store the record in the overflow area 1 and the storage candidate is stored. When the address is calculated, page k is shown, and the record is executed by the record processing execution unit 6. In the same way,
The overflow address generation unit 5 attempts to store a record having the key value c and the key value d in the overflow area 1.
When the storage candidate address is calculated by, the page m is shown instead of the page k, and the record processing execution unit 6 stores the record.

【0055】さらにキー値aを持つレコードを初期領域
iに格納するために初期アドレス生成部4により格納候
補アドレスを算出するとページjが示されたが、初期領
域iのページjには、該レコードが格納できず、さらに
オーバフロー領域1に格納しようとしてオーバフローア
ドレス生成部5により格納候補アドレスを算出するとペ
ージkが示されたが、該レコードはページkにも格納で
きないことにより、オーバフロー領域2に格納しようと
してオーバフローアドレス生成部5により格納候補アド
レスを算出するとページlが示されるので、該レコード
をレコード処理実行部6によりページlに格納する。同
様にして、キー値b、キー値c、およびキー値dを持つ
レコードをそれぞれオーバフロー領域2に格納しようと
してオーバフローアドレス生成部5により格納候補アド
レスを算出すると、それぞれページo、ページn、およ
びページpが示されるので、該レコードをレコード処理
実行部6により格納する。
Further, in order to store the record having the key value a in the initial area i, page j is shown when the storage candidate address is calculated by the initial address generating unit 4, but the page j of the initial area i has the record. Could not be stored, and page overflow k was shown when the storage address candidate was calculated by the overflow address generation unit 5 in order to store in the overflow area 1. However, since this record cannot be stored in page k either, it is stored in the overflow area 2. When the storage address is calculated by the overflow address generation unit 5 in order to indicate the page 1, the record processing execution unit 6 stores the record in the page 1. Similarly, when a storage candidate address is calculated by the overflow address generation unit 5 in an attempt to store the record having the key value b, the key value c, and the key value d in the overflow area 2, respectively, page o, page n, and page Since p is indicated, the record processing execution unit 6 stores the record.

【0056】このように、キー値毎にまたは各領域の属
性情報毎に、格納候補アドレスの算定方法を変えること
により、初期領域で同一ページに格納されていた異なる
キー値を持つレコードが、オーバフロー領域において
は、別ページに格納されることになる。
As described above, by changing the calculation method of the storage candidate address for each key value or for each attribute information of each area, records having different key values stored in the same page in the initial area overflow. In the area, it will be stored in another page.

【0057】以上により、本発明の一実施例であるデー
タベースシステムにおけるデータ格納装置の処理が完了
する。
With the above, the processing of the data storage device in the database system according to the embodiment of the present invention is completed.

【0058】本発明の一実施例であるデータベースシス
テムにおけるデータ格納装置は、データベースへのレコ
ード追加時にシノニムが発生し、初期領域内のページが
オーバフローした場合でも、ページ間チェーンを辿って
順次オーバフローページ内に該レコードの格納アドレス
を探していくのではなく、初期領域と同様に、キー値と
オーバフロー領域情報に基づいて各オーバフロー領域内
の格納アドレスを算定し、決定することで、ページ間チ
ェーンを辿る為に必要とされていたページ読み出し回数
を削減し処理時間を短縮することができる効果を有して
おり、さらに、格納アドレスを確保された領域固有の属
性情報を用いて算定することで、初期領域内でシノニム
となっていたレコード群、あるいはオーバフロー領域内
でシノニムとなっていたレコード群を、次に用意された
オーバフロー領域内ではそれぞれ別ページに分散させて
格納し、レコード処理の同時走行性を向上させることが
できる効果を有している。
In the data storage device in the database system according to the embodiment of the present invention, even if a page in the initial area overflows due to the occurrence of a synonym when a record is added to the database, sequential overflow pages are traced in the inter-page chain. Instead of searching for the storage address of the record inside, the inter-page chain is calculated by calculating and deciding the storage address in each overflow area based on the key value and overflow area information as in the initial area. It has the effect of reducing the number of page reads required for tracing and shortening the processing time. Furthermore, by calculating the storage address using the attribute information unique to the secured area, Records that were synonyms in the initial area, or synonyms in the overflow area The stomach record group, has been in the overflow area available then each store is dispersed in another page, and has an advantage of being able to improve the simultaneous running of record processing.

【0059】[0059]

【発明の効果】以上説明したように、本発明のデータベ
ースシステムにおけるデータ格納装置は、データベース
システムにおけるデータ格納処理を効率的に短時間で実
行することができる効果を有している。
As described above, the data storage device in the database system of the present invention has an effect that the data storage processing in the database system can be efficiently executed in a short time.

【0060】また、データベースへのレコード追加時に
シノニムが発生し、初期領域内のページがオーバフロー
した場合でも、ページ間チェーンを辿って順次オーバフ
ローページ内に該レコードの格納アドレスを探していく
のではなく、初期領域と同様に、キー値とオーバフロー
領域情報に基づいて各オーバフロー領域内の格納アドレ
スを算定し、決定することで、ページ間チェーンを辿る
為に必要とされていたページ読み出し回数を削減し、処
理時間を短縮することができる効果を有している。
Further, even when a synonym occurs when a record is added to the database and the page in the initial area overflows, the storage address of the record is not sequentially searched for in the overflow page by tracing the chain between pages. As with the initial area, by calculating and deciding the storage address in each overflow area based on the key value and overflow area information, the number of page read times required to follow the inter-page chain is reduced. It has an effect that the processing time can be shortened.

【0061】さらに、格納アドレスを確保された領域固
有の属性情報を用いて算定することで、初期領域内でシ
ノニムとなっていたレコード群、あるいはオーバフロー
領域内でシノニムとなっていたレコード群を、次に用意
されたオーバフロー領域内ではそれぞれ別ページに分散
させて格納し、レコード処理の同時走行性を向上させる
ことができる効果を有している。
Further, by calculating the storage address using the attribute information peculiar to the secured area, the record group that is a synonym in the initial area or the record group that is a synonym in the overflow area is Next, in the prepared overflow area, the pages are separately distributed and stored in different pages, which has the effect of improving the simultaneous running property of the record processing.

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

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

【図2】本発明の一実施例における制御部1、領域確保
部2、および初期アドレス生成部4の処理を示す流れ図
である。
FIG. 2 is a flowchart showing the processing of the control unit 1, the area securing unit 2, and the initial address generation unit 4 in the embodiment of the present invention.

【図3】本発明の一実施例におけるオーバフローアドレ
ス生成部5、レコード処理実行部6の処理を示す流れ図
である。
FIG. 3 is a flow chart showing processing of an overflow address generation unit 5 and a record processing execution unit 6 in an embodiment of the present invention.

【図4】本発明の一実施例における領域情報記憶域3の
内容を示す図である。
FIG. 4 is a diagram showing the contents of an area information storage area 3 in an embodiment of the present invention.

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

1 制御部 2 領域確保部 3 領域情報記憶域 4 初期アドレス生成部 5 オーバフローアドレス生成部 6 レコード処理実行部 1 control section 2 area reservation section 3 area information storage area 4 initial address generation section 5 overflow address generation section 6 record processing execution section

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 データベースファイル内の連続未使用ペ
ージを検索する検索ステップと、初期領域およびオーバ
フロー領域として確保する確保ステップと、レコードを
該初期領域に格納するとともに、該レコードが該初期領
域に格納できない場合には、該オーバフロー領域に格納
する格納ステップとを備えたことを特徴とするデータベ
ースシステムにおけるデータ格納方法。
1. A retrieval step of retrieving consecutive unused pages in a database file, a securing step of securing as an initial area and an overflow area, a record is stored in the initial area, and the record is stored in the initial area. If not possible, a storage step of storing in the overflow area is provided, and a data storage method in a database system.
【請求項2】 レコード内の指定されたフィールドをキ
ー項目とし、その値であるキー値に基づいて該レコード
のデータベースファイルに対する格納アドレスを決定す
るデータベースシステムにおけるデータ格納装置であっ
て、 前記データベースファイル内の連続未使用ページを検索
し、初期領域およびオーバフロー領域として確保すると
ともに、確保した領域に固有の属性情報を領域情報記憶
域に登録する領域確保部と、 前記レコードを前記領域確保部で確保された前記初期領
域に格納するために、前記レコードのキー値を用いて前
記初期領域内の格納候補ページか格納候補アドレスのい
ずれか一方を算出し、該ページか該アドレスのいずれか
一方が指す領域へ該レコードを格納するとともに、該レ
コードを前記初期領域に格納できなかった場合には、該
レコードを前記領域確保部で確保された前記オーバフロ
ー領域に格納するために、前記レコードのキー値を用い
て前記オーバフロー領域内の格納候補ページか格納候補
アドレスのいずれか一方を算出し、該ページか該アドレ
スのいずれか一方が指す領域へ該レコードを格納する制
御部とを備えたことを特徴とするデータベースシステム
におけるデータ格納装置。
2. A data storage device in a database system, wherein a designated field in a record is used as a key item, and a storage address for the database file of the record is determined based on a key value which is the value of the field. The area reservation unit that searches for consecutive unused pages in the area and reserves them as the initial area and the overflow area, and registers the attribute information unique to the secured area in the area information storage area, and the area reservation unit that secures the record. In order to store it in the initialized initial area, either the storage candidate page or the storage candidate address in the initial area is calculated using the key value of the record, and either the page or the address is pointed to. The record cannot be stored in the initial area while storing the record in the area In this case, in order to store the record in the overflow area secured by the area securing unit, either the storage candidate page or the storage candidate address in the overflow area is calculated using the key value of the record. And a control unit for storing the record in an area designated by either the page or the address.
【請求項3】 レコード内の指定されたフィールドをキ
ー項目とし、その値であるキー値に基づいて該レコード
のデータベースファイルに対する格納アドレスを決定す
るデータベースシステムにおけるデータ格納装置であっ
て、 前記データベースファイル内の連続未使用ページを検索
し、初期領域およびオーバフロー領域として確保すると
ともに、確保した領域に固有の属性情報を領域情報記憶
域に登録する領域確保部と、 前記レコードのキー値と前記領域確保部で前記領域情報
記憶域に登録されている前記領域確保部で確保された前
記初期領域の属性情報とに基づいて、前記初期領域内の
格納候補ページか格納候補アドレスのいずれか一方を算
出する初期アドレス生成部と、 前記レコードのキー値と前記領域情報記憶域に登録され
ている前記領域確保部で確保された前記オーバフロー領
域の属性情報とに基づいて、前記オーバフロー領域内の
格納候補ページか格納候補アドレスのいずれか一方を算
出するオーバフローアドレス生成部と、 前記初期アドレス生成部、および前記オーバフローアド
レス生成部で算定された格納候補ページか格納候補アド
レスのいずれか一方が指す領域に、前記レコードを格納
するレコード処理実行部と、 前記レコードを前記初期領域に格納するために、前記初
期アドレス生成部を起動して前記初期領域内の格納候補
ページか格納候補アドレスのいずれか一方を算出し、前
記レコード処理実行部を起動して該ページか該アドレス
のいずれか一方が指す領域へ該レコードを格納するとと
もに、該レコードを前記初期領域に格納できなかった場
合には、該レコードをオーバフロー領域に格納するため
に、前記オーバフローアドレス生成部を起動して前記オ
ーバフロー領域内の格納候補ページか格納候補アドレス
のいずれか一方を算出し、前記レコード処理実行部を起
動して該ページか該アドレスのいずれか一方が指す領域
へ該レコードを格納する制御部とを備えたことを特徴と
するデータベースシステムにおけるデータ格納装置。
3. A data storage device in a database system, wherein a designated field in a record is used as a key item, and a storage address for the database file of the record is determined based on a key value which is the value of the field. Area reservation unit that searches for consecutive unused pages in the area and reserves them as the initial area and overflow area, and registers the attribute information unique to the secured area in the area information storage area, the key value of the record and the area reservation Calculates either a storage candidate page or a storage candidate address in the initial area based on the attribute information of the initial area secured by the area securing section registered in the area information storage area An initial address generation unit, and a key value of the record and before being registered in the area information storage area An overflow address generation unit that calculates one of a storage candidate page or a storage candidate address in the overflow region based on attribute information of the overflow region secured by the storage region securing unit; and the initial address generation unit, And a record processing execution unit that stores the record in an area indicated by either the storage candidate page calculated by the overflow address generation unit or the storage candidate address, and the record processing execution unit that stores the record in the initial area. The initial address generation unit is activated to calculate either the storage candidate page or the storage candidate address in the initial area, and the record processing execution unit is activated to the area pointed to by either the page or the address. While storing the record, if the record cannot be stored in the initial area, In order to store the code in the overflow area, the overflow address generation unit is activated to calculate either a storage candidate page or a storage candidate address in the overflow area, and the record processing execution unit is activated to start the page. A data storage device in a database system, comprising: a control unit for storing the record in an area indicated by either one of the addresses.
JP6307632A 1994-12-12 1994-12-12 Data storage device in database system Expired - Fee Related JP2689928B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6307632A JP2689928B2 (en) 1994-12-12 1994-12-12 Data storage device in database system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6307632A JP2689928B2 (en) 1994-12-12 1994-12-12 Data storage device in database system

Publications (2)

Publication Number Publication Date
JPH08166897A true JPH08166897A (en) 1996-06-25
JP2689928B2 JP2689928B2 (en) 1997-12-10

Family

ID=17971377

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6307632A Expired - Fee Related JP2689928B2 (en) 1994-12-12 1994-12-12 Data storage device in database system

Country Status (1)

Country Link
JP (1) JP2689928B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61216016A (en) * 1985-02-26 1986-09-25 Fujitsu Ltd Area control system for data base
JPS61292758A (en) * 1985-06-20 1986-12-23 Fujitsu Ltd Area allocation system for direct access device
JPH05324433A (en) * 1992-05-26 1993-12-07 Nec Corp Data base input control system
JPH06110743A (en) * 1992-09-25 1994-04-22 Fujitsu Ltd System for parallel processing of data base rearrangement

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61216016A (en) * 1985-02-26 1986-09-25 Fujitsu Ltd Area control system for data base
JPS61292758A (en) * 1985-06-20 1986-12-23 Fujitsu Ltd Area allocation system for direct access device
JPH05324433A (en) * 1992-05-26 1993-12-07 Nec Corp Data base input control system
JPH06110743A (en) * 1992-09-25 1994-04-22 Fujitsu Ltd System for parallel processing of data base rearrangement

Also Published As

Publication number Publication date
JP2689928B2 (en) 1997-12-10

Similar Documents

Publication Publication Date Title
US4644471A (en) Method for processing a data base
JP3554459B2 (en) Text data registration search method
Bender et al. Exponential structures for efficient cache-oblivious algorithms
JP2000357115A (en) Device and method for file retrieval
JP2689928B2 (en) Data storage device in database system
JP2000090115A (en) Index generating method and retrieval method
JPH06139280A (en) File management system
JPS59146339A (en) Information retrieving system
JPH03282966A (en) Method for managing hash entry area
JP2540821B2 (en) Database search system
JP2604787B2 (en) Two-dimensional data storage method
JP2722684B2 (en) File system search device
JPH1173353A (en) Transaction retrieval processor based on specified time
JPH10240744A (en) System for processing retrieval of range division chart and method therefor and recording medium for recording retrieval processing program
JPH0962696A (en) Data base managing system
CN113703671A (en) Data block erasing method and related device
CN114443650A (en) Method and device for sorting and tabulating according to time
JPH06332799A (en) Tree information storage system
JPH04101272A (en) Data element retrieving method
JPS62165239A (en) Information retrieving method
JP2000172542A (en) File access system
JPS589452B2 (en) Firmware broom
JPH05173857A (en) Block area management system in data base system
JPH0721064A (en) Data base reorganizing system
JPH04243442A (en) Common table management system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970729

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070829

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080829

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080829

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090829

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090829

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100829

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110829

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110829

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120829

Year of fee payment: 15

LAPS Cancellation because of no payment of annual fees