JPH03168847A - High-speed data base control system - Google Patents

High-speed data base control system

Info

Publication number
JPH03168847A
JPH03168847A JP1307675A JP30767589A JPH03168847A JP H03168847 A JPH03168847 A JP H03168847A JP 1307675 A JP1307675 A JP 1307675A JP 30767589 A JP30767589 A JP 30767589A JP H03168847 A JPH03168847 A JP H03168847A
Authority
JP
Japan
Prior art keywords
database
processing
exclusive
reflection
block
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
JP1307675A
Other languages
Japanese (ja)
Other versions
JPH07104811B2 (en
Inventor
Yukio Takaguchi
高口 幸雄
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 JP1307675A priority Critical patent/JPH07104811B2/en
Publication of JPH03168847A publication Critical patent/JPH03168847A/en
Publication of JPH07104811B2 publication Critical patent/JPH07104811B2/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 prevent the generation of exclusive queuing or dead lock by grouping updating requests having the same exclusive section as a block and serially activating respective blocks having respective identical exclusive sections. CONSTITUTION:Records having the same exclusive section in a data base are grouped as a block and respective blocks having respectively identical exclusive sections are controlled so as to be serially processed at every block in updating processing. For instance, a transaction record group having the same exclusive section are grouped as a block on the data base updating information forming side 5 and sent to the data base updating information reflecting side 6, which serially processes respective blocks by respective data base reflecting processing 15 to 17. Consequently, the generation of exclusive queuing and dead lock between respective blocks can be prevented.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データベースを有する計算機応用システムに
おける高速データベース制御方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a high-speed database control method in a computer application system having a database.

〔従来の技術〕[Conventional technology]

従来の技術では、第10図に示す通り、データベース更
新情報作成側5で発生する取引レコード(第10図に示
すA−1,A−2,B−1等、但しA−1はデータベー
スAに対する1番目の更新情報、A−2は同じく2番目
の更新情報を示す)単位にこの更新情報をデーターベー
スへ反映する側6に送っていた。データベース情報作或
側5から、同反映側6への取引レコード送信は高速化の
ための多重処理が一般的であり、第10図では送信多重
度と反映処理の多重度が同じケースを示した。更新情報
をデータベースへ反映する側では送られた取引レコード
毎にデータベースへ反映する処理7,8.9を起動して
いた。取引レコードの発生は,データベースA,B,C
,に対してランダムであり,このためデータベース更新
情報反映側ではデータベース更新時に、取引レコード間
の排他競合が発生する可能性があった。データベースA
,B,Cはそれぞれ排他制御の区分が異なり、第10図
では、取引レコードA−1,A−2の排他の単位が等し
いため,w4合が発生している。
In the conventional technology, as shown in FIG. 10, transaction records generated on the database update information creation side 5 (A-1, A-2, B-1, etc. shown in FIG. 10), where A-1 is for database A This update information is sent to the side 6 which reflects it on the database in units of (first update information, A-2 also indicates the second update information). Transmission of transaction records from the database information creation side 5 to the reflection side 6 is generally performed through multiple processing to speed up the processing, and Figure 10 shows a case where the multiplicity of transmission and reflection processing is the same. . On the side that reflects updated information to the database, processes 7 and 8.9 for reflecting the updated information in the database are activated for each transaction record sent. Transaction records are generated in databases A, B, and C.
, and for this reason, there is a possibility that an exclusive conflict between transaction records may occur on the database update information reflecting side when updating the database. Database A
, B, and C have different exclusive control classifications, and in FIG. 10, the transaction records A-1 and A-2 have the same exclusive unit, so w4 match occurs.

なお関連する技術として特開昭63−191249号公
報等が挙げられる。
Incidentally, related techniques include Japanese Patent Application Laid-open No. 191249/1983.

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

上記従来技術にはデータベースの更新処理を高速にでき
ない次の課題があった。
The above-mentioned conventional technology has the following problem in that it cannot perform database update processing at high speed.

(1)データベース更新要求の単位である取引レコード
と更新処理の起動単位が同じであり、取引レコードごと
にデータベース更新のための起動と終了のプログラム処
理ステップかを必要とするためシステム全体の性能が低
下する。, (2)本来データベース更新要求は、データベース設計
により決まる排他の範囲や単位と無関係に発生するため
、ランダムな更新要求をそのまま起動する場合、データ
ベース反映処理相互に排他待ちが発生する。更新要求の
発生量増加により,排他待ちが膨大となりシステム全体
の性能が低下する。
(1) The transaction record, which is the unit of a database update request, and the startup unit of the update process are the same, and each transaction record requires a program processing step to start and end the database update, which reduces the performance of the entire system. descend. , (2) Since database update requests are originally generated regardless of the range or unit of exclusion determined by the database design, if random update requests are started as they are, mutual exclusion waits will occur for database reflection processing. As the number of update requests increases, the amount of time waiting for exclusive use becomes enormous and the performance of the entire system deteriorates.

(3)課題の(1)で述べたデータベース更新処理の起
動と終了のためのプログラム処理ステップの対策として
は、データベース更新情報作成側で発生する取引レコー
ドのうち、nレコードを1つにまとめてプロソキングし
、ブロッキングされたブロック単位をデータベース更新
情報反映側で起動と終了することにより、起動と終了の
プログラム処理ステップ数を1 7 nに縮減できるが
、この場合次の問題点がある。
(3) As a countermeasure for the program processing steps for starting and terminating the database update process mentioned in issue (1), among the transaction records generated on the database update information creation side, n records are combined into one. The number of program processing steps for startup and termination can be reduced to 1 7 n by executing processing and activating and terminating blocked block units on the database update information reflecting side, but in this case, the following problems occur.

(a)デッドロックの発生 第12図に示すようにデータベースA, B (AとB
は排他制御の区分を示す)に対する更新レコードをそれ
ぞれA−1,A−2,B−1,B−2とする。データベ
ース反映処理10では、A−1をデータベースAに反映
するためにAに排他要求をする。データベース反映処理
11では、B−1をデータベースBに反映するためにB
に排他要求をする.このあと、データベース反映処理1
0はB−2をデータベースBに反映するためにBに排他
要求をするが、B−1による反映処理のためデータベー
ス反映処理l1がすでにBに排他要求をしているため,
データベース反映処理10はデータベース反映処理}1
の終了待ちとなる。一方データベース反映処理1工は、
A−2による反映処理のためAの排他要求を行うが,同
様にデータベース反映処理10の終了待ちとなる。この
ようにデータベース反映処理10およびデータベース反
映処理l1がお互いに相手の終了を待ち合うデッドロッ
クが発生しやすくなる。
(a) Occurrence of deadlock As shown in Figure 12, databases A and B (A and B
(indicates the classification of exclusive control) are respectively updated records A-1, A-2, B-1, and B-2. In database reflection processing 10, an exclusive request is made to database A in order to reflect A-1 in database A. In database reflection processing 11, in order to reflect B-1 to database B,
Make an exclusive request to. After this, database reflection processing 1
0 makes an exclusive request to B in order to reflect B-2 in database B, but since the database reflection process l1 has already made an exclusive request to B due to the reflection process by B-1,
Database reflection process 10 is database reflection process}1
Waiting for completion. On the other hand, the first step of database reflection processing is
Although A-2 makes an exclusive request for reflection processing, A-2 similarly waits for the database reflection processing 10 to end. In this way, a deadlock in which the database reflection process 10 and the database reflection process 11 each wait for the other to finish is likely to occur.

