JPH09319635A - Database updating method - Google Patents

Database updating method

Info

Publication number
JPH09319635A
JPH09319635A JP8136233A JP13623396A JPH09319635A JP H09319635 A JPH09319635 A JP H09319635A JP 8136233 A JP8136233 A JP 8136233A JP 13623396 A JP13623396 A JP 13623396A JP H09319635 A JPH09319635 A JP H09319635A
Authority
JP
Japan
Prior art keywords
update
record
database
processing
batch file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8136233A
Other languages
Japanese (ja)
Inventor
Shinichi Watanabe
紳一 渡辺
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.)
Panasonic System Solutions Japan Co Ltd
Original Assignee
Matsushita Graphic Communication Systems Inc
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 Matsushita Graphic Communication Systems Inc filed Critical Matsushita Graphic Communication Systems Inc
Priority to JP8136233A priority Critical patent/JPH09319635A/en
Publication of JPH09319635A publication Critical patent/JPH09319635A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To accelerate batch processing or update processing itself of records in a database by performing margin processing to the received update records having the same ID, and updating the records registered in the database while using the records after the margin processing. SOLUTION: A batch file managing part 20 is activated and it is checked whether the record of the same ID as a record becoming the object of update processing is defined as the object of new registration or not (exists in an update file 26 or not). When the record of the same ID exists in the update batch file 26, the batch file managing part 20 performs the marging processing for the unit of a field to the update record and the update record existent in the update batch file 26 through an update batch file access part 25, generates the new update record, deletes the existent update record and replaces the generated new update record with the deleted update record.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、ネットワークによ
って接続されたクライアント、サーバ型データベースシ
ステムにおけるレコードの登録、更新、削除等の更新処
理をバッチ処理で実行するデータベース更新方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database updating method for executing update processing such as record registration, update and deletion in a client-server type database system connected by a network by batch processing.

【0002】[0002]

【従来の技術】近年、ネットワークの普及に伴いクライ
アント、サーバ型データベースシステムが増加してい
る。このようなLAN等のネットワークによって接続さ
れたクライアント、サーバ型データベースシステムにお
いて、大量データを処理する場合などレコードに対する
登録、更新、削除処理が遅い場合には、検索処理はオン
ラインでリアルタイムに処理し、登録、更新、削除のデ
ータの更新処理は登録、更新、削除レコードをオンライ
ンでバッチファイルに保持し、オフライン時にバッチ処
理で処理する形態が取られている。
2. Description of the Related Art In recent years, client and server type database systems have been increasing with the spread of networks. In a client or server type database system connected by a network such as a LAN, when registration, update, or deletion processing for records is slow, such as when processing a large amount of data, search processing is performed online in real time. Registration, update, and deletion data update processing is performed by holding registration, update, and deletion records online in a batch file and processing the batch offline processing.

【0003】以下に、このような従来のクライアント、
サーバ型データベースシステムについて図面を用いて説
明する。図14は、従来のクライアント、サーバ型デー
タベースシステムを示すものである。
Below, such a conventional client,
The server type database system will be described with reference to the drawings. FIG. 14 shows a conventional client / server type database system.

【0004】図14において、1は、WS、PC、ホス
トマシン等のサーバマシン、2は、検索、登録、更新、
削除処理を要求するアプリケーションを搭載した、W
S、PC等のクライアントマシン、であり、サーバマシ
ン1とクライアントマシン2とは、LAN、WAN等の
ネットワーク3で接続されている。4は、サーバマシン
1に実装されたデータベース処理装置、5は、クライア
ントからの処理要求を受取り、オンライン時にクライア
ントからの処理要求を受取り、検索、登録、更新、削除
処理を実行するデータベース処理部、6は、クライアン
トマシン2からのレコードの登録、更新、削除の要求に
応じ、オンライン時にリアルタイムにバッチファイル7
を作成するバッチファイル管理部、8は、オフライン時
にバッチファイルのレコードのバッチ処理を実行するバ
ッチ処理部、9は、オンライン時にリアルタイムにデー
タベース10を構成するレコードの検索処理等を実行す
るオンライン処理部である。
In FIG. 14, 1 is a server machine such as WS, PC and host machine, 2 is search, registration, update,
W that has an application that requests deletion processing
Client machines such as S and PC, and the server machine 1 and the client machine 2 are connected by a network 3 such as LAN or WAN. 4 is a server machine
The database processing device 5 implemented in 1 receives a processing request from a client, receives a processing request from a client when online, and executes a search, registration, update, and deletion processing, 6 is a client machine Batch file 7 in real time online when requested to register, update, or delete records from 2
A batch file management unit 8 for executing the batch processing of the records of the batch file when offline, and an online processing unit 9 for executing the search processing of the records constituting the database 10 in real time when online. Is.

【0005】データベース10に登録されているレコー
ドは、例えば、図15に示す形態であり、1レコード
は、レコードID11と、そのデータ内容が、それぞ
れ、”AAA”、”BBB”、”CCC”である3つの
フィールド12とから構成されている。また、図17
は、バッチファイル7内の1レコードを示したものであ
り、レコードID11とフィールド12の他に登録、更
新、削除の処理の別を示す処理種別13を示すフィール
ドを有している。このバッチファイル7内に登録されて
いる各レコードは、順次時系列に受付けられる。
The records registered in the database 10 have the form shown in FIG. 15, for example, and one record has a record ID 11 and its data contents are "AAA", "BBB", and "CCC", respectively. It is composed of three fields 12. FIG.
Indicates one record in the batch file 7, and has a field indicating a process type 13 indicating the process of registration, update, and deletion, in addition to the record ID 11 and the field 12. The records registered in the batch file 7 are sequentially received in time series.

【0006】以上のように構成されたクライアント、サ
ーバ型データベースシステムの動作概要を、図16のフ
ロー図に沿って説明する。
An outline of the operation of the client / server type database system configured as described above will be described with reference to the flow chart of FIG.

【0007】まず、クライアントマシン2のアプリケー
ションは、サーバマシン1のデータベース処理装置4に
対し、レコードの検索処理、あるいは、登録処理、ある
いは、更新処理、あるいは、削除処理を依頼し(ST
1)、データベース処理部5が、その要求を受け付け
(ST2)、各処理種別に応じて次の処理を行う。
First, the application of the client machine 2 requests the database processing device 4 of the server machine 1 for record search processing, registration processing, update processing, or deletion processing (ST).
1), the database processing unit 5 accepts the request (ST2) and performs the following processing according to each processing type.

【0008】検索処理の場合は、オンライン処理部9を
起動し(ST3)、データベース10から検索条件に合
致したレコードを検索し、検索結果レコードをクライア
ントマシンへ返す(ST4)。
In the case of the search process, the online processing unit 9 is started (ST3), the record matching the search condition is searched from the database 10, and the search result record is returned to the client machine (ST4).

【0009】登録処理、更新処理、削除処理の場合に
は、バッチファイル管理部6を起動し(ST5)、オン
ラインでバッチファイル7へ登録レコード、更新レコー
ド、削除レコードを図17のように時系列に順次追加し
(ST6)、オフライン時に、バッチ処理部8で、デー
タベース10へのレコードの登録処理、更新処理、削除
処理を実行する(ST7)。
In the case of registration processing, update processing, and deletion processing, the batch file management unit 6 is started (ST5), and the registration record, update record, and deletion record are stored online in the batch file 7 as shown in FIG. Are sequentially added (ST6), and when offline, the batch processing unit 8 executes record registration processing, update processing, and deletion processing in the database 10 (ST7).

