JPH02238568A - Data base processing system - Google Patents

Data base processing system

Info

Publication number
JPH02238568A
JPH02238568A JP1060032A JP6003289A JPH02238568A JP H02238568 A JPH02238568 A JP H02238568A JP 1060032 A JP1060032 A JP 1060032A JP 6003289 A JP6003289 A JP 6003289A JP H02238568 A JPH02238568 A JP H02238568A
Authority
JP
Japan
Prior art keywords
database
data
auxiliary storage
column
processing unit
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
JP1060032A
Other languages
Japanese (ja)
Other versions
JP2570853B2 (en
Inventor
Tetsuo Kudo
工藤 哲郎
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 JP1060032A priority Critical patent/JP2570853B2/en
Publication of JPH02238568A publication Critical patent/JPH02238568A/en
Application granted granted Critical
Publication of JP2570853B2 publication Critical patent/JP2570853B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To improve the input/output processing efficiency and to reduce the load on a central processor by receiving a page which is edited by an auxiliary storage controller by indicating the processing of a data base after the central processor supplies column information and search information to the auxiliary storage controller. CONSTITUTION:The auxiliary storage controller 2 reads a data base specified by the central processor 2 and stores it in its internal storage means, columns are classified from respective records of the stored data base according to column information, and then columns specified by the search information are selected. Data which meet requirements specified by the search information are extracted from the selected columns and edited into pages, which are sent out to the central processor 1, so only data that the central processor 1 requires in the data base read out of the auxiliary storage device 3 are sent out. Consequently, the amount of data transferred between the auxiliary storage controller 2 and central processor 1 decreases to improve the input/output processing efficiency, the central processor 1 requires neither retrieval nor extraction of necessary data from the data base, and the load is reduced.

Description

【発明の詳細な説明】 [目次] 概要 産業上の利川分野 従来の技術 発明が解決しようとする課題 課題を解決するだめの手段 作用 実施例 発明の効果 〔概要〕 補助記憶装置に格納されているデータベースを読出して
処理する計算機システムの中央処理装置の負担を軽減す
ると共に、入出力処理効率を高めることが出来るデータ
ベース処理方式に関し、入出力処理効率を高めると共に
、中央処理装置の負担を軽滅することを目的とし、 最小データ単位のカラムの集まりで構成されるレコード
と、レコードの集まりで構成されるページと、ページの
集まりで構成されるデータベースを格納した補助記憶装
置を接続し、カラムの長さと形式を示ずカラム情報と、
比較データと比較条件及び夫々の比較条件の組合わせで
ある論理条件を示すサーチ情報とを用いて、補助記憶装
置から読出したデータベースを処理する中央処理装置を
備えた計算機システムで、中央処理装置からデータベー
スの処理を指示された時、内部の記憶手段に補助記憶装
置から読出したデータベースを格納し、与えられたカラ
ム情報に基づき、記憶手段に読出されたデータベースの
各レコード内のカラムを区分し、与えられたサーチ情報
に基づき、選択したカラムから指定された条件に合致す
るレコドを選択してページに編集する補助記憶制御装置
を設け、中央処理装置がカラム情報とサーチ情報とを補
助記憶制御装置に与えた後、データベースの処理を指示
することで、補助記憶制御装置が編集したページを受領
する構成とする。
[Detailed description of the invention] [Table of contents] Overview Industrial Icheon field Prior art Problems to be solved by the invention Means for solving the problems Actions Examples Effects of the invention [Summary] Stored in auxiliary storage device To improve input/output processing efficiency and reduce the burden on the central processing unit, regarding a database processing method that can reduce the burden on the central processing unit of a computer system that reads and processes a database, and also increases input/output processing efficiency. With the aim of Column information without format,
A computer system equipped with a central processing unit that processes a database read from an auxiliary storage device using comparison data, comparison conditions, and search information indicating a logical condition that is a combination of each comparison condition. When instructed to process the database, stores the database read from the auxiliary storage device in the internal storage means, classifies the columns in each record of the database read into the storage means based on the given column information, Based on the given search information, an auxiliary storage control device is provided that selects records that meet the specified conditions from the selected column and edits them into a page, and the central processing unit transfers the column information and search information to the auxiliary storage control device. The configuration is such that the auxiliary storage control device receives the edited page by instructing the database processing.

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

本発明はディスク装置の如き補助記憶装置に格納されて
いるデークヘースを読出して処理する計算機システムの
中央処理装置の負担を軽減すると共に、入出力処理効率
を高めることが出来るデークヘース処理方式に関する。
The present invention relates to a disk storage processing method that can reduce the burden on a central processing unit of a computer system that reads and processes disk storage stored in an auxiliary storage device such as a disk device, and can improve input/output processing efficiency.

情報化社会の発展に伴い、計算機ンステムに処理させる
データ・\−スが多くなり、このデータベース処理のた
めに、様々なソフトウエアが開発されているが、ディス
ク装置の如き補助記憶装置に格納されているデータベー
スを主記憶装置に読出させてから、中央処理装置に必要
とするデータの検索と抽出を行わせているため、補助記
憶装置から主記憶装置にデータを転送するための時間が
かかり、且つ、中央処理装置の処理時間も長くなってい
る。
With the development of the information society, the amount of data processed by computer systems has increased, and various software has been developed for processing this database. The database is read into the main memory, and then the central processing unit searches and extracts the necessary data, so it takes time to transfer the data from the auxiliary storage to the main memory. Moreover, the processing time of the central processing unit is also becoming longer.

従って、中央処理装置の負担を少なくすると共に、入出
力処理効率を高めるごとが望まれている。
Therefore, it is desired to reduce the burden on the central processing unit and to improve input/output processing efficiency.

〔従来の技術〕[Conventional technology]

第4図はデータベースの一例を説明する圓である。 FIG. 4 is a circle illustrating an example of a database.

データベースは複数のページによって構成され、各ペー
ジは複数のレコードの集まりであり、各レコードは複数
のカラムの集まりである。従って、カラムはデータベー
スの最小データ単位であり、各レコードのカラムは、例
えば、夫々氏名、年令、住所等のデータである。
A database is made up of multiple pages, each page being a collection of multiple records, and each record being a collection of multiple columns. Therefore, a column is the minimum data unit of the database, and the columns of each record contain data such as name, age, address, etc., respectively.

このようなデータベースは、例えば、計算機システムに
接続されたディスク装置に記録されている。従って、中
央処理装置はディスク装置からデータベースを読出させ
、主記憶装置に格納してから、プログラムの指示に従っ
て検索を行い、目的とするデータの抽出を行う。
Such a database is recorded, for example, in a disk device connected to a computer system. Therefore, the central processing unit reads the database from the disk device, stores it in the main memory, and then performs a search according to instructions from the program to extract the desired data.

即ち、カラムの長さや形式を示すカラム情報を用いて、
数値の連続するレコード内のカラムを区分し、この区分
されたカラムが数字であるか文字であるか等の解析を行
ってから、サーチ情報を用いて、例えば、人口統計を得
る目的であれば、各レコードの年令のデータであるカラ
ムを検索し、サーチ情報の比較データや比較条件及び夫
々の比較条件の組合わせである論理条件を用いて、或る
地域の年令別の人口を抽出するか、又は、或る地域の或
る年令以上の人口を抽出する等の処理を行う。
That is, using column information indicating column length and format,
For example, if the purpose is to obtain demographic statistics by dividing columns in a record containing consecutive numbers and analyzing whether the divided columns are numbers or letters, etc. , search the column that is the age data of each record, and extract the population by age in a certain area using the comparison data of the search information, the comparison conditions, and the logical conditions that are a combination of each comparison condition. Or, perform processing such as extracting the population of a certain age or older in a certain area.

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

上記の如く、従来は、ディスク装置から主記憶装置にデ
ータベースを読出してから、中央処理装置が主記憶装置
,トで必要なデータを検索し、抽出ずる処理を行ってい
るため、不必要なデータ、即ち、抽出されない不要なカ
ラムの含まれたレコードや、総てのカラムが必要とする
データに該当しない不要なレコードが主記憶装置に転送
されることとなり、転送データ嶺が多くなって、人出力
処理効率が低下すると共に、主記憶装置」二で中央処理
装置が必要とするデータの検索と抽出処理を行うため、
中央処理装置の負担が太きいとういう問題がある。
As mentioned above, conventionally, after reading the database from the disk device to the main storage, the central processing unit searches for and extracts the necessary data from the main storage, which eliminates unnecessary data. In other words, records that include unnecessary columns that are not extracted or unnecessary records that do not correspond to the data required by all columns are transferred to the main storage, increasing the amount of transferred data and causing problems for people. At the same time as the output processing efficiency decreases, the main memory 2 performs the search and extraction process for data required by the central processing unit.
There is a problem in that the load on the central processing unit is heavy.

本発明はこのような問題点に鑑の、中央処理装置からデ
ィスク制御装置の如き補助記憶制御装置に、カラム情報
とサーチ情報とを与えることで、補助記憶制御装置が中
央処理装置の必要とするデータを編集して送出するよう
にして、転送すべきデーク旬を減少させると共に、中央
処理装置の検索及び抽出処理を不要として、人出力処理
効率を高めると共に、中央処理装置の負担を軽減するこ
とを目的としている。
In view of these problems, the present invention provides column information and search information from a central processing unit to an auxiliary storage control unit such as a disk control unit, so that the auxiliary storage control unit can perform the tasks required by the central processing unit. To reduce the amount of data to be transferred by editing and sending data, and to eliminate the need for search and extraction processing in a central processing unit, thereby increasing human output processing efficiency and reducing the burden on the central processing unit. It is an object.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の原理ブロンク図である。 FIG. 1 is a bronch diagram of the principle of the present invention.

中央処理装置lは、第4図に示す如きデータベースを格
納した補助記憶装置3を補助記憶制御装置2を経て接続
している。
The central processing unit 1 is connected to an auxiliary storage device 3, which stores a database as shown in FIG. 4, through an auxiliary storage control device 2.

そして、補助記憶制御装置2に対し、前記のカラム情報
と、サーチ情報とを補助記憶.制御装置2に送出した後
、データベースの処理を行うことを指示する。
Then, the column information and search information are sent to the auxiliary storage control device 2. After sending it to the control device 2, an instruction is given to perform database processing.

補助記憶制御装置2は、中央処理装置1からデタヘース
の処理を指示されると、補助記憶装置3から指定された
データベースを読出し、内部の記憶手段に格納する。そ
して、与えられたカラム情報に基づき、内部の記憶手段
に読出されたデータベースの各レコード内のカラムを区
分し、与えられたサーチ情報に基づき、データベースの
各レコードから、一り′−チ情報が指定するカラムを選
択し、この選択したカラムから、サーチ情報の指定する
条件に合致するレコードを選択してページに編集する。
When the auxiliary storage control device 2 is instructed by the central processing unit 1 to perform data storage processing, the auxiliary storage control device 2 reads the designated database from the auxiliary storage device 3 and stores it in internal storage means. Then, based on the given column information, the columns in each record of the database read into the internal storage means are classified, and based on the given search information, one '-search information is extracted from each record of the database. Select the column you want to specify, select the records that match the conditions specified in the search information from the selected column, and edit them on the page.

そして、補助記憶制御装置2はデータが所定のページ分
編集されるか、編集処理が終了すると、中央処理装置1
にページ単位に順次送出する。
Then, when the data has been edited for a predetermined number of pages or when the editing process is finished, the auxiliary storage control device 2
Send out page by page sequentially.

〔作用〕[Effect]

上記の如く構成することにより、補助記憶制御゛装置2
は中央処理装置1が指定するデータベースを、内部の記
憶手段に読出して格納し、この格納したデータベースの
各レコードから、カラム情報によってカラムを区分して
から、サーチ情報が指定するカラムを選択し、この選択
されたカラムの中から、サーチ情報が指定する条件に合
致するデータを抽出して、ページに編集して中央処理装
置1に送出するため、補助記憶装置3から読出されたデ
ータベースの中から中央処理装置1が必要とするデータ
のみ送出される。
By configuring as described above, the auxiliary storage control device 2
reads out and stores the database specified by the central processing unit 1 in an internal storage means, classifies columns according to column information from each record of the stored database, and selects the column specified by the search information; Data matching the conditions specified by the search information is extracted from the selected columns, edited into pages, and sent to the central processing unit 1 from the database read from the auxiliary storage device 3. Only data required by the central processing unit 1 is sent.

従って、補助記憶制御装置2ど中央処理装置1との間の
データ転送量が滅少して、人出力処理効率が向上し、中
央処理装置1は、データベースから必要とするデータの
検索及び抽出を行う必要が無く、負担が軽減される。
Therefore, the amount of data transferred between the auxiliary storage control device 2 and the central processing unit 1 is reduced, the human output processing efficiency is improved, and the central processing unit 1 can search and extract necessary data from the database. It is not necessary and the burden is reduced.

(実施例〕 第2図は本発明の一実施例を示す回路のブロック図であ
る。
(Embodiment) FIG. 2 is a block diagram of a circuit showing an embodiment of the present invention.

第2圓はプロセッサを備えて夫々独立した機能を持つ複
数の機能単位によって構成されるディスク制御装置の一
例を示す。チャネルアダプタ5にはフ゜ロセッサ10に
よってffilJ J卸されるインタフェース制御回路
11とデータ転送制御回路12と共通バス制御回路13
が設けられ、インタフェース制御回路11を経゛ζ入力
される上位装置のチャネル4からの命令をプロセンザl
Oが受信し、例えば、ディスク装置7との間のデータ転
送を指示されたとすると、共通ハス制御回路13を介し
、共通バス31を経て指定されたディスク装M7を接続
しているデハイスアダプタ6のアドレスを送出する。
The second circle shows an example of a disk control device including a plurality of functional units each having a processor and having independent functions. The channel adapter 5 includes an interface control circuit 11, a data transfer control circuit 12, and a common bus control circuit 13, which are transferred by the processor 10.
is provided, and the commands from the channel 4 of the host device inputted via the interface control circuit 11 are sent to the processor l.
For example, if the storage device O receives an instruction to transfer data to and from the disk device 7, the disk drive adapter 6 that connects the specified disk device M7 via the common bus 31 via the common bus control circuit 13 Send the address of

デハイスアダプタ6はチャネルアダプタ5と同一構成で
あり、デハイスアダプタ6の共通パス制御回路15を介
してチャネルアダプタ5からのアl・レスをプロセンザ
14が受信すると、共通バス制御回路15を経てチャネ
ルアダプタ5の共通ノ\ス制御回路13と結合する。そ
して、インタフェース制御回路17を経てディスク装置
7を制御して、指定されたアドレスのデータ書込み又は
読出しが可能となると、チャネルアダプタ5のプロセン
サ10に通知する。
The high-speed adapter 6 has the same configuration as the channel adapter 5, and when the processor 14 receives an address from the channel adapter 5 via the common path control circuit 15 of the high-speed adapter 6, it is sent via the common bus control circuit 15. It is coupled with the common nozzle control circuit 13 of the channel adapter 5. Then, it controls the disk device 7 via the interface control circuit 17, and notifies the processor 10 of the channel adapter 5 when it becomes possible to write or read data at the specified address.

ここで、チャネルアダプタ5のブロセンサ10はデータ
転送制御回路12を制御し、デハイスアダプタ6のプロ
セッザ14はデータ転送制御回路16を制御して、チャ
ネル4からデータの書込めを指示されている場合は、チ
ャネルアダプタ5がチャネル4lこデーク送出を要求し
、チャネル4から送出されるデータを、インタフェース
制御回路11、データ転送制御回路12、共通ハス制御
回路13及び15、データ転送制御回路16、インタフ
ェース制御回路17を経てディスク装置7に転送して書
込む。
Here, the block sensor 10 of the channel adapter 5 controls the data transfer control circuit 12, and the processor 14 of the high speed adapter 6 controls the data transfer control circuit 16, so that when an instruction to write data is received from the channel 4, In this case, the channel adapter 5 requests data transmission from the channel 4l, and sends the data transmitted from the channel 4 to the interface control circuit 11, the data transfer control circuit 12, the common bus control circuits 13 and 15, the data transfer control circuit 16, and the interface. The data is transferred to the disk device 7 via the control circuit 17 and written.

又、データの読出しを指示されている場合は、ディスク
装置7から読出したデータを、上記と逆方向に転送し、
チャネル4に送出する。
Also, if data reading is instructed, the data read from the disk device 7 is transferred in the opposite direction to the above,
Send to channel 4.

図示省略した中央処理装置がデータベース処理を行う場
合、チャネル4を経てチャネルアダプタ5のプロセソサ
10に対し、カラム情報の送出を通知する。
When a central processing unit (not shown) performs database processing, it notifies the processor 10 of the channel adapter 5 via the channel 4 that column information is to be sent.

この通知を受けたチャネルアダプタ5のプロセノザ10
は共通ハス制御回路13を介し、共通ハス3Iを経てシ
ェアドストレージ8の入出力ポート19にアドレスを送
出して結合し、チャネル4が送出するカラム情報をハッ
ファメモリ18に書込む。
Processor 10 of channel adapter 5 that received this notification
sends an address to and connects to the input/output port 19 of the shared storage 8 via the common lotus control circuit 13 and the common lotus 3I, and writes the column information sent by the channel 4 to the huffer memory 18.

即ち、チャネルアダプタ5のプロセッ1ノ10はヂャネ
ル4がインタフェース制御回路11とデータ転送制御回
路12と共通ハス制御回路13を経て共通ハス31に送
出するカラム情報を、入出力ボート19を経てバッファ
メモリ180カラム情報群領域に書込む。
That is, the processor 1/10 of the channel adapter 5 transfers column information sent from the channel 4 to the common lotus 31 via the interface control circuit 11, data transfer control circuit 12, and common lotus control circuit 13 to the buffer memory via the input/output port 19. Write to the 180 column information group area.

次にチャネル4はチャネルアダプタ5のプロセンサ10
を経て、デハイスアダプタ6のブロセッサ14に対し、
ディスク装置7からデータベースの読出しを指示する。
Next, channel 4 is connected to Prosensor 10 of channel adapter 5.
After that, to the processor 14 of the high speed adapter 6,
Instructs to read the database from the disk device 7.

従って、デハイスアダプタ6のブロセソ′IJ14ば、
共通ハス制御回路15を経てシェアドス1・レージ8の
入出力ボー1− ] 9 6こアドレスを送出して結合
し、ディスク装置7から指定されたデークー・ースを続
出し、入出力ボー1〜19を介してハシファメモリ18
の入力ページ群領域に書込む。
Therefore, if the high speed adapter 6's IJ14 is
Through the common bus control circuit 15, the input/output baud 1-]96 address of the shared storage 1/rage 8 is sent and combined, and the specified decous is successively sent from the disk device 7, and the input/output baud 1-]9 Hashifa Memory 18 via 19
Write to the input page group area of .