(b)排他待ちの増大(第4図参照) ランダムに発生するデータベース更新情報である取引レ
コードを単純に(例えば発生順に)ブロッキングし、デ
ータベースに反映する場合、起動されたブロック内にあ
る一連の取引レコードのデータベース排他の単位が入り
組んでいるため排他待ちが発生し、多重度が上がらなく
なり、データベース反映処理のシステム性能が低下する
。例えば第13図に示すように、データベース反映処理
l2では取引レコードA−1,B−1,B−3を同時に
更新するため、データベースA,Hに排他要求をする。
(b) Increase in exclusive waiting time (see Figure 4) When transaction records, which are database update information that occur randomly, are simply blocked (for example, in the order of occurrence) and reflected in the database, a series of transaction records in the activated block Because the database exclusion units of transaction records are complicated, exclusion waits occur, the degree of multiplicity cannot be increased, and the system performance of database reflection processing deteriorates. For example, as shown in FIG. 13, in the database reflection process 12, an exclusive request is made to databases A and H in order to simultaneously update transaction records A-1, B-1, and B-3.

一方データベース反映処理13では取引レコードA−2
,B−3,C−2を更新するためデータベースAに排他
要求をするが、既にデータベース反映処理12でAに排
他要求をしているため、データベース反映処理l3はデ
ータベース反映処理l2の終了待ちとなる。またデータ
ベース反映処理14では取引レコードC−1,B−2,
C−3を更新するため、データベースCに排他要求をし
たあとデータベースBに排他要求をするが、データベー
ス反映処理12が既にBを排他要求をしているため、デ
ータベース反映処理12の終了待ちとなり、結果として
データベース反映処理12しか処理が進まない。
On the other hand, in database reflection process 13, transaction record A-2
, B-3, and C-2, but since an exclusive request has already been made to A in database reflection processing 12, database reflection processing 13 waits for the completion of database reflection processing 12. Become. In addition, in the database reflection process 14, transaction records C-1, B-2,
In order to update C-3, an exclusive request is made to database C and then to database B, but since the database reflection process 12 has already made an exclusive request for B, the process waits for the database reflection process 12 to finish. As a result, only the database reflection process 12 progresses.

