JP2748407B2 - Database processing system - Google Patents

Database processing system

Info

Publication number
JP2748407B2
JP2748407B2 JP63140878A JP14087888A JP2748407B2 JP 2748407 B2 JP2748407 B2 JP 2748407B2 JP 63140878 A JP63140878 A JP 63140878A JP 14087888 A JP14087888 A JP 14087888A JP 2748407 B2 JP2748407 B2 JP 2748407B2
Authority
JP
Japan
Prior art keywords
database
search
update
processing
search request
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
JP63140878A
Other languages
Japanese (ja)
Other versions
JPH021056A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63140878A priority Critical patent/JP2748407B2/en
Publication of JPH021056A publication Critical patent/JPH021056A/en
Application granted granted Critical
Publication of JP2748407B2 publication Critical patent/JP2748407B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、情報を記憶するデータベース処理システム
に関し、特に検索処理の高速化に好適なデータベース処
理システムに関する。
Description: TECHNICAL FIELD The present invention relates to a database processing system for storing information, and more particularly to a database processing system suitable for speeding up a search process.

〔従来の技術〕[Conventional technology]

従来、データベースシステムで複数のタスクが検索を
行い、別のタスクが更新を行う方式としては、例えば、
特開昭61−88349号公報に開示されているように、更新
系タスクを優先し、トラック単位の処理を行うことによ
り、更新処理の負荷を分散する方式が知られている。こ
の方式によれば、検索系タスクの待ち時間を減少させる
ことが可能である。
Conventionally, as a method in which a plurality of tasks search in a database system and another task updates, for example,
As disclosed in Japanese Patent Application Laid-Open No. 61-88349, there is known a method of distributing the update processing load by giving priority to an update task and performing processing in units of tracks. According to this method, it is possible to reduce the waiting time of the search task.

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

上記従来技術は、検索性能の高速化の点については配
慮がなされておらず、更新系タスクが処理を行っている
間は、検索系タスクの処理ができないという問題があっ
た。
The prior art described above does not consider the point of speeding up the search performance, and has a problem that the search task cannot be processed while the update task is processing.

本発明は上記事情に鑑みてなされたもので、その目的
とするところは、従来の技術における上述の如き問題を
解消し、検索処理と更新処理によるデータベース資源の
競合をなくし、検索処理の高速化を図ったデータベース
処理システムを提供することにある。
The present invention has been made in view of the above circumstances, and an object of the present invention is to solve the above-described problems in the conventional technology, eliminate the conflict between database resources due to search processing and update processing, and speed up search processing. It is to provide a database processing system aiming at.

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

本発明の上記目的は、検索系データベースと、更新系
データベースあるいは更新データ履歴情報に分離したデ
ータベースシステムにおいて、最新性を必要とするデー
タベースの検索要求に応答して、該検索要求を、更新系
データベース、あるいは、更新データ履歴情報および検
索系データベースを用いて処理し、また、最新性を必要
としないデータベースの検索要求に応答して、該検索要
求を、検索系データベースを用いて処理することを特徴
とするデータベース処理システムによって達成される。
An object of the present invention is to provide a database system which is separated into a search system database and an update system database or update data history information. Alternatively, processing is performed using updated data history information and a search database, and in response to a search request for a database that does not require up-to-dateness, the search request is processed using the search database. Is achieved by a database processing system.

〔作用〕[Action]

本発明に係るデータベース処理システムにおいては、
データの最近性を要しない検索要求は、データ資源の共
用制御処理および排他制御処理を一切行わない検索系デ
ータベースシステム側で実行するため、一般のデータベ
ースシステムに比べて検索系処理の性能向上を図ること
ができる。
In the database processing system according to the present invention,
A search request that does not require recentness of data is executed by the search database system that does not perform any data resource sharing control processing and exclusive control processing, so that the performance of the search processing is improved as compared with a general database system. be able to.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面に基づいて詳細に説明
する。
Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

第1図は、本発明の一実施例であるデータベース(以
下、「DB」という)システムの構成例を示す図である。
第1図において、DBシステム(1)40とDBシステム
(2)50は、各々独立したDBシステムであり、DBシステ
ム(1)40では更新(参照を含む)要求を更新系DB
(A)60をアクセスして処理し、その更新情報を、更新
データ履歴情報70に蓄積する。DBシステム(2)50で
は、参照要求だけを検索系DB(B)80を用いてアクセス
し、処理する。検索系DB(B)80は、更新系DB(A)60
のある一時点で複写を行ったDBである。
FIG. 1 is a diagram showing a configuration example of a database (hereinafter, referred to as “DB”) system according to an embodiment of the present invention.
In FIG. 1, a DB system (1) 40 and a DB system (2) 50 are independent DB systems, and the DB system (1) 40 transmits an update (including reference) request to an update DB.
(A) 60 is accessed and processed, and the update information is stored in the update data history information 70. The DB system (2) 50 accesses and processes only the reference request using the search DB (B) 80. The search DB (B) 80 is the update DB (A) 60
DB that was copied at a certain point in time.