次にチャネル4はサーチ情報を送出すると共に、データ
ベースの処理開始を指示する。
Channel 4 then sends out search information and instructs the start of database processing.

従って、チャネルアダプタ5のプロセッサ10は共通ハ
ス制御回路13を介し、共通ハス31とデータベースア
シス1・9の入出力ボーI・29を経て、プロセッザ2
3にアドレスを送出して結合し、データベースアシスl
− 9のハッファメモリ30のサーチ情報格納領域にチ
ャネル4が送出ずるサーチ情報の書込みを行ね・lる。
Therefore, the processor 10 of the channel adapter 5 is connected to the processor 2 through the common bus control circuit 13, through the common bus 31 and the input/output ports I/29 of the database assists 1 and 9.
Send the address to 3, combine it, and database assist l
- Write the search information sent by the channel 4 into the search information storage area of the Huffer memory 30 of 9.

この時チャネノレアダフ”タ5のフ゜ロセンサ10は、
チャネル4からの指示に基づき、データベースアシス1
・9のプロセンザ23に対し、シエアドストレージ8の
ハシファメモリ18のカラム情報群領域に書込まれてい
るカラム情報の読出しを指示する。
At this time, the fluoro sensor 10 of the channel sensor 5 is
Based on instructions from channel 4, database assistance 1
- Instruct the processor 23 of No. 9 to read the column information written in the column information group area of the Hashfer memory 18 of the shared storage 8.