以上で述べた通り単純なブロッキングでは、システム性
能に悪影響を及ぼす. 本発明の目的は、この課題を解決することにある. 〔課題を解決するための手段〕 上記目的を達成するためには、次のようにすればよい。
As mentioned above, simple blocking has a negative impact on system performance. The purpose of the present invention is to solve this problem. [Means for solving the problem] In order to achieve the above purpose, the following can be done.

(1)データベース更新情報の反映処理の起動単位を従
来の取引レコード単位から、複数のレコードをブロッキ
ングしたブロック起動方式としデータベース反映処理の
起動と終了に要するプログラム処理ステップを1 / 
nに縮減する。
(1) The starting unit of the database update information reflection process has been changed from the conventional transaction record unit to a block start method that blocks multiple records, reducing the program processing steps required to start and end the database reflection process to 1 /
Reduce to n.

(2)ブロック相互の排他待ちおよびデッドロックを回
避するため、あらかじめ同一排他区分をとる取引レコー
ド群(A−1,A−2,A−3またはB−1.B−2,
B−3等)をデータベース更新処理を行う前にまとめて
ブロッキングする。
(2) A group of transaction records (A-1, A-2, A-3 or B-1, B-2,
B-3, etc.) are collectively blocked before performing database update processing.

(3)同一排他区分をとる取引レコードからなるブロッ
クは、データベース更新処理で直列に処理することによ
り,排他の競合を回避し、合わせてデータ反映順序の逆
転も防止する。
(3) Blocks consisting of transaction records that have the same exclusive classification are processed serially in database update processing to avoid exclusion conflicts and also prevent reversal of data reflection order.

たとえば第1工図に示すものがその例であり、同一排他
をとる取引レコード群がデータベース更新情報作或側5
でブロッキングされ,データベース更新情報反映側6へ
送られる。データベース更新情報反映側6では各々のデ
ータベース反映処理15,16.17によって直列に処
理されている.〔作用〕 本発明によれば、第1の手段はデータベース反映処理の
起動と終了にかかわるプログラム処理ステップを1 /
 nに縮減する働きをし,第2,第3の手段は,排他待