なお、更新系DB(A)60は省略しても良く、その場合
には、更新データ履歴情報70と検索系DB(B)80の両方
を用いてアクセスし、処理する。
The update DB (A) 60 may be omitted. In this case, access and processing are performed using both the update data history information 70 and the search DB (B) 80.

ユーザは、処理目的に応じて、第2図に示すアクセス
言語を指定する。言語解析部10は、指定されたDBアクセ
ス言語を解析して、DBシステム管理部20に渡す。DBシス
テム管理部20は、解析情報を基に処理するDBシステムを
決定し、当該DBシステムに実行依頼することにより、目
的とするDB処理を行う。
The user specifies the access language shown in FIG. 2 according to the processing purpose. The language analysis unit 10 analyzes the designated DB access language and passes it to the DB system management unit 20. The DB system management unit 20 determines a DB system to be processed based on the analysis information, and performs a target DB process by requesting the DB system to execute the DB system.

上記解析情報が、最近性を求めない要求、すなわち、
高速性を求める要求かを判断し、高速性を要求する場合
は、システム負荷管理部30を呼ぶ。システム負荷管理部
30は、各DBシステムの負荷状況を管理し、システム負荷
の低いシステムを決定する。
The analysis information is a request that does not require recency, that is,
It is determined whether the request requires high speed, and when high speed is required, the system load management unit 30 is called. System load management unit
30 manages the load status of each DB system and determines a system with a low system load.

また、上記解析情報が、更新用言語である場合は、更
新系DB(A)60を持つDBシステム(1)40に実行依頼す
ることによりDB更新処理を行う。
If the analysis information is in an update language, a DB update process is performed by requesting the DB system (1) 40 having the update DB (A) 60 to execute the DB.

また、上記解析情報が、更新データの反映要求である
場合は、DBシステム(1)40に対して更新データ履歴情
報70を新たな格納エリアへの交代要求を出し、更新デー
タ履歴情報70を切離す。DBシステム(2)50に対して
は、更新データ履歴情報70を入力とするDB更新要求を出
し、検索系DB(B)80の更新処理を行う。
If the analysis information is a request to reflect the update data, a request to replace the update data history information 70 with a new storage area is issued to the DB system (1) 40, and the update data history information 70 is turned off. Let go. A DB update request is input to the DB system (2) 50 with the update data history information 70 as an input, and the search system DB (B) 80 is updated.

第3図は、システム全体の状態を管理するためのテー
ブルである。システム名31とDB名32は、処理するDBシス
テムを決定するために用いる。複写元DB名33は、更新系
DBを複写したDBであり、複写元の更新系DB名を示し、シ
ステム負荷の低いDBのサーチに用いる。DB単位実行トラ
ンザクション数(X)34は、当該DBに対するDBアクセス
言語の処理中の数を示し、システム内許容トランザクシ
ョン数(Y)35は、当該DBシステムで同時に並行して処
理できる最大のDBアクセス言語処理数を表わしている。
これらより、負荷率(Z)36の値は、次の式により求め
られる。
FIG. 3 is a table for managing the state of the entire system. The system name 31 and the DB name 32 are used to determine a DB system to be processed. Copy source DB name 33 is an update
This is a DB that is a duplicate of the DB, and indicates the name of the update DB at the copy source, and is used for searching for a DB with a low system load. The number of transactions executed in DB units (X) 34 indicates the number of DB access languages being processed for the DB, and the allowable number of transactions in the system (Y) 35 is the maximum DB access that can be processed concurrently in the DB system. Represents the number of language processes.
From these, the value of the load factor (Z) 36 is obtained by the following equation.

Z=X/Y 上記負荷率(Z)36は、システム負荷の低いDBシステ
ムを決定するのに用いる。更新データ反映フラグ37は、
検索系DB(B)80の更新中に検索要求があったとき、検
索処理を禁止するために用いる。更新DB省略フラグ38
は、更新系DBの有無を表現するフラグである。
Z = X / Y The load factor (Z) 36 is used to determine a DB system with a low system load. The update data reflection flag 37
It is used to prohibit search processing when a search request is made while updating the search system DB (B) 80. Update DB omission flag 38
Is a flag expressing the presence or absence of the update DB.