【0010】[0010]

【発明が解決しようとする課題】しかしながら、上記の
従来のクライアント、サーバ型データベースシステムの
構成では、時系列にバッチファイルが作成されるため、
オフライン時のバッチ処理の際に、同一レコードに対す
る更新、削除処理がその都度実行されるので、これらの
処理が大量に発生する場合には、膨大に時間を要すると
いう問題がある。
However, in the configuration of the above-mentioned conventional client / server type database system, since batch files are created in time series,
Since update and deletion processing for the same record is executed each time during offline batch processing, there is a problem that a huge amount of time is required when a large amount of these processing occur.

【0011】また、バッチ処理そのものの問題として、
バッチファイルへの登録を完了しても、データベースの
レコードの実体が更新されなければ、検索対象にはなら
ないため検索結果に反映されないという問題がある。
As a problem of the batch processing itself,
Even if the registration to the batch file is completed, there is a problem that if the record entity in the database is not updated, it will not be reflected in the search result because it will not be a search target.

【0012】また、レコードのデータ量とサーバマシン
の負荷等との関係で、登録、更新、削除等の処理がリア
ルタイムで実行できる程に短時間で済む場合でも、バッ
チ処理対象となり、実際の更新処理が遅れ、更新レコー
ドの増大に応じて、オフライン時のバッチ処理の負荷も
増大するという問題がある。
Further, due to the relationship between the data amount of records and the load on the server machine, even if the processing such as registration, update and deletion is completed in a short time so that it can be executed in real time, it is subject to batch processing and the actual update is performed. There is a problem in that the processing delays and the load of batch processing during offline increases as the number of updated records increases.

【0013】本発明は、これらの課題に鑑みて為された
ものであり、バッチ処理の対象となるレコード数の削
減、バッチ処理の対象となるレコードデータ量の削減を
図ることにより、データベースのレコードの更新を迅速
に行なうとともに、バッチ処理自体の負荷を軽減するこ
とにより、バッチ処理、データベースのレコードの更新
処理自体の迅速化を実現するデータベース更新方法を提
供することを目的とする。
The present invention has been made in view of these problems, and records of a database are reduced by reducing the number of records subject to batch processing and the amount of record data subject to batch processing. It is an object of the present invention to provide a database updating method that realizes rapid batch processing and update processing of database records by reducing the load of batch processing itself.

【0014】[0014]

【課題を解決するための手段】これらの目的を達成する
ために、本発明のデータベース更新方法は、データベー
スに登録されたレコードに対する更新指示と更新レコー
ドとを順次受付け、同一IDを有する受付済の更新レコ
ードに対してマージ処理を行ない、データベースのレコ
ードをそのマージ処理後のレコードを用いて更新すると
いう構成をとる。
In order to achieve these objects, the database updating method of the present invention sequentially receives an update instruction and an update record for a record registered in the database, and has already received the same ID. The update record is merged and the database record is updated using the merged record.

【0015】これにより、データベースのレコードの更
新を迅速に行うとともに、バッチ処理自体の負荷を軽減
することにより、バッチ処理、データベースのレコード
の更新処理自体の迅速化を実現することができる。
As a result, the records in the database can be updated quickly, and the load of the batch processing itself can be reduced, so that the batch processing and the update processing of the records in the database can be speeded up.

【0016】[0016]

【発明の実施の形態】本発明の請求項1記載の発明は、
データベースに登録されたレコードに対する更新指示と
更新レコードとを順次受付け、同一IDを有する受付済
の更新レコードに対してマージ処理を行ない、データベ
ースのレコードをそのマージ処理後のレコードを用いて
更新するようにしたものである。
BEST MODE FOR CARRYING OUT THE INVENTION The invention according to claim 1 of the present invention is
The update instruction and the update record for the record registered in the database are sequentially received, the accepted update record having the same ID is merged, and the record in the database is updated using the record after the merge process. It is the one.

【0017】また、請求項2記載の発明は、データベー
スに登録されたレコードに対する更新指示と更新レコー
ドとを順次受付け、その更新レコードと同一IDを有す
る受付済の更新レコードとをマージ処理して生成した単
一の新更新レコードを更新レコードとして保持した後、
データベースのレコードをこの新更新レコードにより更
新するようにしたものである。
Further, in the invention according to claim 2, the update instruction and the update record for the record registered in the database are sequentially received, and the update record and the received update record having the same ID are merged and generated. After holding the single new update record as
The database record is updated by this new update record.

【0018】また、請求項3記載の発明は、データベー
スに登録されたレコードに対する更新指示と更新レコー
ドとを順次受付け、順次受付けた同一IDを有する複数
の更新レコードをマージ処理してID毎に単一のファイ
ルとした上で、前記データベースのレコードの更新処理
を実行するようにしたものである。
Further, in the invention according to claim 3, the update instruction and the update record for the record registered in the database are sequentially received, and a plurality of update records having the same ID that have been sequentially received are merged to perform a single process for each ID. It is configured such that the update process of the record in the database is executed after the single file.

【0019】請求項1乃至請求項3記載の発明により、
同一レコードに対する複数の更新処理を単一のアクセス
により一回で処理することができるため、バッチ処理、
データベースのレコードの更新処理自体の迅速化を実現
できる。
According to the inventions of claims 1 to 3,
Batch processing, because multiple update processes for the same record can be processed at once with a single access,
It is possible to speed up the process of updating the records in the database.

【0020】請求項4記載の発明は、請求項1乃至請求
項3記載のデータベース更新方法において、マージ処理
により生成される新更新レコードを順次保存する一方、
マージ処理の対象としたその更新レコードと同一IDを
有する受付済の更新レコードを順次消去するようにした
ものである。これにより、マージ処理実行の度に不要と
なった旧レコードが消去され、更新レコードを保持する
メモリの有効活用ができ、バッチ処理、データベースの
レコードの更新処理自体の迅速化も実現できる。
According to a fourth aspect of the present invention, in the database updating method according to the first to third aspects, while the new update records generated by the merge process are sequentially stored,
The accepted update records having the same ID as the update record that is the target of the merge process are sequentially deleted. As a result, the old records that are no longer needed are deleted every time the merge process is executed, the memory that holds the updated records can be effectively used, and the batch process and the database record update process itself can be speeded up.

【0021】請求項5記載の発明は、請求項1乃至請求
項4記載のデータベース更新方法において、最終的に削
除対象となるレコードと同一レコードに対する登録指示
又は更新指示がある場合には、その登録指示又は更新指
示を無効にするようにしたものである。これにより、後
に削除されるレコードについての無駄な登録処理や更新
処理を実行する必要がなくなるため、バッチ処理、デー
タベースのレコードの更新処理自体の迅速化が実現でき
る。
According to a fifth aspect of the present invention, in the database updating method according to the first to fourth aspects, when there is a registration instruction or an update instruction for the same record as the record to be finally deleted, the registration is performed. The instruction or the update instruction is invalidated. This eliminates the need to perform useless registration processing and update processing for records to be deleted later, so that batch processing and database record update processing itself can be speeded up.

【0022】請求項6記載の発明は、請求項1乃至請求
項4記載のデータベース更新方法において、データベー
スのレコードの更新処理実行前の更新レコードを登録バ
ッチファイルと更新バッチファイルと削除バッチファイ
ルとに分割して管理するようにしたものである。これに
より、予め処理ファイルをグルーピングして整列するた
め、ファイル管理が容易になり、バッチ処理、データベ
ースのレコードの更新処理自体を簡易、迅速に実行でき
る。
According to a sixth aspect of the present invention, in the database updating method according to the first to fourth aspects, an update record before execution of update processing of a database record is stored in a registration batch file, an update batch file and a deletion batch file. It is divided and managed. As a result, the processing files are grouped and arranged in advance, so that file management is facilitated, and batch processing and database record update processing itself can be executed easily and quickly.