ちや,デッドロックをなくし、合わせてデータベース更
新順序も守る働きをする.〔実施例〕 以下、本発明の一実施例について図面を用いて説明する
。実施例として銀行オンラインシステムの場合について
説明する。
For example, what is shown in the first construction drawing is an example of this, where a group of transaction records that have the same exclusion are database update information creation or side 5
The data is blocked and sent to the database update information reflecting side 6. On the database update information reflection side 6, each database reflection process 15, 16, and 17 is processed in series. [Operation] According to the present invention, the first means reduces the program processing steps involved in starting and terminating the database reflection process to 1/1.
The second and third means eliminate exclusive waits and deadlocks, and also protect the database update order. [Example] An example of the present invention will be described below with reference to the drawings. As an example, a case of a bank online system will be explained.

本発明は、データベース更新要求発生側と,反映側とが
同一センタ(または同一計算機)内にある場合(以下ロ
ーカルシステムと呼ぶ)でも、相互に別センタ内にあり
回線等で接続されている場合(以下リモートシステムと
呼ぶ)でも適用可能である。
This invention applies even when the database update request generating side and the reflecting side are located in the same center (or the same computer) (hereinafter referred to as a local system), or when they are located in different centers and connected by a line, etc. (hereinafter referred to as a remote system) is also applicable.

(.)ローカルシステムでの実施例 銀行オンライン夜間センタ入力処理では、企業等契約者
から持ち込まれた給与振込み,公共料金引落し等のデー
タベース更新要求データ18を、ファイル入力によるオ
ンライン処理でデータベースに反映させる。この処理を
本発明により高速化する。銀行の中心となる業務は勘定
系処理業務であるが、これは銀行のもつ各支店が契約者
との窓口となっているため、データベースも支店(以下
店と略す)単位に作成されている。データベースの排他
の単位は契約者又は同一店内の複数の契約者群であるこ
ともあるが,会計処理は店単位に把握する必要があるた
め店単位に排他を必要とするデータベースも少なくない
。したがって、銀行オンラインのデータベースの更新処
理では、本発明での同一排他区分とするときの分類上の
キーは店とすることが最も適切である。
(.) Example of local system In the bank online night center input processing, database update request data 18 such as salary transfers and utility bill withdrawals brought in by companies and other contractors is reflected in the database through online processing using file input. let The present invention speeds up this processing. A bank's core business is accounting processing, and each branch of a bank serves as a point of contact with policyholders, so databases are created for each branch (hereinafter referred to as "branch"). The unit of exclusion in a database may be a subscriber or a group of multiple subscribers within the same store, but since accounting processing needs to be understood on a store-by-store basis, there are many databases that require exclusion on a store-by-store basis. Therefore, in the updating process of the bank online database, it is most appropriate to use store as the classification key for the same exclusive classification according to the present invention.

第1図に示す夜間センタ入力処理のために持込まれた振
込等のデータ18は,そのままではオンライン処理用の
入力データファイル形式になっていないため、計算機2
0によって一度フォーマット変換処理を行う必要がある
。この時、フォーマット変換の一環として,更新する口
座のある店毎に店番振り分けを実施する(■)。100
,200,300はそれぞれ店番100の店,200番
の店,300番の店対応であることを示している。
The transfer data 18 shown in FIG. 1 that has been brought in for the night center input processing is not in the input data file format for online processing as it is, so the computer 2
0, it is necessary to perform format conversion processing once. At this time, as part of the format conversion, store numbers are assigned to each store that has an account to be updated (■). 100
, 200, and 300 indicate that the stores correspond to store numbers 100, 200, and 300, respectively.

店番100に対する口座への振込データは,店番100
人力用データファイル19に蓄積される(■).データ
ベース更新側6では計算機21が店番100の入力デー
タを読み込む(■)と、店番100の更新情報を複数ま
とめて反映処理用にブロッキング(■)し、データベー
ス反映処1l!ll22を起動する(■)。反映処理を
終了させるとき終了処理を行う(■)。
Transfer data to the account for store number 100 is store number 100.
It is stored in the human data file 19 (■). On the database update side 6, when the computer 21 reads the input data for store number 100 (■), it blocks multiple pieces of update information for store number 100 together for reflection processing (■), and the database reflection process 1l! Start ll22 (■). When ending the reflection process, perform the termination process (■).