第4図は、上述の如く構成された本実施例の、DBシス
テム管理部20の動作を示すフローチャートである。以
下、これに従って、動作例を詳細に説明する。
FIG. 4 is a flowchart showing the operation of the DB system management unit 20 of the present embodiment configured as described above. Hereinafter, an operation example will be described in detail in accordance with this.

まず、ステップ200において、DBアクセス言語が“A"
であるならば、前述のシステム管理テーブルの該当する
DBのデータベース単位実行トランザクション数を1増加
し(ステップ201)、ステップ202において、更新系DB
(A)60が省略されていないならば、更新系DBシステム
(1)40に検索処理を命令し(ステップ203)、更新系D
B(A)60が省略されているならば、更新データ履歴情
報70に検索処理を命令する(ステップ204)。
First, in step 200, the DB access language is "A"
If it is, the corresponding
The number of execution transactions in the database unit of the DB is increased by 1 (step 201), and in step 202, the update DB
(A) If 60 is not omitted, a search process is instructed to the update DB system (1) 40 (step 203).
If the B (A) 60 is omitted, a search process is commanded to the update data history information 70 (step 204).

また、ステップ205において、当該データがない場合
は、検索系DBシステム(2)50に検索処理を命令し(ス
テップ206)、検索処理終了後にシステム管理テーブル
の該DBのデータベース単位実行トランザクション数を1
減じ(ステップ207)、処理を終了する。
If the data does not exist in step 205, a search process is instructed to the search DB system (2) 50 (step 206), and after the search process is completed, the number of database unit execution transactions of the DB in the system management table is set to one.
(Step 207), and the process ends.

次に、ステップ210において、DBアクセス言語が“B"
である場合には、前述のシステム負荷管理部30に処理を
渡し、指定DB名から、最小負荷率の複写DB名をもらい
(ステップ211)、システム管理テーブルの該DBのデー
タベース単位実行トランザクション数を1増加し(ステ
ップ212)、検索系DBシステム(B)80に検索処理を命
令し(ステップ213)、検索処理終了後に、システム管
理テーブルの該DBのデータベース単位実行トランザクシ
ョン数を1減じ(ステップ214)、処理を終了する。
Next, in step 210, the DB access language is "B"
In the case of, the processing is passed to the above-mentioned system load management unit 30, and a copy DB name having the minimum load ratio is obtained from the designated DB name (step 211), and the number of database unit execution transactions of the DB in the system management table is calculated. Increment by 1 (step 212), instructing the search DB system (B) 80 to execute a search process (step 213), and after the search process is completed, the number of database unit executed transactions of the DB in the system management table is reduced by 1 (step 214). ), And terminate the process.

最後に、ステップ220において、DBアクセス言語が
“C"である場合には、システム負荷管理部30に処理を渡
し、指定DB名から、最小負荷率の検索系DB名、もしく
は、更新系DB名をもらい(ステップ221)、システム管
理テーブルの該DBのデータベース単位実行トランザクシ
ョン数を1増加し(ステップ222)、該DBシステムに検
索処理を命令し(ステップ223)、検索処理終了後にシ
ステム管理テーブルの該DBのデータベース単位トランザ
クション数を1減じ(ステップ224)、もし、ステップ2
25において、該DBがDBロックならば再度処理を実行し、
該DBがDBロックでないならば処理を終了する。
Finally, in step 220, if the DB access language is "C", the processing is passed to the system load management unit 30, and the specified DB name is used to retrieve the minimum load rate search DB name or update DB name. (Step 221), the number of execution transactions per database of the DB in the system management table is increased by 1 (Step 222), and a search process is instructed to the DB system (Step 223). The number of database unit transactions of the DB is reduced by 1 (step 224).
At 25, if the DB is a DB lock, execute the process again,
If the DB is not a DB lock, the process ends.

一方、ステップ220において、DBアクセス言語が“D"
である場合には、更新系DBに更新データ履歴情報のスワ
ップを命令し(ステップ231)、システム管理テーブル
の更新を行う検索系DBの更新データ反映フラグをオンに
し(ステップ232)、検索系DBを更新データ履歴情報70
を基に更新することを命令し(ステップ233)、更新デ
ータ履歴情報更新処理終了後に、システム管理テーブル
の更新を反映した検索系DBの更新データ反映フラグをオ
フにし(ステップ234)、処理を終了する。
On the other hand, in step 220, the DB access language is "D"
If it is, the update DB is instructed to swap the update data history information (step 231), and the update data reflection flag of the search DB that updates the system management table is turned on (step 232). Update data history information 70
(Step 233), and after the update data history information update processing, turns off the update data reflection flag of the search DB reflecting the update of the system management table (step 234), and ends the processing. I do.

