JPS62231346A - Data storage system - Google Patents
Data storage systemInfo
- Publication number
- JPS62231346A JPS62231346A JP61072500A JP7250086A JPS62231346A JP S62231346 A JPS62231346 A JP S62231346A JP 61072500 A JP61072500 A JP 61072500A JP 7250086 A JP7250086 A JP 7250086A JP S62231346 A JPS62231346 A JP S62231346A
- Authority
- JP
- Japan
- Prior art keywords
- data
- page
- main memory
- free space
- pages
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000013500 data storage Methods 0.000 title claims description 22
- 238000000034 method Methods 0.000 claims description 10
- 238000010586 diagram Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 230000002747 voluntary effect Effects 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
只の発明は電子計算機のデータベースのデータ格納にと
もなう無駄な入出力動作を避けるためのデータ格納方式
に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data storage method for avoiding wasteful input/output operations associated with data storage in a database of an electronic computer.
第3図は従来の電子計算機圧おけるデータ格納方式を示
すブロック図であり、図において、(1)は主記憶装置
、(コ)は主記憶装置(1)とデータの受は渡しを行う
と共K、データベース(3)を有するディスク、(弘)
〜(Ir)は、このデータベース(3)に設けられた複
数のデータページであり、そのうち、(lI)、(r)
及び(り)は空き領域の無いデータページ、(6)及び
(tr)は空気領域の有るデータページである。Figure 3 is a block diagram showing a data storage system in a conventional electronic computer. CoK, disk with database (3), (Hiro)
~(Ir) are multiple data pages provided in this database (3), among which (lI), (r)
and (ri) are data pages without free space, and (6) and (tr) are data pages with air space.
従来のデータ格納方式は、前述したように構成されてお
り、以下に、その動作について説明する。The conventional data storage method is configured as described above, and its operation will be explained below.
ディスク(a)のデータベースr、7) Kデータを格
納する場合、まず、最初のデータページ(4りを主記憶
装置(t) K入力し、空き領域を調べ、空き領域が無
い場合は、次に、データページ(り)を主記憶装置O)
に入力し、このようにして空き領域を有するページにな
るまで順に入力していた。Database r on disk (a), 7) When storing K data, first input the first data page (4) into main storage (t), check the free space, and if there is no free space, move to the next The data page (ri) is stored in the main memory (O).
In this way, the page is inputted one after another until a page with free space is reached.
従って、第3図の状態では、3番目のデータページ(6
)が主記憶装置(1)に入力された場合に、・このデー
タページ(6)の空き領域に対してデータの格納が行わ
れていた。Therefore, in the state shown in Figure 3, the third data page (6
) is input to the main storage device (1), - Data was stored in the free space of this data page (6).
従来のデータ格納方式は以上のように構成されているの
で、ディスクのデータベースにデータを格納する場合、
空き領域の有無に拘わらず、全てのデータページを順次
主記憶装置忙入力しなければならず、空き領域の無いデ
ータページの入力に対するアクセス動作は全く無駄なこ
ととなると共に、処理動作の迅速化に対して好ましくな
い状態となる問題点があった。Conventional data storage methods are structured as described above, so when storing data in a database on disk,
Regardless of whether there is free space or not, all data pages must be input to the main memory in sequence, and access operations for inputting data pages that do not have free space are completely wasteful, and this speeds up processing operations. There was a problem in that it caused an unfavorable situation.
この発明は上記のような問題点を解決するためKなされ
たもので、空き領域の無いデータページの主記憶装置へ
の無駄な入力を行わないようKすると共に、高速でデー
タの格納が出来るようにするデータ格納方式を得ること
を目的とする。This invention was made to solve the above problems, and it prevents unnecessary input of data pages with no free space into the main memory, and also allows data to be stored at high speed. The purpose is to obtain a data storage method that allows
この発明に係るデータ格納方式は、ディスク上のデータ
ベースを複数のデータページに分割して管理し、その各
データページにデータを格納するデータ格納方式におい
て、各データページに対応して作られているエントリの
いくつかからなるインベントリ・ページを設け、前記イ
ンベントリ・ページを、データの処理中、主記憶装置に
入力することによって、データ格納時、空き領域の無い
データページの処理動作を避けるようKしたものである
。The data storage method according to the present invention manages a database on a disk by dividing it into a plurality of data pages, and stores data in each data page, which is created corresponding to each data page. An inventory page consisting of several entries is provided, and the inventory page is entered into the main memory during data processing to avoid processing operations on data pages with no free space when storing data. It is something.
この発明によるデータ格納方式においては、データの格
納処理に先立ち、インベン) IJ・ページを主記憶装
置に入力することKより、各データページの空き領域の
有無が事前に判別され、空き領域の無いデータページの
入力を避け、空き領域の有るデータページを、直接、主
記憶装置に入力するようにしたため、データ格納処理を
高速化することができる。In the data storage method according to the present invention, prior to data storage processing, the presence or absence of free space for each data page is determined in advance by inputting pages into the main memory, and the presence or absence of free space for each data page is determined in advance. Data page input is avoided and data pages with free space are input directly to the main memory, thereby speeding up data storage processing.
第1図は、この発明によるデータ格納方式を示すための
ブロック図であり、図において、(/A)は主記憶装置
、(−A)は主記憶装置(/A)とデータの受は渡しを
行うと共に、データベース(3A)を有するディスク、
(ll)〜(g)は、このデータベース(3A)に設け
られた複数のデータページであり、そのうち、(す、(
り及び(7)は空き領域の無いデータページ、(6)及
び(pr)は空き領域の有るデータページ、そして(テ
)は前述の各データページ(lI)〜(1)の空き領域
の有無を管理するため、各データページ(lI)〜(1
)に対応して作られているエントリ(図示せず)のいく
つかからなる特殊なページであるインベントリ・ページ
である。FIG. 1 is a block diagram showing the data storage system according to the present invention. In the figure, (/A) is the main storage device, (-A) is the main storage device (/A), and data is received and received. and a disk having a database (3A);
(ll) to (g) are multiple data pages provided in this database (3A), among which (s, (g)
(7) are data pages with no free space, (6) and (pr) are data pages with free space, and (TE) are the presence or absence of free space in each data page (lI) to (1) mentioned above. In order to manage each data page (lI) ~ (1
) is a special page consisting of several entries (not shown) created in correspondence with the inventory page.
前述のインベントリ・ページ(9)は、例えば、一般的
には、第一図で示されるよう妬構成されており、データ
ページnの大きさで20’1gバイトで、主記憶装置(
/A)上に設けられたあらかじめ決められた比率(10
)なり0%とすると、第3図に示されるように、各デー
タページnの残りが70コ弘バイト(:10参gXり0
%)以下忙なった場合は、その残りサイズが入り、それ
までは[OJが入っている。The above-mentioned inventory page (9), for example, is generally configured as shown in Figure 1, with the size of data page n being 20'1 GB and occupying main memory (
/A) Predetermined ratio (10
) and 0%, as shown in Figure 3, the remainder of each data page n is 70 hirobytes (: 10g x 0%).
%) or less, the remaining size will be included, and until then, [OJ will be included.
第3図は、データページnの残りのサイズがiooθバ
イトであり、ベージn十/は残りサイズが102’lバ
イトより多くあり(この場合はrOJのままである)、
データページn−1−Jは残りサイズが/バイトであり
、データページn + j kt残りサイズが/θλグ
バイトより多くあることを示しており、前述のように、
全てのデータページ(り)〜(g)がインベントリ・ペ
ージ(9)Kよって管理されている。In FIG. 3, the remaining size of data page n is iooθ bytes, and the remaining size of page n+/ is more than 102'l bytes (in this case, it remains rOJ),
The remaining size of data page n-1-J is /byte, indicating that the remaining size of data page n + j kt is more than /θλ gbytes, and as described above,
All data pages (ri) to (g) are managed by inventory page (9)K.
この発明によるデータ格納方式は、前述したように構成
されており、以下に、その動作について説明する。The data storage system according to the present invention is configured as described above, and its operation will be explained below.
データ格納フローについては、第弘図のフローチャート
に示されるように、データ格納要求(ステップl)が行
われると、データベース(3A)のインベン) IJ・
ページ(q)が主記憶装置(1)に入力され(ステップ
2)、各データページ(す)〜(g)のうちの空き領域
の有るデータページが見つかるまで順々にインベントリ
・ページ上の次のlエントリを取り出す(ステップ3)
。次に、空き領域が有るデータページ(6)がチェック
(ステップグ)され、πSの場合には、対応するデータ
ページ(6)が主記憶装置(1)内に読込まれ(ステッ
プタ)、このデータページ(6)にデータが格納される
(ステップ6)。Regarding the data storage flow, as shown in the flowchart in Figure 1, when a data storage request (step l) is made, the database (3A) inventory)
Page (q) is input into the main memory (1) (step 2), and the next data page on the inventory page is sequentially entered until a data page with free space is found among each data page (su) to (g). (Step 3)
. Next, the data page (6) with free space is checked (stepped), and if πS, the corresponding data page (6) is read (stepped) into the main memory (1), and this data Data is stored in page (6) (step 6).
従って、前述のステップ3及びダの動作において、デー
タページに空き領域が無い場合には、次々と次のイエン
トリを取り出すように処理されるため、従来のよう釦、
空き領域の無いデータページまでも、一度、主記憶装置
(1)内に入力させることはなく、データ格納の処理速
度を大巾に向上させることができる。Therefore, in the above-mentioned steps 3 and d, if there is no free space in the data page, the next entry is taken out one after another, so the button
Even data pages with no free space are not input into the main memory (1) once, and the processing speed of data storage can be greatly improved.
以上のように、この発明によれば、各データページの空
き領域の有無をインベントリ・ページで管理し、主記憶
装置にこのインベン) IJ・ページを最初に入力する
ようにしたので、空き領域の無いデータページの主記憶
装置への入力は避け、空き領域の有るデータページのみ
を入力するようKできるため、主記憶装置へのデータペ
ージの入力回数が少くなり、高速処理が可能なデータ格
納方式が得られる効果がある。As described above, according to the present invention, the presence or absence of free space for each data page is managed using the inventory page, and this inventory page is input into the main storage device first. A data storage method that avoids inputting empty data pages to the main memory and only inputs data pages with free space, which reduces the number of times data pages are input to the main memory and enables high-speed processing. There is an effect that can be obtained.
第1図はこの発明の一実施例によるデータ格納方式を示
すブロック図、第−図及び第3図は、インベン) IJ
・ページを示す説明図、第7図はデータ格納の処理を示
すフローチャート、第3図は従来のデータ格納方式を示
すブロック図である。
(lA)は主記憶装置、(−A)はディスク、(3A)
はデータベース、(4t)〜(g)はデータページ、(
9)はインベントリ・ページである。
なお、図中、同一符号は同一、又は相当部分を示す。
手続補正書(自発)
昭4t16′層、−リ91FIG. 1 is a block diagram showing a data storage system according to an embodiment of the present invention, and FIGS.
・An explanatory diagram showing a page, FIG. 7 is a flowchart showing data storage processing, and FIG. 3 is a block diagram showing a conventional data storage method. (lA) is main storage, (-A) is disk, (3A)
is a database, (4t) to (g) are data pages, (
9) is the inventory page. In addition, in the figures, the same reference numerals indicate the same or equivalent parts. Procedural amendment (voluntary) Showa 4t16' layer, -ri91
Claims (1)
して管理し、その各データページにデータを格納するデ
ータ格納方式において、各データページに対応して作ら
れているエントリのいくつかからなるインベントリ・ペ
ージを設け、前記インベントリ・ページをデータの処理
中、主記憶装置に入力することによって、データ格納時
、空き領域の無いデータページの処理動作を避けるよう
にしたことを特徴とするデータ格納方式。In a data storage method that manages a database on disk by dividing it into multiple data pages and stores data in each data page, an inventory page that consists of several entries created corresponding to each data page. A data storage method, characterized in that the inventory page is input to a main storage device during data processing, thereby avoiding processing operations for data pages with no free space when storing data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61072500A JPS62231346A (en) | 1986-04-01 | 1986-04-01 | Data storage system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61072500A JPS62231346A (en) | 1986-04-01 | 1986-04-01 | Data storage system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS62231346A true JPS62231346A (en) | 1987-10-09 |
Family
ID=13491115
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61072500A Pending JPS62231346A (en) | 1986-04-01 | 1986-04-01 | Data storage system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62231346A (en) |
-
1986
- 1986-04-01 JP JP61072500A patent/JPS62231346A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6442553B1 (en) | Hash system and hash method for transforming records to be hashed | |
JPS62231346A (en) | Data storage system | |
EP1014261A1 (en) | Instruction look-ahead system and method | |
JPS62121532A (en) | Data retrieving method | |
JPH04112253A (en) | Data accessing method using multilayer buffer | |
JPH02257282A (en) | Table preparation processor | |
JP3198853B2 (en) | Receive data processing method | |
JPS61148561A (en) | Data processing system of terminal equipment | |
JPS5839326A (en) | Program loading system | |
JPH0350594A (en) | Display system for large-amount data | |
JPS63150724A (en) | Data access processing system | |
JPH01300741A (en) | System for storing history of transmission data route | |
JPH05324734A (en) | Electronic filing device | |
JPH01228022A (en) | Tow-dimensional data storing system | |
JPH0472256B2 (en) | ||
JPH04363768A (en) | Device for displaying picture information | |
JPH044438A (en) | System for utilizing data base buffer | |
JPS6140656A (en) | Terminal data management system | |
JPH0434647A (en) | Retrieving device | |
JPH02259828A (en) | File mergence processing system | |
JPS5999559A (en) | Data registration and selection system | |
JPH04340664A (en) | Shape data management device | |
JPH01270127A (en) | Data retrieval processing system | |
JPH03246741A (en) | Synchronous controller | |
JPS62251903A (en) | Data recording system for numerical controller |