店番100のブロックと店番200のブロックの処理は
同時に起動するが、同じtOOのブロックは同時に1ブ
ロックしか起動しないシリアルスケジュール方式とする
。データベース反映処裡側6では同一店番の取引レコー
ドからなるブロックがシリアルに起動されるように、店
番対応の制御テーブルが必要であり、本テーブルに当該
店番のデータベース反映処理が実行中か否かのステータ
ス管理フラグをもたせる。第l図ではフラグ1をもつ反
映処理22.23が実行中で、フラグOをもつ反映処理
24が未実行であることを示している。
Processing for the block with store number 100 and the block with store number 200 is started at the same time, but a serial schedule method is used in which only one block of the same tOO is started at the same time. On the database reflection processing side 6, a control table corresponding to store numbers is required so that blocks consisting of transaction records of the same store number are started serially, and this table contains information indicating whether or not the database reflection processing for the store number is being executed. Contains a status management flag. FIG. 1 shows that reflection processes 22 and 23 with flag 1 are being executed, and reflection processes 24 with flag O have not been executed.

第3図は、第l図中の■の処理フローを示すもので、入
力データに入力店番があるとき、入力店番によってデー
タを振り分け、入力店番がないとき、口座店番によって
データを振り分けている。
FIG. 3 shows the processing flow indicated by ■ in FIG. 1. When the input data includes an input store number, the data is distributed according to the input store number, and when there is no input store number, the data is distributed according to the account store number.

第4図は、第1図中の■の処理フローを示すもので、す
でに作或されたブロック内に取引レコードを収容する空
きがあれば(ステップ41YES).ブロッキング処理
を行い(ステップ42)、ブロックが満杯になったとき
(ステップ43YES)、新たなデータブロックを作戊
して準備する(ステップ44)。ブロック内に空きがな
↓ナれば(ステップ41NO).新たなデータブロック
を作成して(ステップ45)、プロツキング処理を行う
(ステップ46)。
FIG. 4 shows the processing flow of ``■'' in FIG. 1. If there is space to accommodate a transaction record in the block that has already been created (step 41 YES). Blocking processing is performed (step 42), and when the block becomes full (step 43 YES), a new data block is created and prepared (step 44). If there is no space in the block (step 41 NO). A new data block is created (step 45), and blocking processing is performed (step 46).

第5図は、第1図中の■の処理フローを示すもので、起
動要求を受付け(ステップ51)、当該データの店番に
対応するフラグが1′O”であれば(ステンプ52YE
S) 、該フラグを“1”にセットして(ステップ53
)、反映処理を行う(ステップ54)。該フラグがすで
に゛1”であれば(ステップ52NO).当該データを
待ち状態にする(ステップ55)。
FIG. 5 shows the processing flow of ■ in FIG.
S), and sets the flag to "1" (step 53).
), a reflection process is performed (step 54). If the flag is already "1" (step 52 NO), the data is placed in a waiting state (step 55).

第6図は、第1図中の■の処理フローを示すもので,終
了処理を受付け(ステップ6l)、当該店番に対応して
待ちデータがあるかどうかを調べ、待ちデータがなけれ
ば(ステップ62NO).フラグを“O”にリセットす
る(ステップ63)。
FIG. 6 shows the processing flow of ■ in FIG. 62NO). The flag is reset to "O" (step 63).

待ちデータがあれば(ステップ62YES) 、その待
ちデータに対して反映処理を起動する(ステップ64)
If there is waiting data (step 62 YES), start the reflection process for the waiting data (step 64).
.

第7図は制御テーブルの構戊を示すもので、店番7lに
対応してそれぞれフラグ72が設けられている。
FIG. 7 shows the structure of the control table, in which a flag 72 is provided corresponding to each store number 7l.