【0023】請求項7記載の発明は、請求項6記載のデ
ータベース更新方法において、登録バッチファイル又は
更新バッチファイルに存在する削除レコードと同一ID
のレコードをデータベースのレコード更新以前に消去す
るようにしたものである。これにより、更新レコードを
保持するメモリの有効活用ができ、バッチ処理、データ
ベースのレコードの更新処理自体の迅速化も実現でき
る。
The invention according to claim 7 is the same as the deletion record existing in the registered batch file or the update batch file in the database updating method according to claim 6.
The record is deleted before updating the record in the database. As a result, it is possible to effectively utilize the memory that holds the update record, and to speed up the batch process and the update process of the record of the database itself.

【0024】請求項8記載の発明は、請求項1乃至請求
項7記載のデータベース更新方法において、レコードの
更新指示を時刻管理し、同一レコードに対して複数の更
新指示がある場合は、新しい時刻の更新指示のみを実行
するようにしたものである。これにより、同一レコード
に再度更新がかけられた結果不必要となった旧更新処理
をバッチ処理対象から削除できるため、バッチレコード
数を削減できバッチ処理の負荷を軽減させることができ
る。
According to the invention described in claim 8, in the database updating method according to claims 1 to 7, time management of update instruction of a record is performed, and when there are a plurality of update instructions for the same record, a new time is given. Only the update instruction of is executed. As a result, the old update process, which becomes unnecessary as a result of updating the same record again, can be deleted from the batch process target, so that the number of batch records can be reduced and the load of the batch process can be reduced.

【0025】請求項9記載の発明は、請求項1乃至請求
項7記載のデータベース更新方法において、データベー
スに対する検索の実行の後に、その検索結果レコードと
更新処理待ちの更新レコードとをマージ処理するように
したものである。これにより、データベースのレコード
の実体に対するバッチ処理に時間がかかり更新が遅れた
場合であっても、クライアントが実行する検索の結果
は、常に、更新後の最新のものとなる。
According to a ninth aspect of the present invention, in the database updating method according to the first to seventh aspects, after the database is searched, the search result record and the update record waiting for the update process are merged. It is the one. As a result, even if the batch process for the substance of the record in the database takes a long time and the update is delayed, the result of the search executed by the client is always the latest one after the update.

【0026】請求項10記載の発明は、請求項1乃至請
求項7記載のデータベース更新方法において、データベ
ースに登録されたレコードの更新指示受付けの際にレコ
ードの更新に要する時間を計算し、その時間が一定値以
下である場合には、更新処理をリアルタイムで実行し、
その時間が一定値以上である場合には、更新処理をバッ
チ処理で実行するようにしたものである。これにより、
短時間で更新処理が完了する場合には即時に更新処理を
実行し、更新処理に時間がかかる場合には、バッチ処理
により更新処理を実行するため、クライアント、サーバ
型データベースシステム全体として最適の運用が可能に
なる。
The invention according to claim 10 is the method for updating a database according to any one of claims 1 to 7, wherein a time required for updating a record when receiving an update instruction of a record registered in the database is calculated, and the time is calculated. If is less than a certain value, update processing is executed in real time,
When the time is a certain value or more, the update process is executed in batch process. This allows
When the update process is completed in a short time, the update process is executed immediately, and when the update process takes a long time, the update process is executed by batch process. Will be possible.

【0027】以下、本発明の実施の形態について、図面
を用いて、具体的に説明する。図1は、本発明のデータ
ベース更新方法を実現するクライアント、サーバ型デー
タベースシステムの全体構成図である。図1において、
1は、WS、PC、ホストマシン等のサーバマシン、2
は、検索、登録、更新、削除処理を要求するアプリケー
ションを搭載した、WS、PC等のクライアントマシン
であり、サーバマシン1とクライアントマシン2とは、
LAN、WAN等のネットワーク3で接続されている。
4は、サーバマシン1に実装されたデータベース処理装
置、5は、クライアントからの処理要求を受取り、オン
ライン時にクライアントからの処理要求を受取り、検
索、登録、更新、削除処理を実行するデータベース処理
部、20は、クライアントマシン2からのレコードの登
録、更新、削除の要求に応じ、オンライン時にリアルタ
イムにバッチファイルを作成するバッチファイル管理
部、21は、オフライン時にバッチファイルのレコード
のバッチ処理を実行するバッチ処理部22は、オンライ
ン時にリアルタイムにデータベース10を構成するレコ
ードの検索処理等を実行するオンライン処理部である。
また、23は、登録バッチファイル24への登録レコー
ドの追加、更新、削除処理を行う登録バッチファイルア
クセス部、25は、更新バッチファイル26への更新レ
コードの追加、更新、削除処理を行う更新バッチファイ
ルアクセス部、27は、削除バッチファイル28への削
除レコードの追加、更新、削除処理を行う削除バッチフ
ァイルアクセス部である。
Embodiments of the present invention will be specifically described below with reference to the drawings. FIG. 1 is an overall configuration diagram of a client / server type database system that realizes the database updating method of the present invention. In FIG.
1 is a server machine such as WS, PC or host machine, 2
Is a client machine such as WS or PC equipped with an application that requests search, registration, update, and deletion processing. The server machine 1 and the client machine 2 are
It is connected by a network 3 such as LAN or WAN.
Reference numeral 4 is a database processing device mounted on the server machine 1, 5 is a database processing unit that receives a processing request from a client, receives a processing request from a client when online, and executes search, registration, update, and deletion processing, Reference numeral 20 is a batch file management unit that creates a batch file in real time when online in response to a record registration, update, or deletion request from the client machine 2. Reference numeral 21 is a batch file that executes batch processing of records in the batch file when offline. The processing unit 22 is an online processing unit that executes, in real time, online, a search process for a record included in the database 10 and the like.
Reference numeral 23 is a registered batch file access unit for adding, updating, and deleting registration records to the registration batch file 24. Reference numeral 25 is an update batch for adding, updating, and deleting update records to the update batch file 26. The file access unit 27 is a deletion batch file access unit that adds, updates, and deletes deletion records in the deletion batch file 28.

【0028】以上のように構成されたクライアント、サ
ーバ型データベースシステムデータベース処理装置にお
けるデータベース更新方法について、具体的に、図面を
用いて説明する。図2は、本発明のデータベース更新方
法の全体処理フロー図である。
A database updating method in the client / server type database system database processing apparatus configured as described above will be specifically described with reference to the drawings. FIG. 2 is an overall processing flow chart of the database updating method of the present invention.

【0029】まず、クライアントマシン2のアプリケー
ションは、サーバマシン1のデータベース処理装置4に
対し、登録、更新、削除レコードを送信し、登録処理、
更新処理、削除処理、検索処理を依頼する(ST20
1)。データベース処理部5は、登録、更新、削除レコ
ードを受取り、登録処理、更新処理、削除処理、検索処
理要求を受け付けて(ST202)、依頼内容に応じて
異なる制御を実行する。
First, the application of the client machine 2 sends a registration, update, and deletion record to the database processing device 4 of the server machine 1 for registration processing,
Request update processing, deletion processing, and search processing (ST20
1). The database processing unit 5 receives the registration, update, and deletion records, receives the registration processing, the update processing, the deletion processing, and the search processing request (ST202), and executes different control depending on the request content.