従って、プロセソサ23は入出力ボート24から、シェ
アドス1・レージ8の入出力ボート20にアドレスを送
出して結合させ、バッファメモリI8のカラム情報群領
域をアクセスして、カラム情報を読出させ、ハンファメ
モリ25のカラム情報格納領域に書込ませる。
Therefore, the processor 23 sends the address from the input/output boat 24 to the input/output boat 20 of the shared storage 1/rage 8, connects it, accesses the column information group area of the buffer memory I8, reads out the column information, and The column information is written to the column information storage area of the memory 25.

デバイスアダプタ6のプロセッ・り“14は第4図のペ
ージに示すJページ分のデータの書込みが完了すると、
共通バス制御回路15と共通ハス31とデータベースア
シスト9の入出力ボート24を経てブロセンザ23に対
し、1ページ分のデータ書込み完了を通知する。
When the processor 14 of the device adapter 6 completes writing the data for J pages shown in the page of FIG.
The completion of data writing for one page is notified to the Brosenser 23 via the common bus control circuit 15, the common bus 31, and the input/output port 24 of the database assist 9.

従って、プロセンザ23は入出力ボー1・24とシェア
ドス1・レージ8の人出力ボート20を経て、パッファ
メモリ18をアクセスさせ、入力ページ群領域からデー
タを読出させ、入出力ボート24を経てハッファメモリ
25の入力ページ格納領域に書込ま・lる。
Therefore, the processor 23 accesses the puffer memory 18 via the input/output ports 1 and 24 and the human output ports 20 of the shared storage 1 and the storage 8, reads data from the input page group area, and passes through the input/output ports 24 to the buffer memory 25. The data is written to the input page storage area of .