第8図は、取引レコード形式の例を示すもので、(a)
は取引レコードが契約者持込データの場合の例、(b)
は営業店端末取引入力データである場合の例である。第
1@に示すローカルシステムでは(.)のデータが入力
される。
Figure 8 shows an example of the transaction record format, (a)
(b) is an example when the transaction record is data brought in by the contractor.
is an example of transaction input data from a branch terminal. In the local system shown in the first @, data (.) is input.

(b)リモートシステム実施例 銀行オンラインシステム障害が社会に与える影響の増大
に伴い,災害時に備えたバックアップシステムが必要と
なってきた。第2図に示すようにバックアップシステム
側26では、正システム側25と同じデータベースをも
ち、正システム側デ一タベース(正元帳)27の更新を
リアルタイムでバックアップ側データベース(副元帳)
28に反映させる必要がある。本反映処理にこの発明を
適用する。
(b) Remote system implementation example As bank online system failures have an increasing impact on society, a backup system in case of disasters has become necessary. As shown in Figure 2, the backup system side 26 has the same database as the primary system side 25, and updates the primary system side database (primary ledger) 27 in real time to the backup side database (secondary ledger).
It is necessary to reflect this on the 28th. The present invention is applied to the main reflection process.

第2図に示す正システム側25の計算機30では勘定処
理系のオンラインが動作している。店番が100の営業
店から入った臂通預金出金処理が店番100に関する普
通預金データベース27−1を更新した場合(■)、こ
れをバックアップシステム側26に反映させる必要があ
る。
In the computer 30 on the main system side 25 shown in FIG. 2, an online accounting processing system is operating. If the ordinary deposit database 27-1 related to store number 100 is updated by the Otsutsu deposit withdrawal process from the business store with store number 100 (■), it is necessary to reflect this on the backup system side 26.

正元帳データベース更新情報を抽出し(■)、店番別振
り分けにより他の店番100のデータと共に送信キュー
書込用にブロッキングし(■),送信キュー32に書き
込む(■)。送信キュー32内データは回線29を介し
てバックアップシステム内受信キュー33に送られる(
■)。この時、送信キュー32,受信キュー33,送信
経路それぞれ店番単位にもつことで、シリアライズ処理
を実現する。計算機31では、受信キュー33から取り
出したデータベース更新情報を反映処理用にブロッキン
グし(■),データベース反映処理を起動する(■).
反映処理を終了させるとき終了処理を行う(■)。デー
タベース反映処理34,35,36では、同一店番ブロ
ックが、シリアルに起動されるように店番単位に制御テ
ーブルをもつ(その構造はローカルシステムの場合と同
様).なお■の処理フローは第3図,■の処理フローは
第4図、■の処理フローは第5図および■の処理フロー
は第6図に示されるものとなる。また第2図に示すリモ
ートシステムでは第8図(b)の営業店端末取引データ
が入力される。
The regular ledger database update information is extracted (■), blocked for writing to the transmission queue along with data for other store numbers 100 by sorting by store number (■), and written to the transmission queue 32 (■). The data in the transmission queue 32 is sent to the backup system reception queue 33 via the line 29 (
■). At this time, serialization processing is realized by providing a transmission queue 32, a reception queue 33, and a transmission route for each store number. The computer 31 blocks the database update information taken out from the reception queue 33 for reflection processing (■), and starts database reflection processing (■).
When ending the reflection process, perform the termination process (■). In the database reflection processes 34, 35, and 36, a control table is provided for each store number so that the same store number block is started serially (its structure is the same as in the case of the local system). Note that the processing flow of (2) is shown in FIG. 3, the processing flow of (2) is shown in FIG. 4, the processing flow of (2) is shown in FIG. 5, and the processing flow of (2) is shown in FIG. 6. Further, in the remote system shown in FIG. 2, the branch terminal transaction data shown in FIG. 8(b) is input.

なお第1図中の■および第2図中の■に示される取引レ
コードのブロッキング処理をそれぞれデータベース更新
情報作成側5および正システム側25で行ってもよいこ
とはもちろんである。
It goes without saying that the transaction record blocking processing indicated by ■ in FIG. 1 and ■ in FIG. 2 may be performed by the database update information creation side 5 and the primary system side 25, respectively.