【0030】検索処理の場合には、データベース処理部
5は、オンライン処理部22を起動し(ST203)、
検索を実行し、データベースから検索条件に合致したレ
コードを取得し、クライアントマシン2のアプリケーシ
ョンへ検索結果を返す(ST204)。
In the case of search processing, the database processing unit
5 starts the online processing unit 22 (ST203),
The search is executed, records matching the search conditions are acquired from the database, and the search result is returned to the application of the client machine 2 (ST204).

【0031】登録処理の場合には、データベース処理部
5は、バッチファイル管理部20を起動し(ST20
5)、バッチファイル管理部20が、登録バッチファイ
ルアクセス部23により登録バッチファイル24に登録
レコードを追加する(ST206)。
In the case of registration processing, the database processing section
5 starts the batch file management unit 20 (ST20
5) Then, the batch file management unit 20 adds a registration record to the registration batch file 24 by the registration batch file access unit 23 (ST206).

【0032】次に、更新処理について説明する。更新処
理の場合には、データベース処理部5は、図3の更新処
理1の処理フロー図に従って、更新処理を実行する。ま
ず、バッチファイル管理部20が起動され(ST30
1)、更新処理の対象となっているレコードと同一ID
のレコードが新規登録の対象となっていないかをチェッ
クする。具体的には、登録バッチファイルアクセス部2
3により更新レコードと同一IDのレコードが登録バッ
チファイル24にあるか否かチェックする(ST30
2)。
Next, the update process will be described. In the case of the update processing, the database processing unit 5 executes the update processing according to the processing flow chart of the update processing 1 in FIG. First, the batch file management unit 20 is activated (ST30
1), the same ID as the record that is the target of the update process
Check if the record is not subject to new registration. Specifically, the registered batch file access unit 2
3, it is checked whether or not a record having the same ID as the update record exists in the registered batch file 24 (ST30).
2).

【0033】登録バッチファイル24内に同一レコード
がある場合には、登録バッチファイルアクセス部23に
より、更新レコードと登録バッチファイル24内の既存
の登録レコードとをフィールド単位でマージ処理し新規
登録レコードを生成した後、既存の登録レコードを削除
し、生成した新規登録レコードを削除した既存の登録レ
コードと置換し新たに追加する(ST303)。例え
ば、図4に示すように、レコードIDが100のレコー
ドのフィールド1を”さささ”に更新する更新レコード
29をクライアントのアプリケーションから受け取った
場合、登録バッチファイルに既に登録されている登録レ
コード30は、フィールド1が”あああ”から”ささ
さ”に訂正され新規登録レコード31として登録バッチ
ファイルに記憶される。
If the registered batch file 24 has the same record, the registered batch file access unit 23 merges the update record and the existing registered record in the registered batch file 24 in field units to create a new registered record. After the generation, the existing registration record is deleted, the generated new registration record is replaced with the deleted existing registration record, and the new registration record is newly added (ST303). For example, as shown in FIG. 4, when an update record 29 for updating field 1 of a record having a record ID of 100 to "small" is received from the application of the client, the registration record 30 already registered in the registration batch file is displayed. Is stored in the registered batch file as a new registration record 31 by correcting the field 1 from “ahh” to “small”.

【0034】登録バッチファイル24内に同一レコード
がない場合には、次に、バッチファイル管理部20は、
更新バッチファイルアクセス部25により、更新レコー
ドと同一IDのレコードが更新バッチファイル26にあ
るか否かをチェックする(ST304)。
If there is no same record in the registered batch file 24, then the batch file management unit 20
The update batch file access unit 25 checks whether or not a record having the same ID as the update record exists in the update batch file 26 (ST304).

【0035】同一IDのレコードが更新バッチファイル
26にある場合には、バッチファイル管理部20は、更
新バッチファイルアクセス部25により、更新レコード
と更新バッチファイル26内の既存の更新レコードとを
フィールド単位でマージ処理し新規更新レコードを生成
した後、既存の更新レコードを削除し、生成した新規更
新レコードを削除した更新レコードと置換する(ST3
05)。例えば、図5に示すように、レコードIDが1
00のレコードのフィールド1を”さささ”に更新する
更新レコード32をクライアントのアプリケーションか
ら受け取った場合、更新バッチファイル26に既に登録
されているレコードIDが100のレコードのフィール
ド3を”すすす”に更新する更新レコード33は、フィ
ールド1を”さささ”に、フィールド3を”すすす”に
更新する更新レコード34に更新される。
When the record having the same ID exists in the update batch file 26, the batch file management unit 20 causes the update batch file access unit 25 to update the update record and the existing update record in the update batch file 26 in field units. Then, the existing update record is deleted and the generated new update record is replaced with the deleted update record (ST3).
05). For example, as shown in FIG. 5, the record ID is 1
When the update record 32 for updating the field 1 of the 00 record to "small" is received from the application of the client, the field 3 of the record having the record ID 100 already registered in the update batch file 26 is "soot". The update record 33 for updating to 1 is updated to the update record 34 for updating the field 1 to “smallness” and the field 3 to “soot”.

【0036】同一IDのレコードが更新バッチファイル
25にない場合には、次に、バッチファイル管理部20
は、削除バッチファイルアクセス部27により、更新レ
コードと同一IDのレコードが削除バッチファイル28
にあるか否かをチェックする(ST306)。同一ID
のレコードが削除バッチファイル28にある場合には、
その更新レコードは、更新不要のレコードであるから、
バッチファイル管理部20は、受付けた更新レコードを
破棄する(ST307)。
If there is no record with the same ID in the update batch file 25, next, the batch file management unit 20
The delete batch file access unit 27 deletes the record having the same ID as the update record from the delete batch file 28.
Then, it is checked whether or not (ST306). Same ID
If the record of is in the deletion batch file 28,
Since the update record is a record that does not need to be updated,
The batch file management unit 20 discards the received update record (ST307).

【0037】同一IDのレコードが削除バッチファイル
28にない場合に、初めて、バッチファイル管理部20
は、更新バッチファイルアクセス部25により、更新バ
ッチファイル26へ受付けた更新レコードを追加する
(ST308)。
If there is no record with the same ID in the deleted batch file 28, the batch file management unit 20 will
The update batch file access unit 25 adds the received update record to the update batch file 26 (ST308).

【0038】このようにして、更新レコードと同一ID
のレコードが登録バッチファイル及び削除バッチファイ
ルに存在するかどうかをチェックし、既に登録バッチフ
ァイルか更新バッチファイルに同レコードが存在する場
合には、双方のレコードをフィールド単位でマージ処理
したレコードで既存のバッチファイル中のレコードを更
新する処理を、更新レコードを受付ける度に実行するこ
とにより、同一のレコードに対する登録処理、更新処理
を、常に、単一のレコードを基準として管理し処理でき
るため、バッチ処理対象となる実レコード数の飛躍的削
減が可能となる。また、既に削除バッチファイルに同一
IDのレコードが保持されていることが確認できた場合
には、同一IDの登録レコード、更新レコード全てが消
去されるため、バッチレコード数を大幅な削減が可能と
なる。
In this way, the same ID as the update record
Check whether the record of exists in the registered batch file and the deleted batch file. If the same record already exists in the registered batch file or the update batch file, both records are merged field by field By executing the process to update the records in the batch file every time the update record is accepted, the registration process and update process for the same record can always be managed and processed based on a single record. It is possible to dramatically reduce the number of actual records to be processed. Also, if it is confirmed that the deleted batch file already holds the record with the same ID, all the registered records and update records with the same ID are deleted, so the number of batch records can be significantly reduced. Become.