データベースアシス1−9の解析処理部27は、ハノフ
ァメモリ25の入力ペーシ格納領域に1・く一ジのデー
タが書込まれると、このデータからレコードを順次取り
込み、レコードを構成しているカラム群をハンファメモ
リ25のカラム情報格納領域に格納されたカラムの艮ざ
とカラム番号と形式からなるカラム情報と照合して、数
値の連続したレコードをカラムφ位に分解し、分解した
カラムが数字か文字か等の形式を判定する解析を行う。
When the data of 1.1 yen is written to the input page storage area of the Hanofa memory 25, the analysis processing unit 27 of the database assist 1-9 sequentially imports records from this data and analyzes the column groups that make up the record. The record of consecutive numerical values is broken down into column φ positions by comparing the column appearance stored in the column information storage area of the Hanwha memory 25 with the column information consisting of the column number and format, and it is determined whether the broken down column is a number or a character. Perform an analysis to determine the format of etc.

そして、ページ作成処理部28に対し、この解析結果を
送出する。
Then, this analysis result is sent to the page creation processing section 28.

又、選択処理部26に対しては、ハッファメモリ25か
ら読出して解析した総てのカラムのハッファノモリ25
に格納されている先頭アドレスと、カラム情報に指定さ
れているカラム番号と、カラムの長さを送出する。
In addition, for the selection processing unit 26, the Huffer memory 25 of all the columns read out from the Huffer memory 25 and analyzed
Sends the start address stored in , the column number specified in column information, and the length of the column.