第9図は取引レコードをブロッキングしない従来方式(
a)とブロッキングする本発明(b)の場合について処
理時間を比較するものである。本発明の場合には、ブロ
ッキングによって起動処理およ・,び終了処理が削減さ
れ.処理時間が短縮される。
Figure 9 shows the conventional method that does not block transaction records (
The processing time is compared between a) and the blocking method (b) of the present invention. In the case of the present invention, the startup processing and termination processing are reduced by blocking. Processing time is reduced.

〔発明の効果〕 本発明によれば同一排他区分をもつ更新要求をまとめて
ブロック化し、同一排他区分をもつブロック相互はシリ
アルに起動するため排他待ちやデッドロックが生じない
。これにより,高速なデータベース反映処理が可能とな
る。
[Effects of the Invention] According to the present invention, update requests having the same exclusive classification are grouped together into blocks, and blocks having the same exclusive classification are activated serially, so that no exclusive wait or deadlock occurs. This enables high-speed database reflection processing.

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

第1図は本発明のローカルシステムでの実施例を示す図
,第2図は本発明のリモートシステムでの実施例を示す
図、第3図は実施例の店番振分処理フローチャート、第
4図は実施例のデータベース更新情報反映処理用ブロッ
キングの処理フローチャート、第5図は実施例のデータ
ベース更新情報反映処理起動処理フローチャート、第6
図は、同終了処理フローチャート,第7図は制御テーブ
ルの構成図,第8図は実施例の入力データ形式を示す図
、第9図は従来方式と本方式との処理時間を比較する図
、第10図は従来のデータベース反映処理を示す図、第
1工図は本発明のデータベース反映処理を示す図,第1
2図は単純なブロッキングによるデッドロック発生が起
る例を示す図、第13図は単純なブロッキングによる排
他待ちが発生する例を示す図である。 5・・・データベース更新情報作戊側、6・・・データ
ベース更新情報反映側、15,16.17・・・データ
ベース反映処理、A.B,C・・・データベース、 A−1,A−2,・・・データベースAに対する取引レ
コード。 篤 1 ■ 第 2 図 第 3 図 第 4 (2) 第 5 図 ヘr クつ 乙 図 第 7 閃 第 g図 弔 9 図 (α) (b) 第 10 閃 5 乙
Fig. 1 is a diagram showing an embodiment of the present invention in a local system, Fig. 2 is a diagram showing an embodiment of the present invention in a remote system, Fig. 3 is a flowchart of store number distribution processing in the embodiment, and Fig. 4 is a diagram showing an embodiment of the present invention in a remote system. 5 is a processing flowchart of blocking for database update information reflection processing of the embodiment, FIG. 5 is a flowchart of database update information reflection processing startup processing of the embodiment, and FIG.
7 is a diagram showing the configuration of the control table, FIG. 8 is a diagram showing the input data format of the embodiment, and FIG. 9 is a diagram comparing the processing time between the conventional method and the present method. FIG. 10 is a diagram showing the conventional database reflection process, the first drawing is a diagram showing the database reflection process of the present invention, and the first drawing is a diagram showing the database reflection process of the present invention.
FIG. 2 is a diagram showing an example in which a deadlock occurs due to simple blocking, and FIG. 13 is a diagram showing an example in which an exclusive wait occurs due to simple blocking. 5... Database update information creation side, 6... Database update information reflection side, 15, 16.17... Database reflection processing, A. B, C... database, A-1, A-2,... transaction record for database A. Atsushi 1 ■ Figure 2 Figure 3 Figure 4 (2) Figure 5 Herkutsu Otsu Figure 7 Flash Figure g Funeral 9 Figure (α) (b) Figure 10 Flash 5 Otsu

Claims (1)