【0039】次に、削除処理について説明する。削除処
理の場合には、データベース処理部は、図6の削除処理
1のフロー図に従って、削除処理を実行する。まず、デ
ータベース処理部5は、バッチファイル管理部20を起
動する(ST601)。
Next, the deletion process will be described. In the case of the deletion process, the database processing unit executes the deletion process according to the flow chart of the deletion process 1 in FIG. First, the database processing unit 5 activates the batch file management unit 20 (ST601).

【0040】バッチファイル管理部20は、登録バッチ
ファイルアクセス部23により削除レコードと同一ID
のレコードが登録バッチファイル24にあるか否かをチ
ェックする(ST602)。ある場合は、バッチファイ
ル管理部20は、登録バッチファイル24からそのレコ
ードを削除する(ST603)。
The batch file management unit 20 uses the same ID as the deleted record by the registered batch file access unit 23.
Is checked in the registered batch file 24 (ST602). If there is, the batch file management unit 20 deletes the record from the registered batch file 24 (ST603).

【0041】無い場合は、次に、バッチファイル管理部
20は、削除レコードと同一IDのレコードが更新バッ
チファイル26にあるか否かをチェックする(ST60
4)。ある場合には、バッチファイル管理部20は、更
新バッチファイル26からそのレコードを削除する(S
T605)。
If not, the batch file management unit 20 next checks whether or not the update batch file 26 has a record having the same ID as the deleted record (ST60).
4). If there is, the batch file management unit 20 deletes the record from the update batch file 26 (S
T605).

【0042】無い場合には、次に、バッチファイル管理
部20は、削除レコードと同じレコードが削除バッチフ
ァイル119にあるか否かをチェックする(ST60
6)。ある場合には、その削除レコードは、重複してい
ることになり再登録の必要はないため、バッチファイル
管理部20は、受付けた削除レコードを破棄する(ST
607)。
If not, then the batch file management section 20 checks whether the same record as the deleted record exists in the deleted batch file 119 (ST60).
6). In some cases, the deleted records are duplicated and do not need to be re-registered. Therefore, the batch file management unit 20 discards the received deleted record (ST.
607).

【0043】同一IDのレコードが削除バッチファイル
28にない場合、バッチファイル管理部20は、初め
て、削除バッチファイル28に受付けた削除レコードを
追加する(ST608)。
When there is no record with the same ID in the deletion batch file 28, the batch file management unit 20 first adds the received deletion record to the deletion batch file 28 (ST608).

【0044】このようにして、登録バッチファイル又は
更新バッチファイルに存在する削除レコードと同一ID
のレコードは、その登録処理、更新処理自体が必要ない
わけであるから、これら全てを消去することにより、バ
ッチレコード数が削減されることとなる。例えば、図7
のように更新処理を時系列に受付けた場合、従来のデー
タベース処理装置におけるバッチ処理では合計8レコー
ド全てについての処理が必要となるが、本発明によれ
ば、更新等の処理を受付ける度に、同一IDのレコード
の検索、マージ処理の実行をしてバッチファイルの集約
処理を行う結果、バッチ処理の対象レコード数は、図8
に示すように、合計4レコードになる。
In this way, the same ID as the deletion record existing in the registered batch file or the update batch file
Since the registration process and the update process itself are not required for the record No., the number of batch records can be reduced by deleting all of them. For example, FIG.
When the update processing is received in time series as described above, the batch processing in the conventional database processing apparatus requires processing for all 8 records in total, but according to the present invention, every time the update processing is received, As a result of retrieving records with the same ID and executing merge processing and performing batch file aggregation processing, the number of records subject to batch processing is shown in FIG.
As shown in, there are a total of 4 records.

【0045】以上の処理により、データベース10に対
する登録、更新、削除待ちのバッチファイルは、各レコ
ードIDにつき単一のレコードに集約されるため、本発
明では、更に、これをクライアントマシン2からの検索
依頼があった場合に、その検索結果に反映させることと
した。
By the above processing, batch files waiting for registration, update, and deletion in the database 10 are aggregated into a single record for each record ID. Therefore, in the present invention, the batch files are retrieved from the client machine 2. When a request is made, it will be reflected in the search results.

【0046】この処理は、オンライン処理部22の機能
の一部として実行される。図9の検索処理フロー図を用
いて具体的に説明する。まず、クライアントマシン2ア
プリケーションから検索処理要求を受け取った場合、デ
ータベース処理部5は、オンライン処理部22を起動し
(ST901)、検索を実行し、データベース10から
検索条件に合致したレコードを取得し保持する(ST9
02)。
This processing is executed as a part of the function of the online processing unit 22. This will be specifically described with reference to the search processing flow chart of FIG. First, when the search processing request is received from the client machine 2 application, the database processing unit 5 activates the online processing unit 22 (ST901), executes the search, and acquires and retains the record that matches the search condition from the database 10. Yes (ST9
02).

【0047】次いで、オンライン処理部22は、検索結
果のレコードの集合から、1レコードを取り出し(ST
904)、バッチファイル管理部20を起動して(ST
905)、各バッチファイルに同一IDのレコードがあ
るか否かをチェックする。
Next, the online processing unit 22 extracts one record from the set of records as the search result (ST
904), start the batch file management unit 20 (ST
905), it is checked whether or not each batch file has a record with the same ID.

【0048】バッチファイル管理部20は、先ず、削除
バッチファイルアクセス部27により、削除バッチファ
イル28に同一IDのレコードがあるかチェックさせる
(ST906)。ある場合は、これをオンライン処理部
22に通知し(ST907)、オンライン処理部22に
より、検索結果レコードから該当レコードを削除する
(ST908)。
The batch file management section 20 first causes the deletion batch file access section 27 to check whether the deletion batch file 28 has a record with the same ID (ST906). If there is, this is notified to the online processing unit 22 (ST907), and the online processing unit 22 deletes the corresponding record from the search result record (ST908).

【0049】削除バッチファイル28に同一IDのレコ
ードが無い場合は、次に、バッチファイル管理部20
は、更新バッチファイルアクセス部25により、更新バ
ッチファイル26に同一IDのレコードがあるか否かを
チェックする(ST909)。
If there is no record with the same ID in the deleted batch file 28, next, the batch file management unit 20
The update batch file access unit 25 checks whether or not there is a record with the same ID in the update batch file 26 (ST909).

【0050】更新バッチファイル26に同一IDのレコ
ードがある場合は、更新バッチファイルアクセス部25
は、更新バッチファイル26の更新レコードが検索条件
に合致するかチェックし(ST910)、合致する場合
には、同一IDのレコードが更新バッチファイル26に
存在することを、オンライン処理部22に通知し(ST
911)、オンライン処理部22は検索結果レコードと
更新バッチファイル26の更新レコードとのマージ処理
を実行し、新たに生成された新規更新レコードで検索結
果レコードを更新する(ST912)。合致しない場合
には、それをオンライン処理部22に通知して、検索結
果レコードを破棄する(ST913)。これは、バッチ
処理実行前であるためデータベース10の実レコードは
更新されていないものの、既にいずれかのクライアント
2からのレコード更新要求が受付けられており、現在の
検索結果レコードは、本来検索条件には、合致しないレ
コードであるからである。
When the update batch file 26 has a record with the same ID, the update batch file access unit 25
Checks whether the update record of the update batch file 26 matches the search condition (ST910), and if it matches, notifies the online processing unit 22 that the record with the same ID exists in the update batch file 26. (ST
911), the online processing unit 22 executes the merge process of the search result record and the update record of the update batch file 26, and updates the search result record with the newly generated new update record (ST912). If they do not match, the online processing unit 22 is notified and the search result record is discarded (ST913). This is because the actual record in the database 10 has not been updated because the batch process has not yet been executed, but a record update request from any one of the clients 2 has already been accepted, and the current search result record is originally a search condition. Is a record that does not match.