第5図は、本実施例の、システム負荷管理部30の動作
を示すフローチャートである。以下、これに従って、動
作例を詳細に説明する。
FIG. 5 is a flowchart showing the operation of the system load management unit 30 according to the present embodiment. Hereinafter, an operation example will be described in detail in accordance with this.

まず、各DBの負荷率を、データベース単位実行トラン
ザクション数とシステム内許容トランザクション数から
求める(ステップ300)。次に、ステップ301により、指
定DB名からシステム管理テーブルを参照して複写DB名を
決定し、ステップ302により、システム管理テーブルか
ら該DBの更新データ反映フラグがオフならば次のステッ
プに進み、オンならば次のシステム管理テーブルを検索
する。ステップ303において、最小負荷率である場合に
は、次のステップに進み、最小負荷率でない場合には、
次のシステム管理テーブルを検索する。ステップ305に
おいて、複写DB名が求まっている場合には、求めたDB名
を返却する(ステップ307)。一方、ステップ305におい
て、複写DB名が求まっていない場合には、指定のDB名
を、求めたDB名として返却する。
First, the load factor of each DB is determined from the number of transactions executed in database units and the number of allowable transactions in the system (step 300). Next, in step 301, the copy DB name is determined by referring to the system management table from the designated DB name, and in step 302, if the update data reflection flag of the DB is off from the system management table, the process proceeds to the next step. If on, search the next system management table. In step 303, if it is the minimum load factor, the process proceeds to the next step, and if it is not the minimum load factor,
Search the next system management table. If the copy DB name has been obtained in step 305, the obtained DB name is returned (step 307). On the other hand, if the copy DB name has not been obtained in step 305, the designated DB name is returned as the obtained DB name.

上記実施例によれば、データベースシステム等におい
て、検索するデータの最新性を要求しなければ、データ
資源の競合による処理オーバヘッドをなくすことがで
き、前記システムの検索処理性能を向上させることがで
きる。また、複数のデータベースシステムの負荷バラン
スを考慮して、ユーザの要求を最適なデータベースに分
配するので、システム全体のスループット性能向上にも
効果がある。
According to the above-described embodiment, in a database system or the like, if the latest of the data to be searched is not required, the processing overhead due to the competition of the data resources can be eliminated, and the search processing performance of the system can be improved. In addition, since user requests are distributed to the most appropriate database in consideration of the load balance of a plurality of database systems, it is effective in improving the throughput performance of the entire system.

なお、上記各実施例は一例として示したものであり、
本発明はこれらに限定されるべきものではない。
In addition, each said Example is shown as an example,
The present invention should not be limited to these.

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

以上、述べた如く、本発明によれば、検索系データベ
ースと、更新系データベースあるいは更新データ履歴情
報に分離したデータベースシステムにおいて、最新性を
必要とするデータベースの検索要求に応答して、該検索
要求を、更新系データベース、あるいは、更新データ履
歴情報および検索系データベースを用いて処理し、ま
た、最新性を必要としないデータベースの検索要求に応
答して、該検索要求を、検索系データベースを用いて処
理するようにしたので、検索処理と更新処理によるデー
タベース資源の競合をなくし、検索処理の高速化を図っ
たデータベース処理システムを実現できるという顕著な
効果を奏するものである。
As described above, according to the present invention, in a database system separated into a search database and an update database or update data history information, in response to a search request for a database that requires up-to-date Is processed using an update database or an update data history information and a search database, and in response to a search request for a database that does not require up-to-dateness, the search request is processed using the search database. Since the processing is performed, there is a remarkable effect that it is possible to eliminate the conflict between the database resources due to the search processing and the update processing and to realize a database processing system that achieves a high-speed search processing.

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

