JP2507399B2 - Database equipment - Google Patents

Database equipment

Info

Publication number
JP2507399B2
JP2507399B2 JP62065444A JP6544487A JP2507399B2 JP 2507399 B2 JP2507399 B2 JP 2507399B2 JP 62065444 A JP62065444 A JP 62065444A JP 6544487 A JP6544487 A JP 6544487A JP 2507399 B2 JP2507399 B2 JP 2507399B2
Authority
JP
Japan
Prior art keywords
page
initialization
record
address
space management
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.)
Expired - Lifetime
Application number
JP62065444A
Other languages
Japanese (ja)
Other versions
JPS63231546A (en
Inventor
孝之 仲澤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62065444A priority Critical patent/JP2507399B2/en
Publication of JPS63231546A publication Critical patent/JPS63231546A/en
Application granted granted Critical
Publication of JP2507399B2 publication Critical patent/JP2507399B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔概要〕 本発明は,データベース装置において,ランダムレコ
ードの創成のためのI/Oアクセスが多くなっていること
からデータベースの創成のために長時間を要していると
いう問題点を解決するために,ランダムレコードの格納
されたページ番号の最大値を記憶する初期化空間管理手
段とともに,新たに指定されるランダムコレードを格納
するページ番号とこの初期化空間管理手段の記憶するペ
ージ番号との大小を比較するアドレス番号比較手段とを
設けることで,順次アドレスのアクセスに対してページ
の内容を読み出すことなく連続的に初期化できる(リー
ドレス手法)というデータベース管理システムの初期化
処理機能を利用できるようにして,ページの内容の初期
化のために要するI/Oアクセスの回数を減らし,データ
ベースにおけるランダムレコードの創成時間の大巾な短
縮を実現したものである。
DETAILED DESCRIPTION OF THE INVENTION [Outline] According to the present invention, it takes a long time to create a database because the number of I / O accesses for creating a random record in a database apparatus is large. In order to solve the problem, an initialization space management means for storing the maximum value of the page numbers stored in the random record, a page number for storing a newly designated random code, and the initialization space management means By providing address number comparison means for comparing the size with the stored page number, it is possible to continuously initialize without accessing the page contents for sequential address access (leadless method). Enable the initialization processing function to reduce the number of I / O accesses required to initialize the page contents. It is obtained by realizing a greatly shortened creation time of the random record in the database.

〔産業上の利用分野〕[Industrial applications]

本発明は,データベース装置に関し,特に,ランダム
レコードの創成時に必要とされる初期化処理の回数を減
らすことで創成の高速化処理を可能とならしめるデータ
ベース装置に関する。
The present invention relates to a database device, and more particularly, to a database device capable of speeding up creation by reducing the number of initialization processes required when creating a random record.

〔従来の技術〕[Conventional technology]

データベースを創成する創成ユーティリティにおいて
は,最初に入出力の単位であるところのデータを格納す
るページを初期化処理により初期化し,この後初期化さ
れたページにレコードを書き込んでいく処理を行うこと
でデータベースを創成していくことになる。次に,この
創成ユーティリティの従来技術について説明する。
In the creation utility that creates the database, the page that stores the data that is the unit of input and output is first initialized by the initialization process, and then the process of writing records to the initialized page is performed. We will create a database. Next, a conventional technique of this creation utility will be described.

格納されるレコードが,レコードのレコード番号順に
格納されるノーマルレコードであるときには,順次処理
によりデータベースが創成されていくことから,データ
ベースを管理するデータベース管理システム(以下DBMS
という)はどこまでのページ番号が初期化されているか
を記憶するだけで,次のページを初期化しデータ入力を
受付けていくことで,データベースの創成ユーティリテ
ィが実行されていくことになる。すなわち,ページの内
容をCPU側に読み出すまでもなく,いわゆるリードレス
手法によって初期化処理が実行されることになる。
When the records to be stored are normal records that are stored in the order of the record numbers of the records, the database is created by sequential processing. Therefore, a database management system that manages the database (hereinafter referred to as DBMS)
That is, the database creation utility will be executed by only remembering how many page numbers have been initialized and by initializing the next page and accepting data input. That is, the initialization process is executed by the so-called leadless method without reading the page contents to the CPU side.

しかるに,これらのレコードが,レコード番号のアド
レス変換(ランダマイジング処理)により決定されるア
ドレスであるところのページ番号のページに格納される
という,いわゆるランダムレコードであるときにおいて
は,格納アドレスであるところのページ番号を指定する
ものがDBMSではなくてデータベースを利用するユーザで
あり,従ってユーザにより任意のページ番号がその都度
指定されてしまうことから,CPUは,最初にI/Oを介して
すべてのページを初期化する。そして,ランダマイジン
グ処理により格納アドレスであるところのページ番号が
指定されたらI/Oを介してそのページの内容を読み出し,
I/Oを介して格納データであるところのレコードを書き
込むことで,創成ユーティリティを実行しデータベース
を創成していくことになる。
However, when these records are so-called random records that are stored in the page of the page number which is the address determined by the address conversion (randomizing process) of the record number, the storage address It is the user who uses the database, not the DBMS, to specify the page number of, so that the user may specify an arbitrary page number each time, so the CPU first checks all pages via I / O. Initialize the page. Then, when the page number that is the storage address is specified by the randomizing process, the contents of the page are read out via I / O,
By writing the record that is the stored data via I / O, the creation utility will be executed and the database will be created.

また,ランダムレコードの創成ユーティリティの他の
従来技術として,CPU側に,データベースの全ページに対
応する初期化処理の有無の情報をもつテーブルを具備さ
せてしまうという態様を採るものもある。この態様にお
いては,CPUは,ランダマイジング処理により格納ページ
が指定されたときには,このテーブルを使ってそのペー
ジが初期化済みか否かすなわち初期化の後のレコードが
格納されたか否かを判断する。初期化されていることを
示しているならば,CPUは,I/Oを介してそのままレコード
を格納し,既にレコードが格納されることで初期化され
ていないことを示しているならば,I/Oを介して再度その
ページを初期化した後に新たな格納データであるレコー
ドを書き込むことで,データベースを創成していくもの
である。
In addition, as another conventional technology of the random record creation utility, there is also a mode in which the CPU side is provided with a table having information on the presence or absence of initialization processing corresponding to all pages of the database. In this mode, when the storage page is specified by the randomizing process, the CPU uses this table to determine whether the page has been initialized, that is, whether the record after initialization has been stored. . If it indicates that it has been initialized, the CPU stores the record as it is via I / O, and if it indicates that the record has already been stored and is not initialized, then the I The database is created by initializing the page again via / O and then writing a record that is new storage data.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

ランダマイジング処理により指定されるページの内容
をその都度I/Oを介して読み出すことでレコードの有無
を調べ,初期化の要否を決定していくことでランダムレ
コードを創成するという従来のランダムレコードの創成
態様では,最低でも3回のI/Oアクセス,すなわち, 最初に実行されるすべてのページの初期化のための
I/Oアクセス。
A conventional random record that creates a random record by checking the existence of a record by reading the contents of the page specified by the randomizing process each time via I / O, and determining the necessity of initialization. In the creation mode of, at least three I / O accesses, that is, for initialization of all pages executed first
I / O access.

ランダマイジング処理により指定されるページの内
容の読み出しのためのI/Oアクセス。
I / O access to read the contents of the page specified by the randomizing process.

レコードの格納のための書き込みのためのI/Oアク
セス。
I / O access for writing to store records.

という少なくとも3回のI/Oアクセスを必要としてい
た。このI/Oアクセスに要する時間はデータベースの容
量が大きくなればかなりなものとなる。従って,最低で
も3回のI/Oアクセスを必要とするということは,デー
タベースの創成のためにかなりな絶対時間を必要として
しまうということになり,データベースの運用の効率を
低下させてしまうという問題点をもたらしてしまってい
た。
I needed at least 3 I / O accesses. The time required for this I / O access becomes considerable as the database capacity increases. Therefore, requiring at least three I / O accesses means that a considerable amount of absolute time is required to create the database, which reduces the efficiency of database operation. Had brought a point.

一方,CPU側に,データベースの全ページに対応する初
期化処理の有無の情報をもつテーブルを具備させるとい
う従来のランダムレコードの創成方法では,テーブルを
使って初期化処理の有無を知ることができるので,I/Oア
クセスは最低2回,すなわち, 最初に実行されるすべてのページの初期化のための
I/Oアクセス。
On the other hand, in the conventional random record creation method in which the CPU side is provided with a table having information on the presence / absence of initialization processing corresponding to all pages of the database, the presence / absence of initialization processing can be known using the table. Therefore, I / O access is performed at least twice, that is, for initialization of all pages executed first.
I / O access.

レコードの格納のための書き込みのためのI/Oアク
セス。
I / O access for writing to store records.

と先の従来技術に比べて1回減少できるものの,全ペー
ジ分のテーブルをもたせなくてはならないことから,CPU
側の記憶容量が大きくこれに費やされてしまうことにな
り現実的でないという本質的な欠点を有していた。
Although it can be reduced once compared to the previous conventional technology, the CPU for all pages must be provided, so the CPU
It has an essential drawback that it is not realistic because the storage capacity on the side is large and it is consumed.

本発明はかかる事情に鑑みてなされたものであって,
データベースにおけるランダムレコードの創成時に必要
とされるI/Oアクセスの最低回数を,レコードの格納の
ための書き込みのためのI/Oアクセスである1回にする
ようにすることで,データベースの創成に要する時間を
大巾に減少できるようにするとともに,この処理の実現
のために必要とされるテーブルの記憶容量を極めて小さ
なものとできるように構成することで,実用的なランダ
ムレコードの創成態様を提供せんとするものである。
The present invention has been made in view of such circumstances,
In creating the database, the minimum number of I / O access required when creating a random record in the database is one I / O access for writing to store the record. By making it possible to greatly reduce the time required and to make the storage capacity of the table required to realize this processing extremely small, a practical mode of creating random records can be realized. It is intended to be provided.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は,本発明に係る,データベース装置を表わす
原理構成図である。
FIG. 1 is a principle configurational diagram showing a database device according to the present invention.

図中,1はランダマイジング処理手段,2はアドレス番号
比較手段,3は初期化空間管理手段,4は格納領域連続初期
化手段,5はデータ格納手段,6は格納領域,10は補助記憶
手段,20は補助記憶手段管理手段,30はユーザである。こ
こで補助記憶手段管理手段20はDBMSに相当する。
In the figure, 1 is randomizing processing means, 2 is address number comparison means, 3 is initialization space management means, 4 is storage area continuous initialization means, 5 is data storage means, 6 is storage area, 10 is auxiliary storage means Reference numeral 20 is an auxiliary storage means management means, and 30 is a user. Here, the auxiliary storage means management means 20 corresponds to a DBMS.

格納領域6は,ユーザ30が指定するランダムレコード
を格納する格納領域であり,データベースを構成すべく
補助記憶手段10上に構成され,データ格納手段5は,ラ
ンダマイジング処理手段1がユーザ30から指定されるレ
コードのレコード番号にアドレス変換を実行することで
求めるアドレス番号の格納領域6に,同じくユーザ30か
ら指定されるレコードを格納することでランダムレコー
ドを創成する。
The storage area 6 is a storage area for storing random records designated by the user 30, and is configured on the auxiliary storage means 10 to form a database. The data storage means 5 is designated by the randomizing processing means 1 by the user 30. A random record is created by storing a record also designated by the user 30 in the storage area 6 of the address number obtained by performing the address conversion on the record number of the record to be stored.

初期化空間管理手段3は,それまでのランダマイジン
グ処理手段1の実行するアドレス変換により求まる格納
領域6のアドレス番号の内で最も大きなアドレス番号を
記憶する機能を有し,アドレス番号比較手段2は,この
初期化空間管理手段3が記憶するアドレス番号とランダ
マイジング処理手段1により新たに求まる次のレコード
の格納領域6であるところのアドレス番号との大小を比
較する機能を有する。
The initialization space management means 3 has a function of storing the largest address number among the address numbers of the storage area 6 obtained by the address conversion executed by the randomizing processing means 1 up to then, and the address number comparison means 2 is A function of comparing the address number stored in the initialization space management means 3 with the address number in the storage area 6 of the next record newly obtained by the randomizing processing means 1 is provided.

格納領域連続初期化手段4は,補助記憶手段10を管理
する補助記憶手段管理手段20上に構成され,順次アドレ
スのアクセスに対しては格納領域6の内容を読み出すこ
となくリードレス手法によって初期化処理を実行できる
機能を有する。
The storage area continuous initialization means 4 is configured on the auxiliary storage means management means 20 which manages the auxiliary storage means 10 and is initialized by a leadless method without reading the contents of the storage area 6 for sequential address access. It has the function of executing processing.

〔作用〕[Action]

ランダマイジング処理手段1を介してユーザ30より新
たなレコードの格納領域6のアドレス番号が指定され,
アドレス番号比較手段2がその新たなアドレス番号が初
期化空間管理手段3の記憶するアドレス番号よりも大き
いことを示すときには,格納領域連続初期化手段4は,
初期化空間管理手段3の記憶するアドレス番号から新た
に指定されるアドレス番号までのすべてのアドレス番号
の格納領域6をそれらの格納領域6の内容を読み出すこ
となく連続的に初期化されるとともに,データ格納手段
5は,その新たなアドレス番号の格納領域6にユーザ30
の指定するレコードを書き込む。そして,初期化空間管
理手段3に上記初期化の行われた最大のアドレス番号を
記述する。
The address number of the storage area 6 for a new record is designated by the user 30 via the randomizing processing means 1,
When the address number comparison means 2 indicates that the new address number is larger than the address number stored by the initialization space management means 3, the storage area continuous initialization means 4
The storage areas 6 of all the address numbers from the address numbers stored by the initialization space management means 3 to the newly designated address numbers are continuously initialized without reading the contents of those storage areas 6, and The data storage means 5 stores the user 30 in the storage area 6 of the new address number.
Write the record specified by. Then, the maximum address number that has been initialized is described in the initialization space management means 3.

また上記新たなアドレス番号が初期化空間管理手段3
の記憶するアドレス番号よりも小さいことを示すときに
は,当該新たなアドレス番号の位置は既に初期化されて
いるものであり,書き込みが行われる。
Further, the new address number is the initialization space management means 3
When it indicates that the new address number is smaller than the stored address number, the position of the new address number has already been initialized and writing is performed.

このように,初期化空間管理手段3とアドレス番号比
較手段2を設けることで,補助記憶手段管理手段20の格
納領域連続初期化手段4が有する格納領域6の内容を読
み出すことなく初期化できるという初期化機能を利用す
ることができ,従ってランダムレコードの創成のために
必要とされるI/Oアクセスの回数を減らすことができる
ので,データベースにおけるランダムレコードの創成時
間の大巾な短縮が実現できる。
In this way, by providing the initialization space management means 3 and the address number comparison means 2, it is possible to initialize without reading the contents of the storage area 6 of the storage area continuous initialization means 4 of the auxiliary storage means management means 20. The initialization function can be used, and thus the number of I / O accesses required for creating a random record can be reduced, so that the creation time of the random record in the database can be greatly shortened. .

〔実施例〕〔Example〕

本発明に係る,データベース装置の一実施例を第2図
と第3図とに示す。ここで,第2図は本発明の特徴部分
の1つである初期化空間管理手段の管理内容を説明する
ための説明図であり,第3図はランダムレコードの創成
のために本発明が実行するフローチャートである。
An embodiment of the database device according to the present invention is shown in FIG. 2 and FIG. Here, FIG. 2 is an explanatory diagram for explaining the management content of the initialization space management means, which is one of the characteristic parts of the present invention, and FIG. 3 is executed by the present invention to create a random record. It is a flowchart to do.

第2図において,10は補助記憶装置であり,第1図の
補助記憶手段10に対応する。6は入出力の単位であると
ころのデータを格納するページであり,第1図の格納領
域6に対応する。7は複数のページ6から構成されるレ
ンジであり,補助記憶装置10上で格納空間を区画する。
この説明図においては,補助記憶装置10上の空間は3個
のレンジ7より構成されるものを示している。3は初期
化空間管理手段(テーブル)であり,第1図の初期化空
間管理手段に対応する。
In FIG. 2, 10 is an auxiliary storage device, which corresponds to the auxiliary storage means 10 in FIG. Reference numeral 6 is a page for storing data, which is a unit of input / output, and corresponds to the storage area 6 in FIG. A range 7 is composed of a plurality of pages 6 and divides a storage space on the auxiliary storage device 10.
In this explanatory diagram, the space on the auxiliary storage device 10 is shown to be composed of three ranges 7. Reference numeral 3 denotes an initialization space management means (table), which corresponds to the initialization space management means in FIG.

第2図に示すように,初期化空間管理テーブル3がレ
ンジ7ごとに存在するよう構成され,各初期化空間管理
テーブル3は,ページ番号順に初期化される各レンジに
含まれるページの内の初期化されている最も大きいペー
ジ番号を記憶することで,各レンジの各ページの初期化
の有無を管理することになる。
As shown in FIG. 2, the initialization space management table 3 is configured to exist for each range 7, and each initialization space management table 3 is a page included in each range that is initialized in the order of page numbers. By storing the largest initialized page number, the presence or absence of initialization of each page in each range is managed.

次に,第3図に示すフローチャートに従って本発明に
係るランダムレコードの創成態様について説明する。
Next, the creation mode of the random record according to the present invention will be described with reference to the flowchart shown in FIG.

ステップ10に続くステップ20では,ランダムレコード
創成のために,レコードを1件ずつ創成ユーティリティ
プログラムに入力する。続いてステップ30で,入力され
たレコードこレコード番号にランダマイジング処理すな
わちアドレス変換を行うことで,レコードの格納先のペ
ージのアドレスであるところのページ番号を決定する。
第5図にこのアドレス変換の内容を具体例をもって示
す。この第5図に示すように,例えばレコード番号100
のアドレス変換により決定されるページ番号が10,レコ
ード番号200のアドレス変換により決定されるページ番
号が5と,レコードの格納先のページであるところのペ
ージ番号が,レコード番号の昇順とは関係なく決定され
るところにランダムレコードの特徴がある。このステッ
プ20とステップ30での処理が,第1図のランダマイジン
グ処理手段1の実行する処理に相当する。
In step 20 following step 10, each record is input to the creation utility program one by one in order to create a random record. Subsequently, at step 30, the page number, which is the address of the page where the record is stored, is determined by performing randomizing processing, that is, address conversion on the input record number.
FIG. 5 shows the contents of this address conversion with a concrete example. As shown in FIG. 5, for example, record number 100
The page number determined by the address translation of 10 and the page number determined by the address translation of record number 200 are 5, and the page number that is the page where the record is stored is independent of the ascending order of the record numbers. The characteristics of random records are where they are decided. The processing in steps 20 and 30 corresponds to the processing executed by the randomizing processing means 1 in FIG.

ステップ30によりページ番号が決定(このページ番号
をn2とする)されると,ステップ40で,このページ番号
n2と処理中のレンジに対応する初期化空間管理テーブル
3の記憶するページ番号(このページ番号をn1とする)
との大小を比較する。前述したように初期化空間管理テ
ーブル3の記憶するページ番号n1は,ページ番号順に初
期化されるページの内の既に初期化されている最も大き
いページ番号であることから,このステップ40での大小
比較により,ステップ30で決定されたページ番号n2のペ
ージが既に初期化されたものなのか否かを判断できるこ
とになる。このステップ40での処理が,第1図のアドレ
ス番号比較手段2の実行する処理に相当する。
When the page number is determined in step 30 (this page number is n 2 ), this page number is determined in step 40.
n 2 and the page number stored in the initialization space management table 3 corresponding to the range being processed (this page number and n 1)
Compare the size with. As described above, the page number n 1 stored in the initialization space management table 3 is the largest page number that has already been initialized among the pages that are initialized in the order of page numbers. By comparing the sizes, it is possible to determine whether or not the page with the page number n 2 determined in step 30 has already been initialized. The process in step 40 corresponds to the process executed by the address number comparing means 2 in FIG.

ステップ40での大小比較により,n2>n1であるとき,
すなわち新たにレコードの格納先として決定されたペー
ジがいまだ初期化されていないことがわかると,ステッ
プ50に進み,初期化空間管理テーブル3の記憶するペー
ジ番号から新たに決定されたページ番号までのすべての
ページ番号のページであるn1+1〜n2を連続的に初期化
する。このステップ50の初期化処理が,第1図の格納領
域連続初期化手段4の実行する処理に相当する。ステッ
プ50の実行する連続的な初期化処理は,いわばノーマル
レコードの初期化処理と同様に,ページ番号順に定めら
れた順序に従って順次アクセスで実行できるため,リー
ドレス手法を用いて,すなわちレコードの内容をCPU側
に読み出すことなくDBMS側で実行可能となり,従ってI/
Oアクセスを介さずに初期化できることになる。
According to the magnitude comparison in step 40, when n 2 > n 1 ,
That is, when it is found that the page newly determined as the storage destination of the record has not been initialized yet, the process proceeds to step 50, from the page number stored in the initialization space management table 3 to the newly determined page number. the n 1 + 1 to n 2 is a page for every page numbers continuously initialized. The initialization processing in step 50 corresponds to the processing executed by the storage area continuous initialization means 4 in FIG. The continuous initialization process executed in step 50 can be executed by sequential access according to the order determined in the page number order, as in the normal record initialization process. Therefore, the leadless method, that is, the contents of the record is used. Can be executed on the DBMS side without reading the
It will be possible to initialize without O access.

ステップ50に続くステップ60では,ステップ50でペー
ジ番号n2まで初期化されたことになるので,初期化空間
管理テーブル3の記憶するページ番号を,n1からn2にと
書き換える。この処理により,初期化空間管理テーブル
3は,ページ番号順に初期化されるページの内の初期化
されている最も大きいページ番号を記憶することができ
ることになる。このステップ60の処理の後,レコードの
格納のための処理であるステップ70にと進むことにな
る。
In step 60 following step 50, since the page number n 2 has been initialized in step 50, the page number stored in the initialization space management table 3 is rewritten from n 1 to n 2 . By this processing, the initialized space management table 3 can store the largest initialized page number of the pages initialized in the order of page numbers. After the process of step 60, the process proceeds to step 70 which is a process for storing records.

一方,ステップ40での大小比較により,n2≦n1である
とき,すなわち新たにレコードの格納先として決定され
たページが既に初期化されているときには,ステップ5
0,60を介することなく,直接レコードの格納のための処
理であるステップ70にと進むことになる。
On the other hand, when n 2 ≦ n 1 is determined by the size comparison in step 40, that is, when the page newly determined as the storage destination of the record has already been initialized, step 5
The process directly proceeds to step 70 which is a process for storing a record without going through 0 and 60.

以上に説明したステップ40,50,60の処理の理解のため
に,第4図と第5図で具体的に示したレコード入力の例
がステップ40,50,60でどのように初期化処理されていく
のかを,まとめた形で第6図に示す。図示の如く初期化
進みの最大アドレス番号を管理しつつ処理を行ってゆ
く。
In order to understand the processing of steps 40, 50, 60 explained above, how the example of record input concretely shown in FIGS. 4 and 5 is initialized in steps 40, 50, 60. Figure 6 shows a summary of how to proceed. As shown in the figure, the process is performed while managing the maximum address number that is being initialized.

次に,ステップ30で決定されたページ番号n2のページ
に,レコードを格納するための処理を実行するステップ
70の機能について説明する。このステップ70は,第1図
のデータ格納手段5に相当するものである。ステップ40
でn2>n1であることを判断したときには,ステップ70
は,ステップ50でページ番号n2のページが既に初期化さ
れてたことから,直ちにページ番号n2のページにI/Oを
介して格納データであるところのレコードを書き込む処
理を行う。一方,ステップ40でn2≦n1であることを判断
したときには,ステップ70は,ページ番号n2のページの
内容をI/Oを介してCPU側に読み出し,I/Oを介して格納デ
ータであるところのレコードを書き込む処理を行う。
Next, the step for executing the process for storing the record on the page of page number n 2 determined in step 30
The functions of 70 will be described. This step 70 corresponds to the data storage means 5 in FIG. Step 40
When it is determined that n 2 > n 1 in step 70, step 70
In step 50, since the page of page number n 2 has already been initialized, the process of immediately writing the record, which is the stored data, to the page of page number n 2 via I / O is performed. On the other hand, when it is determined in step 40 that n 2 ≦ n 1 , step 70 reads the contents of the page with page number n 2 to the CPU side via I / O, and stores the stored data via I / O. The process of writing the record is performed.

ステップ70でレコードの格納が終了するとステップ20
に戻り,次の入力レコードを指定されるページ番号のペ
ージに書き込むための処理に入ることになる。このよう
にして,全ての入力レコードをステップ30で決定される
ページ番号n2のページに格納することで,データベース
におけるランダムレコードが創成されることになる。
When the storage of records is completed in step 70, step 20
Then, the process for writing the next input record to the page of the specified page number is started. In this way, by storing all the input records in the page of page number n 2 determined in step 30, a random record in the database will be created.

ステップ70が実行する処理の内,n2>n1のときに行う
処理は,I/Oアクセスを介する回数が1回となり本発明の
特徴的な処理といえるものであるが,n2≦n1のときに行
う処理は最低2回のI/Oアクセスを必要とし従来のデー
タ格納のための処置とかわるものではない。しかしなが
らn2≦n1の処理であっても,ステップ50でI/Oアクセス
を介することなく連続的な初期化処理が実行されること
から,従来のランダムレコードの創成に必ず必要とされ
ていた最初にI/Oを介してすべてのページを初期化する
という処理が必要となくなるためI/Oアクセスの回数を
1回減らすことができることになる。
Among the processes executed by step 70, the process executed when n 2 > n 1 is one of the characteristic processes of the present invention because the number of times through I / O access is one, and n 2 ≦ n The processing performed in the case of 1 requires at least two I / O accesses and is not a substitute for the conventional procedure for storing data. However, even if n 2 ≤ n 1, the continuous initialization process is executed in step 50 without intervening I / O access, so it was always necessary for conventional random record creation. Since the process of initializing all pages via I / O first is not necessary, the number of I / O accesses can be reduced by one.

〔発明の効果〕〔The invention's effect〕

本発明によれば,データベースにおけるランダムレコ
ードの創成のときに,順次アドレスのアクセスに対して
ページの内容を読み出すことなく連続的に初期化できる
というデータベース管理システムが有する初期化処理機
能を利用できるようになるので,最も少ない場合には1
回のI/Oアクセスを介するだけで,ランダムレコードを
所望のアドレスのページに格納することができることに
なる。従って,従来のランダムレコードの創成のときに
必要とされていたI/Oアクセスの回数よりI/Oアクセスの
回数を減少できるので,ランダムレコードの創成時間の
大巾な短縮が実現できることになる。
According to the present invention, when creating a random record in a database, it is possible to use an initialization processing function of a database management system that can sequentially initialize without accessing the contents of a page for sequential address access. Therefore, 1 is the least
Random records can be stored in the page of the desired address only by performing I / O access once. Therefore, the number of I / O accesses can be reduced from the number of I / O accesses required when creating a conventional random record, and the creation time of a random record can be greatly shortened.

しかもこの創成態様の実行のために必要とされる初期
化空間管理テーブル3のメモリ容量は,各レンジの収納
するページ番号の最大アドレスが指定できるだけの容量
であれば足りるので,CPU側の記憶容量が大きくこのため
にとられてしまうといったこともなく,極めて実用的な
構成で実現できるものである。
Moreover, the memory capacity of the initialization space management table 3 required for executing this creation mode is sufficient if the maximum address of the page number stored in each range can be specified. It is possible to realize with a very practical configuration without being taken for this reason.

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

第1図は本発明の原理を説明する原理構成図,第2図は
初期化空間管理手段の管理内容を説明するための説明
図,第3図は本発明が実行するフローチャート,第4図
は入力するデータの例,第5図はアドレス変換の内容の
具体例,第6図は初期化処理の内容の具体例を示す図で
ある。 第1図において,1はランダマイジング処理手段,2はアド
レス番号比較手段,3は初期化空間管理手段,4は格納領域
連続初期化手段,5はデータ格納手段,6は格納領域,10は
補助記憶手段,20は補助記憶手段管理手段,30はユーザで
ある。
FIG. 1 is a principle configuration diagram for explaining the principle of the present invention, FIG. 2 is an explanatory diagram for explaining the management contents of the initialization space management means, FIG. 3 is a flow chart executed by the present invention, and FIG. An example of input data, FIG. 5 is a concrete example of contents of address conversion, and FIG. 6 is a diagram showing a concrete example of contents of initialization processing. In FIG. 1, 1 is randomizing processing means, 2 is address number comparison means, 3 is initialization space management means, 4 is storage area continuous initialization means, 5 is data storage means, 6 is storage area, and 10 is auxiliary. Storage means, 20 is auxiliary storage means management means, and 30 is a user.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】データ格納領域(6)と, データを格納するデータ格納領域(6)内のアドレス番
号を順不同に指定するランダマイジング処理手段(1)
と, ランダマイジング処理手段(1)の指定するアドレス番
号の領域にデータを格納するデータ格納手段(5)とを
具備するデータベース装置において, 更に,格納領域(6)の初期化済の領域のアドレス番号
の内の最大のものを記憶する初期化空間管理手段(3)
と, 初期化空間管理手段(3)の記憶するアドレス番号とラ
ンダマイジング処理手段(1)の指定するアドレス番号
の大小を比較するアドレス番号比較手段(2)と, ランダマイジング処理手段(1)の指定するアドレス番
号が初期化空間管理手段(3)の記憶するアドレス番号
より大きいことをアドレス番号比較手段(2)が示す場
合に,初期化空間管理手段(3)の記憶するアドレス番
号からランダマイジング処理手段(1)の指定するアド
レス番号までの領域を連続的に初期化する格納領域連続
初期化手段(4)とを具備する ことを特徴とするデータベース装置。
1. Randomizing processing means (1) for specifying the data storage area (6) and the address numbers in the data storage area (6) for storing data in no particular order.
And a data storage means (5) for storing data in an area of an address number designated by the randomizing processing means (1), further comprising an address of an initialized area of the storage area (6) Initialization space management means for storing the largest number (3)
Of the address number stored in the initialization space management means (3) and the address number specified by the randomizing processing means (1), and the randomizing processing means (1). When the address number comparison means (2) indicates that the designated address number is larger than the address number stored by the initialization space management means (3), randomizing is performed from the address number stored by the initialization space management means (3). A database device comprising: a storage area continuous initialization means (4) for continuously initializing an area up to an address number designated by the processing means (1).
JP62065444A 1987-03-19 1987-03-19 Database equipment Expired - Lifetime JP2507399B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62065444A JP2507399B2 (en) 1987-03-19 1987-03-19 Database equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62065444A JP2507399B2 (en) 1987-03-19 1987-03-19 Database equipment

Publications (2)

Publication Number Publication Date
JPS63231546A JPS63231546A (en) 1988-09-27
JP2507399B2 true JP2507399B2 (en) 1996-06-12

Family

ID=13287311

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62065444A Expired - Lifetime JP2507399B2 (en) 1987-03-19 1987-03-19 Database equipment

Country Status (1)

Country Link
JP (1) JP2507399B2 (en)

Also Published As

Publication number Publication date
JPS63231546A (en) 1988-09-27

Similar Documents

Publication Publication Date Title
JPS6376034A (en) Multiple address space control method
JPS60218142A (en) Dynamic data conversion method
US5519860A (en) Central processor index sort followed by direct record sort and write by an intelligent control unit
JP2507399B2 (en) Database equipment
JP2586610B2 (en) File creation method
JPS593567A (en) Buffer number setting system of tree structure
JP2658097B2 (en) Secondary file creation method
JPH02151944A (en) data processing equipment
JPS62287350A (en) Index integrally updating system
JP2540821B2 (en) Database search system
JPH02116936A (en) Reorganizing system
JPS62182849A (en) Data control system
JPH01255028A (en) How to access external storage devices
JPH02257282A (en) Table preparation processor
JPS6139285A (en) information retrieval device
JPH06149647A (en) Multi-media file managing system
JPH03282754A (en) Memory multiplex access system
JPH0934788A (en) Address translation device and address translation method
JPS61156450A (en) Dynamic buffer control system
JPH04220736A (en) Sharing method for binary format data file between different kind of computers
JPS63150724A (en) Data access processing system
JPH01193950A (en) Record residency method
JPS6144339B2 (en)
JPS63253431A (en) Retrieving system for data base of inverted structure
JPS58166464A (en) Zap data correction control system

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term