この処理は、ハッファメモリ25に格納された入力ペー
ジの全レコードの解析が完了するまで繰り返し続行され
る。
This process is repeated until all records of the input page stored in the Huffer memory 25 have been analyzed.

尚、カラムの長さに付いて説明すると、カラムの長さは
カラムの構造によって指定される方法が異なっており、
カラム情報に指定されているものと、カラム自体の固定
領域に指定されているものと、カラム情報又ぱカラム自
体で指定された長さとは無関係にその長さが決定される
もの等があるため、解析処理部27は夫々のカラムに対
応して、その長さを判定し、単なる数値が連続している
レコードをカラム単位に分解する。
Regarding column length, the method for specifying column length differs depending on the structure of the column.
Some are specified in the column information, some are specified in the fixed area of the column itself, and some have their length determined regardless of the length specified in the column information or the column itself. The analysis processing unit 27 determines the length of each column and breaks down records containing consecutive numerical values into columns.

選択処理部26は解析処理部27が順次送出する先頭ア
ドレスと、カラム番号と、カラムの長さで構成された選
択情報の中で、ハンファメモリ30のサーチ情報格納領
域に格納されているサーチ情報が指定するカラム番号と
一致したものを抽出する。
The selection processing unit 26 selects the search information stored in the search information storage area of the Hanwha memory 30 from among the selection information composed of the start address, column number, and column length sequentially sent by the analysis processing unit 27. Extracts those that match the column number specified by .

そして、この抽出した選択情報と、サーチ情報より得ら
れる比較データ、比較条件及び夫々の比較条件の組合わ
せである論理条件を用い、ハッファメモリ25の入カペ
ージ格納領域に格納されている1ページのデータから順
次力ラムを取り込んで比較処理を実行する。即ち、指定
されたカラム番号のカラム長を選択情報で認識し、比較
処理を行って選択対象のレコード、例えば指定された地
域の指定された年令が記録されたカラムが存在するレコ
ードであるか否かを判定する。
Then, using this extracted selection information, comparison data obtained from the search information, comparison conditions, and logical conditions that are a combination of the respective comparison conditions, one page of data stored in the input page storage area of the Huffer memory 25 is extracted. The power rams are taken in sequentially from 1 to 3 and the comparison process is executed. In other words, the column length of the specified column number is recognized from the selection information, and a comparison process is performed to determine whether the record to be selected is, for example, a record in which a column in which a specified age in a specified region is recorded. Determine whether or not.