第1図は本発明の一実施例であるDBシステムの構成を示
す図、第2図はDBアクセス言語の概要を示す図、第3図
はシステム管理テーブルの形式を示す図、第4図はDBシ
ステム管理部の動作を示すフローチャート、第5図はシ
ステム負荷管理部の動作を示すフローチャートである。 10:言語解析部、20:DBシステム管理部、30:システム負
荷管理部、40:DBシステム(1)、50:DBシステム
(2)、60:更新系DB(A)、70:更新データ履歴情報、
80:検索系DB(B)。
FIG. 1 is a diagram showing a configuration of a DB system according to one embodiment of the present invention, FIG. 2 is a diagram showing an outline of a DB access language, FIG. 3 is a diagram showing a format of a system management table, and FIG. FIG. 5 is a flowchart showing the operation of the DB system management unit, and FIG. 5 is a flowchart showing the operation of the system load management unit. 10: Language analysis unit, 20: DB system management unit, 30: System load management unit, 40: DB system (1), 50: DB system (2), 60: Update DB (A), 70: Update data history information,
80: Search DB (B).

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】検索系データベースと、更新系データベー
スあるいは更新データ履歴情報に分離したデータベース
システムにおいて、最新性を必要とするデータベースの
検索要求に応答して、該検索要求を、更新系データベー
ス、あるいは、更新データ履歴情報および検索系データ
ベースを用いて処理することを特徴とするデータベース
処理システム。
In a database system which is separated into a search system database and an update system database or update data history information, in response to a search request for a database requiring up-to-date, the search request is sent to the update system database or A database processing system for processing using update data history information and a search database.
【請求項2】最新性を必要としないデータベースの検索
要求に応答して、該検索要求を、検索系データベースを
用いて処理することを特徴とする、特許請求の範囲第1
項記載のデータベース処理システム。
2. A search system according to claim 1, wherein said search request is processed using a search system database in response to a search request for a database that does not require up-to-dateness.
The database processing system described in the section.
【請求項3】最新性を問わないデータベースの検索要求
に応答して、該検索要求を、システム内の負荷が軽いデ
ータベースを用いて処理することを特徴とする、特許請
求の範囲第1項記載のデータベース処理システム。
3. The system according to claim 1, wherein said search request is processed using a database having a light load in a system in response to a search request of a database regardless of its up-to-dateness. Database processing system.
【請求項4】処理中に、データベースロックが発生した
場合、当該データベース処理を中止し、他系のデータベ
ースを用いて前記検索要求を処理することを特徴とす
る、特許請求の範囲第3項記載のデータベース処理シス
テム。
4. The system according to claim 3, wherein, if a database lock occurs during the processing, said database processing is stopped and said search request is processed using a database of another system. Database processing system.
【請求項5】前記検索要求における最新性の必要の有無
を示すデータベースアクセス言語を用いることを特徴と
する、特許請求の範囲第1項または第2項記載のデータ
ベース処理システム。
5. The database processing system according to claim 1, wherein a database access language indicating whether or not the search request needs to be up-to-date is used.
JP63140878A 1988-06-08 1988-06-08 Database processing system Expired - Lifetime JP2748407B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63140878A JP2748407B2 (en) 1988-06-08 1988-06-08 Database processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63140878A JP2748407B2 (en) 1988-06-08 1988-06-08 Database processing system

Publications (2)

Publication Number Publication Date
JPH021056A JPH021056A (en) 1990-01-05
JP2748407B2 true JP2748407B2 (en) 1998-05-06

Family

ID=15278865

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63140878A Expired - Lifetime JP2748407B2 (en) 1988-06-08 1988-06-08 Database processing system

Country Status (1)

Country Link
JP (1) JP2748407B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2812158B2 (en) * 1993-08-26 1998-10-22 村田機械株式会社 Package transport system
JP2002014863A (en) * 2000-06-30 2002-01-18 Nec Corp Method for operating data base system for task

Also Published As

Publication number Publication date
JPH021056A (en) 1990-01-05

Similar Documents

Publication Publication Date Title
US5956712A (en) Byte range locking in a distributed environment
US6240413B1 (en) Fine-grained consistency mechanism for optimistic concurrency control using lock groups
JPH04229355A (en) Data access method and data processing system
JPH02230373A (en) Data base processing system
JPH08328933A (en) File access control system for parallel processing system
JP2748407B2 (en) Database processing system
US5062046A (en) Multiple processor system having a correspondence table for transferring processing control between instruction processors
JPH01134642A (en) Controlling and processing system for data base
JPH07141237A (en) Data base access control unit
JP2843748B2 (en) Exclusive control method
JP2746189B2 (en) File access control system
JP2787107B2 (en) Buffer control system and device
JPS62131349A (en) Data base processing system
JPH04260141A (en) Data shared processor
JPH03253947A (en) Data base accessing system
JP3006527B2 (en) Client / server type database system
JPS63113637A (en) Exclusive processing system for hash table entry
JPH04139545A (en) Data base updating processing system
JP2562515B2 (en) Direct access storage device selection processing method
JP2926873B2 (en) Computer system
JP2002163120A (en) Information processing system, object priority management method, operating system, and record medium
JPS6318777B2 (en)
JPH0193829A (en) System for operating queue
JPS63175936A (en) Knowledge base searching system
JPS6022785B2 (en) High-speed duplicate data integrity maintenance method