【0051】更新バッチファイル26に同一IDのレコ
ードが無い場合は、次の検索結果レコードについて同様
の処理を実行する(ST914)。
If there is no record with the same ID in the update batch file 26, similar processing is executed for the next search result record (ST914).

【0052】このように、ST904からST914ま
での処理を、データベースから検索した検索結果レコー
ドがなくなるまで繰返して実行する(ST903)。
In this way, the processing from ST904 to ST914 is repeatedly executed until there are no search result records retrieved from the database (ST903).

【0053】以上の削除バッチファイル28と更新バッ
チファイル26との処理ループを抜けた後、オンライン
処理部22は、登録バッチファイルアクセス部23によ
り、登録バッチファイル24の登録レコードに対し検索
を実行し、検索条件に合致した登録レコードを取得し
(ST915)、オンライン処理部22は、該当レコー
ドを検索結果レコードに追加する(ST916)。
After exiting the processing loop of the deletion batch file 28 and the update batch file 26, the online processing unit 22 executes the search for the registration record of the registration batch file 24 by the registration batch file access unit 23. A registration record that matches the search condition is acquired (ST915), and the online processing unit 22 adds the corresponding record to the search result record (ST916).

【0054】以上の検索処理が実行された後、データベ
ース処理部5は、クライアントのアプリケーションに対
して検索結果レコードを送信する。
After the above search processing is executed, the database processing unit 5 sends the search result record to the application of the client.

【0055】以上の処理により、データベース10の実
レコードの更新前であっても、結果的に検索対象とされ
るため、レコードの更新にバッチ処理を採用しつつも、
クライアントに対しては最新の検索結果を提供すること
ができ、検索のリアルタイム性を確保できる。
By the above-mentioned processing, even before the actual record of the database 10 is updated, the result is the search target. Therefore, while adopting the batch processing for the update of the record,
The latest search result can be provided to the client, and the real-time property of the search can be secured.

【0056】次に、本発明の第二の実施の態様を説明す
る。本実施態様では、更に、バッチ処理部21による、
データベース10に対する各バッチファイルの更新処理
の実行タイミングを、システム全体のパフォーマンスを
考慮して調整しており、データベース10の更新処理が
短時間で完了する場合はオンラインにより実行し、時間
を要する場合はバッチ処理により実行することとしてい
る。図10および図11の処理フロー図を用いて具体的
に説明する。
Next, a second embodiment of the present invention will be described. In the present embodiment, the batch processing unit 21 further
The execution timing of the update processing of each batch file for the database 10 is adjusted considering the performance of the entire system. When the update processing of the database 10 is completed in a short time, it is executed online, and when it takes time, It is supposed to be executed by batch processing. This will be specifically described with reference to the process flow charts of FIGS. 10 and 11.

【0057】この処理も、オンライン処理部22の機能
の一部として実行される。まず、クライアントマシン2
のアプリケーションは、データベース処理装置4に対
し、登録処理、更新処理、削除処理、検索処理を依頼し
(ST1001)、データベース処理部5は、これを受
付け(ST1002)、検索処理であればこれを実行す
る(ST1003)。
This processing is also executed as a part of the function of the online processing unit 22. First, client machine 2
Application requests registration processing, update processing, deletion processing, and search processing to the database processing apparatus 4 (ST1001), the database processing unit 5 accepts this (ST1002), and executes this if search processing. Yes (ST1003).

【0058】登録処理の場合には、データベース処理部
5は、CPU負荷状況、データベース内レコード数を取
得し、それらの値より現負荷時の登録処理時間を計算
し、規定時間で処理可能かをチェックする(ST100
4)。その際、例えば、登録処理に対する規定時間、負
荷なし時リアルタイム処理時間[対単位レコード長]、
処理時間増加比率[対CPU負荷]、処理時間増加比率
[対単位DBレコード数]はあらかじめ図12の処理時
間テーブルのように設定し、その計算式は図13のよう
に設定する。
In the case of registration processing, the database processing unit 5 acquires the CPU load status and the number of records in the database, calculates the registration processing time under the current load from these values, and determines whether processing is possible within the specified time. Check (ST100
4). At that time, for example, a specified time for registration processing, a real-time processing time without load [per unit record length],
The processing time increase ratio [vs CPU load] and the processing time increase ratio [vs unit DB record number] are set in advance as in the processing time table of FIG. 12, and the calculation formulas thereof are set as shown in FIG.

【0059】規定時間で済む場合には、データベース処
理部5は、オンライン処理部22により、データベース
10に対しリアルタイムに登録処理を実行し(ST10
05)、規定時間を超える場合には、通常の場合と同様
に登録バッチファイルへ登録処理を行う(ST1006
からST1007)。
When the prescribed time is required, the database processing unit 5 causes the online processing unit 22 to execute the registration process on the database 10 in real time (ST10).
05) If the specified time is exceeded, registration processing is performed in the registration batch file as in the normal case (ST1006).
To ST1007).

【0060】例えば、登録レコード長が200バイト、
OSから取得したサーバマシンのCPU負荷が30%、
データベースレコード数が100レコードとすると、現
負荷時の1レコードあたりのリアルタイム登録処理時間
は、6.8秒となる(図12の設定で図13の計算式に
よる)。仮に、あらかじめ設定された登録処理に対する
規定時間が7秒だとすると、規定時間で処理可能なた
め、この登録処理は、データベース10へリアルタイム
に登録される。
For example, the registration record length is 200 bytes,
The CPU load of the server machine acquired from the OS is 30%,
Assuming that the number of database records is 100, the real-time registration processing time per record under the current load is 6.8 seconds (in the setting of FIG. 12, the calculation formula of FIG. 13 is used). If the specified time for the preset registration process is 7 seconds, the registration process can be performed in the specified time, and thus the registration process is registered in the database 10 in real time.

【0061】更新処理の場合には、データベース処理部
810は、CPU負荷状況、データベース内レコード
数、を取得しそれらの値より現負荷時の更新処理時間を
計算し、現負荷時のリアルタイム更新処理時間の規定時
間で処理可能かチェックする(ST1010)。規定時
間で済む場合には、データベース処理部5は、バッチフ
ァイル管理部20により、登録、更新、削除バッチファ
イルに同レコードが存在するかチェックする(ST10
11)。存在する場合には、そのままオンラインでデー
タベース10のレコードを更新すると各バッチファイル
のレコードと不整合が発生するため、既に説明したマー
ジ処理を含む各バッチファイルに対する更新処理を実行
する(ST1012)。存在しない場合にはリアルタイ
ムに更新処理を実行する(ST1013)。
In the case of the update processing, the database processing unit 810 acquires the CPU load status and the number of records in the database, calculates the update processing time under the current load from these values, and performs the real-time update processing under the current load. It is checked whether processing can be performed within a specified time (ST1010). When the prescribed time is required, the database processing unit 5 causes the batch file management unit 20 to check whether the same record exists in the registered, updated, and deleted batch files (ST10).
11). If it exists, updating the record of the database 10 online causes a mismatch with the record of each batch file. Therefore, the update process for each batch file including the merge process already described is executed (ST1012). If it does not exist, update processing is executed in real time (ST1013).