この比較処理のための論理条件はいくつかの比較結果の
論理式により成っており、少なくとも、サーチ情報に指
定された全情報の処理を完了した時点、又は、比較結果
と論理式によっては、いくつかの比較処理が完了した時
点、例えば住所のカラムの比較処理が完了し、年令のカ
ラムの比較が未である時点で、処理中のレコードが選択
対象か、非対象であるか判別出来る。即ち、レコードに
含まれるカラム内容が比較条件を満たしているか、否か
で、そのレコードが選択対象か非対象か判別される。
The logical conditions for this comparison process are made up of logical expressions of several comparison results. When the comparison process is completed, for example, when the comparison process for the address column is completed and the comparison process for the age column is not yet completed, it can be determined whether the record being processed is a selection target or a non-target record. That is, it is determined whether a record is to be selected or not, depending on whether the column contents included in the record satisfy the comparison condition.

選択処理部2 6 1#処理したレコードが選択対象か
非対象かが判定されると、解析処理部27とページ作成
処理部2Bに、その結果を通知する。
Selection processing unit 2 6 1 # Once it is determined whether the processed record is a selection target or not, the analysis processing unit 27 and page creation processing unit 2B are notified of the result.

解析処理部27とページ作成処理部28は、処理中か処
理の完了したレコードが、選択処理部26からの通知に
より、非選択対象であれば処理を中断ずるか、処理の完
了しているレコードは無効として、次のレコードをハン
ファメモリ25から読出ず。又、選択対象であって処理
中であれば処理を続行し、処理が完了していれば、ペー
ジ作成処理部28は下記の処理を行う。
The analysis processing unit 27 and the page creation processing unit 28 will either interrupt the processing if the record being processed or has completed processing is not to be selected by the notification from the selection processing unit 26, or change the processing to the record that has been completed. is invalid and the next record is not read from the Hanwha memory 25. Further, if the item is selected and is being processed, the process continues, and if the process is completed, the page creation processing unit 28 performs the following process.

ページ作成処理部28はパッファメモリ30の出力ペー
ジ格納領域に、新たなベーシを作成する処理を行う。即
ち、解析処理部27が送出する抽出対象のカラムのみを
順次ハッファメモリ30に格納して行き、解析処理部2
7より1レコード分の処理が完了した通知を受け、且つ
、選択処理部26から処理レコードが選択対象である通
知を受けた場合に、出力用の1レコードが完成したと判
定し、このレコードをハッファメモリ30に格納ずるた
め、先頭格納アドレスが指定する領域に書込みを行うと
共に、新たにレコードを格納する領域の割付け等を行っ
て、次のレコード作成処理に移行する。
The page creation processing unit 28 performs processing to create a new basis in the output page storage area of the puffer memory 30. That is, only the columns to be extracted sent by the analysis processing unit 27 are sequentially stored in the Huffer memory 30, and the analysis processing unit 2
When receiving a notification from 7 that processing for one record has been completed, and receiving a notification from the selection processing unit 26 that a processed record is to be selected, it is determined that one record for output has been completed, and this record is In order to store the record in the huffer memory 30, it writes to the area specified by the first storage address, allocates an area for storing a new record, and moves on to the next record creation process.

このような処理はハッファメモリ25の入力ページ格納
領域にデータが格納されなくなるまで継続され、ハンフ
ァメモリ30の出力ページ格納領域に格納されたレコー
ドの量はプロセンザ23により監視されている。
Such processing continues until no data is stored in the input page storage area of the Huffer memory 25, and the amount of records stored in the output page storage area of the Huffer memory 30 is monitored by the processor 23.

ブロセンサ23はハッファメモリ30の出力ページ格納
令頁域に1ページ分のレコードが格納されると、入出力
ポート29を共通ハス31を経てシェアドストレージ8
の入出力ボー1・21と結合させ、ハッファメモリ30
から読出したレコードをバッファメモリ18の出力ペー
ジ群領域に書込ませる。
When one page of records is stored in the output page storage instruction page area of the Huffer memory 30, the Brosensor 23 connects the input/output port 29 to the shared storage 8 via the common lotus 31.
Huffer memory 30
The records read from the buffer memory 18 are written to the output page group area of the buffer memory 18.

チャネルアダプタ5のプロセッサ10は、プロセンサ2
3よりシェアドス1〜レージ8のバッファメモリ8に1
ページ分のデータが書込まれたことを連知され、この通
知を積算して所定のベーシ数に達するか、又は、バッフ
ァメモリ30の出力ページ格納領域が空になって、デー
タベースアシス}−9の処理が完了したことを通知され
ると、入出力ボート22を経てバッファメモリ18をア
クセスさせて、出力ページ群領域から1ページずつデー
タを読出させ、前記の如くデータ転送制御回路12を制
御して、複数ページを連続してチャネル4に転送させる
The processor 10 of the channel adapter 5 is the processor 10 of the channel adapter 5.
From 3, 1 to 8 buffer memories for shared storage 1 to storage 8
Either the user is notified that a page's worth of data has been written, and the notifications are accumulated to reach a predetermined number of bases, or the output page storage area of the buffer memory 30 becomes empty, and database assistance}-9 When it is notified that the processing of Then, multiple pages are transferred to channel 4 in succession.

第3図は第2図の動作例を説明するタイムチャートであ
る。
FIG. 3 is a time chart illustrating the example of the operation shown in FIG.

縦軸に処理を、横軸に時間をとると、処理■はデバイス
アダプタ6がディスク装置7からデータベースを読出し
て、シェアドストレージ8のバッファメモリ18の入力
ページ群領域にページ毎に書込む時間を示す。即ち、入
力ベージ■〜[相]までの]0ページを順次格納する場
合を示す。
If the vertical axis represents processing and the horizontal axis represents time, then process (2) represents the time required for device adapter 6 to read the database from disk device 7 and write each page to the input page group area of buffer memory 18 of shared storage 8. show. In other words, a case is shown in which pages 0 (from input page 1 to [phase]) are sequentially stored.