【特許請求の範囲】[Claims] 1、データベース更新レコードによってデータベースを
更新する処理において、前記データベースに対して同一
の排他区分をもつ前記レコードをまとめてブロッキング
し、前記更新処理において同一の排他区分をもつブロッ
クは1ブロックずつ直列に処理するよう制御することを
特徴とする高速データベース制御方式。
1. In the process of updating the database using database update records, the records with the same exclusive classification for the database are blocked together, and in the update process, the blocks with the same exclusive classification are serially processed one block at a time. A high-speed database control method that is characterized by controlling the database to
JP1307675A 1989-11-29 1989-11-29 High-speed database control method Expired - Lifetime JPH07104811B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1307675A JPH07104811B2 (en) 1989-11-29 1989-11-29 High-speed database control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1307675A JPH07104811B2 (en) 1989-11-29 1989-11-29 High-speed database control method

Publications (2)

Publication Number Publication Date
JPH03168847A true JPH03168847A (en) 1991-07-22
JPH07104811B2 JPH07104811B2 (en) 1995-11-13

Family

ID=17971889

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1307675A Expired - Lifetime JPH07104811B2 (en) 1989-11-29 1989-11-29 High-speed database control method

Country Status (1)

Country Link
JP (1) JPH07104811B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7120913B2 (en) 2001-04-04 2006-10-10 Denso Corporation Processing execution apparatus having data reference limiting function
JP2011059804A (en) * 2009-09-07 2011-03-24 Mitsubishi Electric Corp Communication device management system and database access processing method
JP2011513825A (en) * 2008-02-29 2011-04-28 ユーロクリア エスエー エヌヴィー Improvements related to real-time processing of a large number of processing instructions

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7120913B2 (en) 2001-04-04 2006-10-10 Denso Corporation Processing execution apparatus having data reference limiting function
JP2011513825A (en) * 2008-02-29 2011-04-28 ユーロクリア エスエー エヌヴィー Improvements related to real-time processing of a large number of processing instructions
US10025809B2 (en) 2008-02-29 2018-07-17 Euroclear Sa/Nv Handling and processing of massive numbers of processing instructions in real time
JP2011059804A (en) * 2009-09-07 2011-03-24 Mitsubishi Electric Corp Communication device management system and database access processing method

Also Published As

Publication number Publication date
JPH07104811B2 (en) 1995-11-13

Similar Documents

Publication Publication Date Title
US7930271B2 (en) Method and apparatus for data processing
US7970748B2 (en) Systems and methods for reorganizing a database object
US6085200A (en) System and method for arranging database restoration data for efficient data recovery in transaction processing systems
US6351744B1 (en) Multi-processor system for database management
US8868577B2 (en) Generic database manipulator
EP1141864B1 (en) Method and system for reconciling concurrent streams of transactions in a database
US6519613B1 (en) Non-blocking drain method and apparatus for use in processing requests on a resource
AU2002212843A1 (en) Method and apparatus for data processing
JPH0423144A (en) Journal system
CN109033359A (en) A kind of method of multi-process secure access sqlite
US6185650B1 (en) High performance locking facility
Son et al. Real-Time Replication Control for Distributed Database Systems: Algorithms and Their Performance.
JPH03168847A (en) High-speed data base control system
Burger et al. Performance of multiversion and distributed two-phase locking concurrency control mechanisms in distributed database
JPH02292641A (en) Method for controlling data base
JP2004295272A (en) Transaction control method
US6370528B1 (en) High speed method for flushing data buffers and updating database structure control information
JPH10232809A (en) Transaction processing system
JP2008146420A (en) Computer program for optimizing processing sequence of i/o request
JPH05233415A (en) Transaction lock control method
Park et al. A replica control method for improving availability for read-only transactions
Nett et al. Implementing fault-tolerance in a distributed system architecture
JPH07141243A (en) Lock management device
Raatikainen Design and Architecture for Database Solutions in Future Telecommunication Services
JPH05204677A (en) Associative locking system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071113

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20081113

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20081113

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20091113

Year of fee payment: 14

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

Free format text: PAYMENT UNTIL: 20101113

Year of fee payment: 15

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101113

Year of fee payment: 15