【0062】規定時間を超える場合には、通常の更新と
同様に各バッチファイルに対する更新処理を実行する
(ST1014)。
When the specified time is exceeded, the update process for each batch file is executed in the same manner as the normal update (ST1014).

【0063】削除処理の場合にも、同様に、削除処理時
間を計算し、規定時間で処理可能かチェックする(ST
1015)。規定時間で済む場合は、バッチファイル管
理部20により、登録、更新、削除バッチファイルに同
レコードが存在するかチェックし(ST1016)、存
在する場合は各バッチファイルに対する削除処理を実行
し(ST1017)、存在しない場合はリアルタイムに
削除処理を実行する(ST1018)。規定時間を超え
る場合は、各バッチファイルに対する削除処理を実行す
る(ST1019)。
Also in the case of the deletion processing, similarly, the deletion processing time is calculated and it is checked whether the processing can be performed within the specified time (ST.
1015). If the specified time is required, the batch file management unit 20 checks whether or not the same record exists in the registration, update, and deletion batch files (ST1016), and if there is, delete processing for each batch file is executed (ST1017). If it does not exist, deletion processing is executed in real time (ST1018). If the specified time is exceeded, delete processing is executed for each batch file (ST1019).

【0064】以上のように、レコードのデータ量やサー
バマシンの負荷が少なく、データベースへのリアルタイ
ムでの登録、更新、削除処理が短時間で済む場合、リア
ルタイムでデータベースノレコードに対する処理を実行
することにより、オフライン時のバッチ処理の負荷を減
少させることができる。
As described above, when the data amount of records and the load on the server machine are small and the registration, update, and deletion processing in the database in real time can be completed in a short time, the processing for the database record should be executed in real time. This makes it possible to reduce the load of batch processing when offline.

【0065】[0065]

【発明の効果】本発明により、同一レコードに対する複
数の更新処理を単一のアクセスにより一回で処理するこ
とができるため、バッチ処理、データベースのレコード
の更新処理自体の迅速化を実現できる。
As described above, according to the present invention, a plurality of update processes for the same record can be processed at a time by a single access. Therefore, batch process and database record update process itself can be speeded up.

【0066】また、マージ処理実行の度に不要となった
旧レコードが消去され、更新レコードを保持するメモリ
の有効活用ができ、バッチ処理、データベースのレコー
ドの更新処理自体の迅速化も実現できる。
Also, the old record that is no longer needed is deleted every time the merge process is executed, the memory for holding the update record can be effectively used, and the batch process and the update process of the record of the database itself can be speeded up.

【0067】また、後に削除されるレコードについての
無駄な登録処理や更新処理を実行する必要がなくなるた
め、バッチ処理、データベースのレコードの更新処理自
体の迅速化が実現できる。
Further, since it is not necessary to execute useless registration processing and update processing for records to be deleted later, batch processing and update processing of database records can be speeded up.

【0068】また、予め処理ファイルをグルーピングし
て整列するため、ファイル管理が容易になり、バッチ処
理、データベースのレコードの更新処理自体を簡易、迅
速に実行できる。
Further, since the processing files are grouped and arranged in advance, file management is facilitated, and batch processing and database record update processing itself can be simply and quickly executed.

【0069】また、更新レコードを保持するメモリの有
効活用ができ、バッチ処理、データベースのレコードの
更新処理自体の迅速化も実現できる。
Further, the memory for holding the update record can be effectively used, and the batch process and the update process of the record of the database itself can be speeded up.

【0070】また、同一レコードに再度更新がかけられ
た結果不必要となった旧更新処理をバッチ処理対象から
削除できるため、バッチレコード数を削減できバッチ処
理の負荷を軽減させることができる。
Further, since the old update process, which becomes unnecessary as a result of updating the same record again, can be deleted from the batch process target, the number of batch records can be reduced and the load of the batch process can be reduced.

【0071】また、データベースのレコードの実体に対
するバッチ処理に時間がかかり更新が遅れた場合であっ
ても、クライアントが実行する検索の結果は、常に、更
新後の最新ものとなる。
Further, even if the batch processing for the substance of the record of the database takes time and the update is delayed, the result of the search executed by the client is always the latest after the update.

【0072】また、短時間で更新処理が完了する場合に
は即時に更新処理を実行し、更新処理に時間がかかる場
合には、バッチ処理により更新処理を実行するため、ク
ライアント、サーバ型データベースシステム全体として
最適の運用が可能になる。
When the update process is completed in a short time, the update process is executed immediately, and when the update process takes time, the update process is executed by the batch process. Optimal operation is possible as a whole.

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

【図1】本発明のデータベース更新方法を実現するクラ
イアント、サーバ型データベースシステムの全体構成図
FIG. 1 is an overall configuration diagram of a client / server type database system that realizes a database updating method of the present invention.

【図2】本発明のデータベース更新方法の全体処理フロ
ー図
FIG. 2 is an overall processing flow chart of the database updating method of the present invention.

【図3】本発明のデータベース更新方法の更新処理フロ
ー図
FIG. 3 is an update processing flow chart of the database updating method of the present invention.

【図4】本発明の更新バッチファイル内のレコードを表
す図
FIG. 4 is a diagram showing records in an update batch file of the present invention.

【図5】本発明の更新バッチファイル内のレコードを表
す図
FIG. 5 is a diagram showing records in an update batch file of the present invention.

【図6】本発明のデータベース更新方法の削除処理フロ
ー図
FIG. 6 is a deletion processing flow chart of the database updating method of the present invention.

【図7】本発明の時系列更新依頼レコードを表す図FIG. 7 is a diagram showing a time series update request record of the present invention.

【図8】本発明の各バッチファイル内のレコードを表す
FIG. 8 is a diagram showing records in each batch file of the present invention.

【図9】本発明のデータベース更新方法の検索処理フロ
ー図
FIG. 9 is a search processing flowchart of the database updating method of the present invention.

【図10】本発明の第2実施態様によるデータベース更
新方法の処理フロー図
FIG. 10 is a process flow chart of a database updating method according to a second embodiment of the present invention.

【図11】本発明の第2実施態様によるデータベース更
新方法の処理(続き)フロー図
FIG. 11 is a flowchart of the processing (continuation) of the database updating method according to the second embodiment of the present invention.

【図12】本発明の第2実施態様によるデータベース更
新方法に使用する処理時間テーブルを表す図
FIG. 12 is a diagram showing a processing time table used in the database updating method according to the second embodiment of the present invention.

【図13】本発明の第2実施態様によるデータベース更
新方法に使用する処理時間の計算方法を示す図
FIG. 13 is a diagram showing a processing time calculation method used in the database updating method according to the second embodiment of the present invention.

【図14】従来のデータベース更新方法を実現するクラ
イアント、サーバ型データベースシステムの全体構成図
FIG. 14 is an overall configuration diagram of a client / server database system that realizes a conventional database updating method.

【図15】従来のデータベース内のレコードを表す図FIG. 15 is a diagram showing records in a conventional database.

【図16】従来のデータベース更新方法の全体処理フロ
ー図
FIG. 16 is an overall processing flowchart of a conventional database updating method.

【図17】従来のバッチファイル内のレコードを表す図FIG. 17 is a diagram showing records in a conventional batch file.

【符号の説明】[Explanation of symbols]