処理@はデータベースアシスト9のプロセッサ23が、
ハッファメモリ18の入力ページ群領域からページ毎に
ハッファメモリ25の入力ページ格納領域に害込む時間
を示す。即ち、処理■から1ページ分転送する時間遅れ
て入力ページ■〜[相]がデータ転送される。
Processing @ is performed by the processor 23 of the database assist 9.
It shows the time required for each page from the input page group area of the Huffer memory 18 to enter the input page storage area of the Huffer memory 25. That is, the data of input pages 2 to [phase] is transferred after a delay of one page from process 2.

処理■はデータベースアシスト9の解析処理部27と選
択処理部26のカラムの比較処理に要する時間を示す。
Processing ■ indicates the time required for column comparison processing by the analysis processing section 27 and the selection processing section 26 of the database assist 9.

即ち、選択処理部26が選択対象か否かを判定して、そ
の結果を解析処理部27とページ作成処理部28に通知
するまでの時間を示す。そして、人力ページ■と■の間
が切れているのは、入力ベージ■の処理開始前に入力ペ
ージ■までの比較処理が完了した場合を示す。
That is, it shows the time taken by the selection processing section 26 to determine whether or not the selection target is selected and to notify the analysis processing section 27 and the page creation processing section 28 of the result. The gap between the manual pages ■ and ■ indicates that the comparison process up to the input page ■ is completed before the processing of the input page ■ starts.

処理[相]はページ作成処理部28がバソファメモIJ
30上にレコードを順次格納し、入力ページ■〜[相]
の10ページを3ページの出力ページ■゛〜■゜に編集
する時間を示す。
Processing [phase] is performed by the page creation processing unit 28 using BasofaMemo IJ.
Store records sequentially on 30, input page ■ ~ [phase]
This shows the time it takes to edit 10 pages of 1 to 3 output pages ■゛~■゜.

処理[相]はハシファメモリ30の出力ページ格納領域
に1ページ分の出力ページが完成した時、プロセッサ2
3がシェアドストレージ8のハッファメモリ18の出力
ページ群領域に、出力ページを転送する時間を示す。
Processing [phase] is executed by the processor 2 when one page worth of output pages is completed in the output page storage area of the Hashfer memory 30.
3 indicates the time to transfer the output page to the output page group area of the huffer memory 18 of the shared storage 8.

処理[相]はチャネルアダブク5のプロセッサ1oが、
シェアドス1−レージ8のバッファメモリ18の出力ペ
ージ群領域から3ページの出力ページを読出させ、チャ
ネル4に転送する時間を示す。
Processing [phase] is carried out by the processor 1o of the channel adapter 5,
This shows the time required to read three output pages from the output page group area of the buffer memory 18 of shared storage 1-rage 8 and transfer them to channel 4.

上記の如く、本実施例によれば、データへース処理のた
めデータ転送に要する時間は3/1 0に削減される。
As described above, according to this embodiment, the time required for data transfer due to data processing is reduced to 3/10.

そして、処理@〜■は処理■に示すデータ転送と並列に
実行されるため、この処理時間は見掛け上殆ど零になる
Since the processes @ to (2) are executed in parallel with the data transfer shown in process (2), the processing time is apparently almost zero.

〔発明の効果〕〔Effect of the invention〕

以上説明した如く、本発明はチャネルとディスク制御装
置との間のデータ転送量を減少させるため、入出力処理
効率を高めることが可能であり、中央処理装置は必要と
するデータが纒集されてディスク制御装置より送出され
るため、負担を軽減することが出来る。
As explained above, the present invention reduces the amount of data transferred between the channel and the disk controller, so it is possible to improve input/output processing efficiency, and the central processing unit can collect necessary data. Since it is sent from the disk controller, the load can be reduced.

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

第1図は本発明の原理ブロック図、 第2図は本発明の一実施例を示す回路のブロンク回、 第3図は第2図の動作を説明するタイムチャート、第4
図はデータベースの一例を説明する図である。 図において、 2 1 〜 1は中央処理装置、   2ぱ補助記憶制御装置、3は
補助記憶装置、   4はチャネル、4はチヤ不ル、 
    5はチャネルアダフ゜ク、6はデハイスアダブ
ク、7はディスク装置、8ばシェアl・ストレージ、 9ぱデータベースアシス1−、 10,14.23はプロセッサ、 II,17はインタフェース制1卸回路、12. 16
はデータ転送制御回路、 13. 15は共通ハス制御回路、 18, 25. 30は八ソファメモリ、19〜22,
2体,29は入出力ボー1・、26は選択処理部、  
 27は解析処理部、28はページ作成処理部である。
Fig. 1 is a block diagram of the principle of the present invention, Fig. 2 is a circuit diagram showing an embodiment of the present invention, Fig. 3 is a time chart explaining the operation of Fig. 2, and Fig. 4 is a block diagram of the principle of the present invention.
The figure is a diagram illustrating an example of a database. In the figure, 2 1 to 1 are central processing units, 2 are auxiliary storage controllers, 3 are auxiliary storage devices, 4 are channels, 4 is a channel,
5 is a channel adapter, 6 is a storage adapter, 7 is a disk device, 8 is a shared storage, 9 is a database assist 1-, 10, 14.23 is a processor, II, 17 is an interface control 1 output circuit, 12. 16
is a data transfer control circuit; 13. 15 is a common lotus control circuit; 18, 25. 30 is eight sofa memory, 19-22,
2 units, 29 is the input/output board 1, 26 is the selection processing unit,
27 is an analysis processing section, and 28 is a page creation processing section.