10 データベース 20 バッチファイル管理部 21 バッチ処理部 22 オンライン処理部 24 登録バッチファイル 26 更新バッチファイル 28 削除バッチファイル 10 database 20 batch file management unit 21 batch processing unit 22 online processing unit 24 registered batch file 26 update batch file 28 deletion batch file

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 データベースに登録されたレコードに対
する更新指示と更新レコードとを順次受付け、同一ID
を有する受付済の更新レコードに対してマージ処理を行
ない、データベースのレコードをそのマージ処理後のレ
コードを用いて更新することを特徴とするデータベース
更新方法。
1. An update ID and an update record for records registered in a database are sequentially received, and the same ID is received.
A method for updating a database, wherein a merge process is performed on a received update record having the following, and a record in the database is updated using the record after the merge process.
【請求項2】 データベースに登録されたレコードに対
する更新指示と更新レコードとを順次受付け、その更新
レコードと同一IDを有する受付済の更新レコードとを
マージ処理して生成した単一の新更新レコードを更新レ
コードとして保持した後、データベースのレコードをこ
の新更新レコードにより更新することを特徴とするデー
タベース更新方法。
2. A single new update record generated by merging an update instruction for a record registered in a database and an update record in sequence and merging the update record and an accepted update record having the same ID. A database update method characterized by updating the record of the database with this new update record after holding it as an update record.
【請求項3】 データベースに登録されたレコードに対
する更新指示と更新レコードとを順次受付け、順次受付
けた同一IDを有する複数の更新レコードをマージ処理
してID毎に単一のファイルとした上で、前記データベ
ースのレコードの更新処理を実行することを特徴とする
データベース更新方法。
3. An update instruction for a record registered in a database and an update record are sequentially received, and a plurality of update records having the same ID that are sequentially received are merged to form a single file for each ID. A database updating method characterized by executing update processing of a record of the database.
【請求項4】 マージ処理により生成される新更新レコ
ードを順次保存する一方、マージ処理の対象としたその
更新レコードと同一IDを有する受付済の更新レコード
を順次消去することを特徴とする請求項1乃至請求項3
記載のデータベース更新方法。
4. The new update record generated by the merge process is sequentially stored, while the accepted update record having the same ID as the update record targeted for the merge process is sequentially erased. 1 to claim 3
Database update method described.
【請求項5】 最終的に削除対象となるレコードと同一
レコードに対する登録指示又は更新指示がある場合に
は、その登録指示又は更新指示を無効にすることを特徴
とする請求項1乃至請求項4記載のデータベース更新方
法。
5. When the registration instruction or update instruction for the same record as the record to be finally deleted is given, the registration instruction or update instruction is invalidated. Database update method described.
【請求項6】 データベースのレコードの更新処理実行
前の更新レコードを登録処理バッチファイルと更新処理
バッチファイルと削除処理バッチファイルとに分割して
管理することを特徴とする請求項1乃至請求項4記載の
データベース更新方法。
6. An update record before execution of update processing of a record in a database is divided into a registration processing batch file, an update processing batch file, and a deletion processing batch file for management. Database update method described.
【請求項7】 登録バッチファイル又は更新バッチファ
イルに存在する削除レコードと同一IDのレコードをデ
ータベースのレコード更新以前に消去することを特徴と
する請求項6記載のデータベース更新方法。
7. The database updating method according to claim 6, wherein the record having the same ID as the deleted record existing in the registered batch file or the update batch file is erased before the record update of the database.
【請求項8】 レコードの更新指示を時刻管理し、同一
レコードに対して複数の更新指示がある場合は、新しい
時刻の更新指示のみを実行することを特徴とする請求項
1乃至請求項7記載のデータベース更新方法。
8. The record update instruction is time-managed, and when there are a plurality of update instructions for the same record, only the update instruction of a new time is executed. Database update method.
【請求項9】 データベースに対する検索の実行の後
に、その検索結果レコードと更新処理待ちの更新レコー
ドとをマージ処理することを特徴とする請求項1乃至請
求項8記載のデータベース更新方法。
9. The database update method according to claim 1, wherein after the search is performed on the database, the search result record and the update record waiting for the update process are merged.
【請求項10】 データベースに登録されたレコードの
更新指示受付けの際にレコードの更新に要する時間を計
算し、その時間が一定値以下である場合には、更新処理
をリアルタイムで実行し、その時間が一定値以上である
場合には、更新処理をバッチ処理で実行することを特徴
とする請求項1乃至請求項9記載のデータベース更新方
法。
10. The time required to update a record when receiving an update instruction for a record registered in the database is calculated. If the time is less than a certain value, the update process is executed in real time and the time is updated. 10. The database updating method according to claim 1, wherein the updating process is executed in a batch process when is greater than or equal to a certain value.
JP8136233A 1996-05-30 1996-05-30 Database updating method Pending JPH09319635A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8136233A JPH09319635A (en) 1996-05-30 1996-05-30 Database updating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8136233A JPH09319635A (en) 1996-05-30 1996-05-30 Database updating method

Publications (1)

Publication Number Publication Date
JPH09319635A true JPH09319635A (en) 1997-12-12

Family

ID=15170403

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8136233A Pending JPH09319635A (en) 1996-05-30 1996-05-30 Database updating method

Country Status (1)

Country Link
JP (1) JPH09319635A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001073559A1 (en) * 2000-03-29 2001-10-04 Seiko Epson Corporation Network security system
JP2010079627A (en) * 2008-09-26 2010-04-08 Internatl Business Mach Corp <Ibm> Device for processing inquiry to database, processing method, program, and recording medium
JP2017156950A (en) * 2016-03-01 2017-09-07 日本電気株式会社 Information processing device, information processing method and information processing program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001073559A1 (en) * 2000-03-29 2001-10-04 Seiko Epson Corporation Network security system
JP2010079627A (en) * 2008-09-26 2010-04-08 Internatl Business Mach Corp <Ibm> Device for processing inquiry to database, processing method, program, and recording medium
JP2017156950A (en) * 2016-03-01 2017-09-07 日本電気株式会社 Information processing device, information processing method and information processing program

Similar Documents

Publication Publication Date Title
US7647417B1 (en) Object cacheability with ICAP
US8972998B2 (en) Processing annotation requests using multithreaded constituent task and independent input/output tasks
US7681076B1 (en) Method and an apparatus to perform fast log replay
US20030120752A1 (en) Dynamic web page caching system and method
JP2004192292A (en) Prefetch appliance server
JP4205323B2 (en) Distribution system, distribution server and distribution method, distribution program
JP2009064224A (en) Virus scanning method and computer system using the same
JP2005025432A (en) Transaction processing method, transaction controller, and transaction control program
JP2021511702A (en) Application programming interface Methods and devices for transmitting API requests
CN112272212A (en) File transmission method and device
JPH1165915A (en) Information processor
JPH09319635A (en) Database updating method
JPH1049422A (en) Cache device for remote file
US7660876B2 (en) Electronic file management
US20170286440A1 (en) Method, business processing server and data processing server for storing and searching transaction history data
CN115150469A (en) Storage method and device for domain name resolution result, electronic equipment and storage medium
US6976040B2 (en) System and method of data-management and data-management program
CN110737635B (en) Data blocking method
JP6568232B2 (en) Computer system and device management method
WO2021036989A1 (en) Method, apparatus and system for data access
JP2000215179A (en) Management system of object name
JP2000076264A (en) Internet information retrieval system and method
WO2003083612A2 (en) System and method for optimizing internet applications
CN106878426A (en) A kind of configuration distributing method and device
JP3003759B2 (en) Job control method