Claims (1)

【特許請求の範囲】 最小データ単位のカラムの集まりで構成されるレコード
と、該レコードの集まりで構成されるページと、該ペー
ジの集まりで構成されるデータベースを格納した補助記
憶装置(3)を接続し、該カラムの長さと形式を示すカ
ラム情報と、比較データと比較条件及び夫々の比較条件
の組合わせである論理条件を示すサーチ情報とを用いて
、該補助記憶装置(3)から読出した該データベースを
処理する中央処理装置(1)を備えた計算機システムに
おいて、該中央処理装置(1)からデータベースの処理
を指示された時、内部の記憶手段に該補助記憶装置(3
)から読出した該データベースを格納し、 与えられたカラム情報に基づき、該記憶手段に読出され
たデータベースの各レコード内のカラムを区分し、与え
られたサーチ情報に基づき、データベースの各レコード
から該サーチ情報が指定するカラムを選択し、該選択し
たカラムから、該サーチ情報の指定する条件に合致する
レコードを選択してページに編集する補助記憶制御装置
(2)を設け、 該中央処理装置(1)が該カラム情報とサーチ情報とを
該補助記憶制御装置(2)に与えた後、データベースの
処理を指示することで、該補助記憶制御装置(2)が編
集したページを受領するようにしたことを特徴とするデ
ータベース処理方式。
[Claims] An auxiliary storage device (3) that stores records made up of a collection of columns of minimum data units, pages made up of the collection of records, and a database made up of the collection of pages. and read from the auxiliary storage device (3) using column information indicating the length and format of the column, and search information indicating the comparison data, comparison conditions, and logical conditions that are a combination of the respective comparison conditions. In a computer system equipped with a central processing unit (1) that processes the database, when an instruction is given from the central processing unit (1) to process the database, the auxiliary storage device (3) is stored in the internal storage means.
), classifies the columns in each record of the database read into the storage means based on the given column information, and searches the database from each record based on the given search information. The central processing unit ( After 1) gives the column information and search information to the auxiliary storage control device (2), it instructs database processing so that the auxiliary storage control device (2) receives the edited page. A database processing method characterized by:
JP1060032A 1989-03-13 1989-03-13 Database processing system Expired - Lifetime JP2570853B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1060032A JP2570853B2 (en) 1989-03-13 1989-03-13 Database processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1060032A JP2570853B2 (en) 1989-03-13 1989-03-13 Database processing system

Publications (2)

Publication Number Publication Date
JPH02238568A true JPH02238568A (en) 1990-09-20
JP2570853B2 JP2570853B2 (en) 1997-01-16

Family

ID=13130325

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1060032A Expired - Lifetime JP2570853B2 (en) 1989-03-13 1989-03-13 Database processing system

Country Status (1)

Country Link
JP (1) JP2570853B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5465352A (en) * 1992-02-20 1995-11-07 Fujitsu Limited Table-and-cache-based database assist method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62187931A (en) * 1986-02-14 1987-08-17 Hitachi Ltd Data base arithmetic unit and its method
JPS63131227A (en) * 1986-11-21 1988-06-03 Hitachi Ltd Data processing system
JPS63282835A (en) * 1987-05-15 1988-11-18 Hitachi Ltd Information retrieving system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62187931A (en) * 1986-02-14 1987-08-17 Hitachi Ltd Data base arithmetic unit and its method
JPS63131227A (en) * 1986-11-21 1988-06-03 Hitachi Ltd Data processing system
JPS63282835A (en) * 1987-05-15 1988-11-18 Hitachi Ltd Information retrieving system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5465352A (en) * 1992-02-20 1995-11-07 Fujitsu Limited Table-and-cache-based database assist method

Also Published As

Publication number Publication date
JP2570853B2 (en) 1997-01-16

Similar Documents

Publication Publication Date Title
JPH02238568A (en) Data base processing system
JPS63156477A (en) Image file device
JPH03179548A (en) Command re-execution processing system
JP3002041B2 (en) Database processing unit
JPH0581337A (en) Data processor
JPS62179026A (en) Sort block forward looking system
JPH02257284A (en) Data processor
JP2588522B2 (en) Machine translation dictionary access method
JP2530020B2 (en) Search method
JPH02165359A (en) Data processing system
JPH04250568A (en) Record retrieval device
JPH02168353A (en) Data base processing mechanism
JPS6167159A (en) Information processor
JP2522437B2 (en) Database system
JPS63292229A (en) Data base accessing system
JPH02109166A (en) Retrieving device for character string
JPH02110772A (en) Character string retrieving device
JPS63318627A (en) System for retrieving data base
JPH04182750A (en) Data processor
JPH03154165A (en) Inequality condition coupling system
JPS63180130A (en) Conversation sequence editing device
JPH05151286A (en) Data display system in cad system
JPS6191738A (en) Information processor
JPH04275675A (en) Data base processing system
JPS62259136A (en) Method for registering and retrieving document file