JPH10289135A - Data base retrieval system provided with cache function of retrieved result - Google Patents

Data base retrieval system provided with cache function of retrieved result

Info

Publication number
JPH10289135A
JPH10289135A JP9096219A JP9621997A JPH10289135A JP H10289135 A JPH10289135 A JP H10289135A JP 9096219 A JP9096219 A JP 9096219A JP 9621997 A JP9621997 A JP 9621997A JP H10289135 A JPH10289135 A JP H10289135A
Authority
JP
Japan
Prior art keywords
search
database
search result
cache data
cache
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
JP9096219A
Other languages
Japanese (ja)
Inventor
Kazuhiko Wakui
和彦 涌井
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP9096219A priority Critical patent/JPH10289135A/en
Publication of JPH10289135A publication Critical patent/JPH10289135A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To perform the preparation of the cache of a data base depending on retrieval conditions and an efficient data base retrieval processing utilizing it. SOLUTION: At the time of a retrieval request from a client 105, a server 101 executes the retrieval only to a record inside the data base 102 changed or added after the execution date and time of the same retrieval condition as the retrieval condition of the retrieval request of this time on the cache 104 by referring to a retrieved result cache file 104 and a data base updating history table 103, eliminates the record corresponding to the record inside the data base 102 eliminated after the execution date and time from a retrieved result record group corresponding to the same retrieval condition inside the cache 104, connecting the retrieved result record group on the cache 104 obtained as the result and the record group obtained as the result of the new retrieval of this time to the data base 102 and thus, obtains the updated retrieved result record group for the retrieval request of this time and returns it to the client 105.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、データベースシス
テムにおいて検索データをキャッシュするための技術に
関する。
The present invention relates to a technique for caching search data in a database system.

【0002】[0002]

【従来の技術及び発明が解決しようとする課題】従来の
データベース検索システムにおいては、クライアントか
らの検索依頼に対して、データベースサーバが、ディス
ク上に記憶されているデータベースファイルを検索し、
その検索結果をクライアントに返送する動作が、それぞ
れの検索依頼毎に実行されていた。
2. Description of the Related Art In a conventional database search system, a database server searches a database file stored on a disk in response to a search request from a client,
The operation of returning the search result to the client has been executed for each search request.

【0003】従って、従来は、新たな検索依頼が発生す
る毎に、たとえその検索条件が以前の検索依頼の検索条
件と同じであっても、毎回ディスク上のデータベースフ
ァイルに対して検索が実行されてしまうため、検索処理
に毎回同じ程度の時間がかかってしまう。
Therefore, conventionally, every time a new search request is generated, a search is performed on the database file on the disk every time, even if the search conditions are the same as the search conditions of the previous search request. Therefore, the same amount of time is required for the search process every time.

【0004】しかし、実際の業務処理等においては、各
検索依頼毎の検索条件が同じである場合が非常に多く、
そのような検索依頼毎にディスク上のデータベースファ
イルを検索するのは、非常に効率が悪いという問題点を
有していた。
[0004] However, in actual business processing, etc., the search conditions for each search request are very often the same.
Searching the database file on the disk for each such search request has a problem that it is very inefficient.

【0005】また、従来、ディスク上に記憶されている
データベースファイルのデータの一部を主記憶メモリ上
にキャッシュするものは知られているが、それは検索条
件とは関係なくアクセスされたデータを時系列的にキャ
ッシュするものであり、必ずしもキャッシュ効率が良い
とはいえなかった。
Conventionally, there has been known a method of caching a part of data of a database file stored on a disk in a main storage memory. They are cached sequentially, and the cache efficiency was not always good.

【0006】本発明の課題は、検索条件に依存したデー
タベースのキャッシュの作成とそれを利用した効率の良
いデータベース検索処理を実現することにある。
An object of the present invention is to realize creation of a database cache depending on a search condition and efficient database search processing using the cache.

【0007】[0007]

【課題を解決するための手段】本発明の第1の態様は、
データベースの検索結果をキャッシュする機能を有する
データベース検索装置を前提とする。
According to a first aspect of the present invention, there is provided:
A database search device having a function of caching a database search result is assumed.

【0008】そして、まず、データベースに対する検索
条件と検索日時とそれらに対応する検索結果レコード群
とをキャッシュデータとして保存する検索結果キャッシ
ュ手段(検索結果キャッシュファイル104)を有す
る。
[0008] First, there is provided a search result cache means (search result cache file 104) for storing, as cache data, search conditions, search dates and times, and search result record groups corresponding thereto for the database.

【0009】次に、データベースにおいて変更、追加、
又は削除されたレコードの履歴を記録するデータベース
更新履歴テーブル手段(データベース更新履歴テーブル
103)を有する。
Next, change, add,
Alternatively, a database update history table means (database update history table 103) for recording the history of deleted records is provided.

【0010】次に、検索依頼の発行時に、検索結果キャ
ッシュ手段内で、その検索依頼の検索条件と同一の検索
条件を有するキャッシュデータを検索するキャッシュデ
ータ検索手段(図4のステップ402、403、40
5)を有する。
Next, when a search request is issued, cache data search means (steps 402, 403, and 403 in FIG. 4) for searching cache data having the same search condition as the search request in the search result cache means. 40
5).

【0011】次に、データベース更新履歴テーブル手段
を参照することにより、キャッシュデータ検索手段によ
って検索されたキャッシュデータ中の検索日時以降に変
更又は追加されたデータベース内のレコードに対しての
み検索依頼に対応する新たな検索を実行するデータベー
ス検索実行手段(図4のステップ408〜410)を有
する。
Next, by referring to the database update history table means, it is possible to respond to a search request only for records in the database changed or added after the search date and time in the cache data searched by the cache data search means. And a database search executing means (steps 408 to 410 in FIG. 4) for executing a new search.

【0012】次に、データベース更新履歴テーブル手段
を参照することにより、キャッシュデータ検索手段によ
って検索されたキャッシュデータ中の検索結果レコード
群から、検索日時以降に削除されたデータベース内のレ
コードに対応するレコードのエントリを削除するキャッ
シュデータ削除手段(図4のステップ406、407)
を有する。
[0012] Next, by referring to the database update history table means, a record corresponding to a record in the database deleted after the search date and time from a search result record group in the cache data searched by the cache data search means. Cache data deleting means (steps 406 and 407 in FIG. 4) for deleting the entry of
Having.

【0013】次に、データベース検索実行手段によって
データベースから新たに検索されたレコード群と削除が
実行されたキャッシュデータ中の検索結果レコード群と
を結合する検索結果レコード結合手段(図4のステップ
411)を有する。
Next, search result record combining means (step 411 in FIG. 4) for combining a record group newly searched from the database by the database search executing means with a search result record group in the cache data which has been deleted. Having.

【0014】次に、検索依頼の検索条件と新たな検索日
時と結合された検索結果レコード群とを新たなキャッシ
ュデータとして検索結果キャッシュ手段に保存し直すキ
ャッシュデータ更新手段(図4のステップ412)を有
する。
Next, cache data updating means for re-storing the search result record group combined with the search condition of the search request and the new search date and time as new cache data in the search result cache means (step 412 in FIG. 4). Having.

【0015】そして、結合された検索結果レコード群を
検索依頼に対する検索結果として出力する検索結果出力
手段(図4のステップ413)を有する。以上に示され
る本発明の第1の態様の構成により、今回の検索依頼の
検索条件と同一の検索条件の実行日時以降に変更又は追
加されたデータベース内のレコードに対してのみ検索が
実行されことにより、検索処理の高速化とデータベース
へのアクセス回数の減少によるデータベースサーバの負
荷の低減を図ることが可能となる。
Further, there is provided search result output means (step 413 in FIG. 4) for outputting the combined search result record group as a search result for the search request. According to the configuration of the first aspect of the present invention described above, the search is executed only for the records in the database changed or added after the execution date and time of the same search condition as the search condition of the current search request. Thereby, it is possible to speed up the search process and reduce the load on the database server due to the reduction in the number of accesses to the database.

【0016】次に、本発明の第2の態様は、データベー
スの検索結果をキャッシュする機能を有し、クライアン
トコンピュータ装置(クライアントコンピュータ10
5)からの検索依頼に従ってサーバコンピュータ装置
(サーバコンピュータ101)においてそれが保持する
データベース(データベース102)に対して検索処理
を実行するクライアント・サーバ型データベース検索シ
ステムを前提とする。
Next, a second embodiment of the present invention has a function of caching a search result of a database, and is provided with a client computer device (client computer 10).
It is assumed that the server computer apparatus (server computer 101) executes a search process on the database (database 102) held by the server computer apparatus (server computer 101) in accordance with the search request from 5).

【0017】そしてまず、クライアントコンピュータ装
置内に、以下の手段を有する。即ち、クライアントコン
ピュータ装置は、まず、サーバコンピュータ装置内のデ
ータベースに対する検索条件と検索日時とそれらに対応
する検索結果レコード群とをキャッシュデータとして保
存する検索結果キャッシュ手段を有する。
First, the client computer has the following means. That is, the client computer device first has a search result caching means for storing, as cache data, a search condition, a search date and time, and a search result record group corresponding thereto for the database in the server computer device.

【0018】次に、クライアントコンピュータ装置は、
検索依頼の発行時に、検索結果キャッシュ手段内で、そ
の検索依頼の検索条件と同一の検索条件を有するキャッ
シュデータを検索するキャッシュデータ検索手段を有す
る。
Next, the client computer device:
When a search request is issued, there is provided a cache data search means for searching cache data having the same search condition as the search condition of the search request in the search result cache means.

【0019】次に、クライアントコンピュータ装置は、
検索依頼を検索されたキャッシュデータ中の検索日時と
共にサーバコンピュータ装置に送信する検索依頼送信手
段を有する。
Next, the client computer device:
Search request transmitting means for transmitting the search request to the server computer together with the search date and time in the searched cache data.

【0020】次に、クライアントコンピュータ装置は、
サーバコンピュータ装置から返信される削除レコード情
報に対応するレコードのエントリを、キャッシュデータ
検索手段によって検索されたキャッシュデータ中の検索
結果レコード群から削除するキャッシュデータ削除手段
を有する。
Next, the client computer device:
A cache data deleting unit that deletes an entry of a record corresponding to the deleted record information returned from the server computer from the search result record group in the cache data searched by the cache data searching unit;

【0021】次に、クライアントコンピュータ装置は、
サーバコンピュータ装置から返信される新検索結果レコ
ード群と削除が実行されたキャッシュデータ中の検索結
果レコード群とを結合する検索結果レコード結合手段を
有する。
Next, the client computer device:
There is provided a search result record combining means for combining the new search result record group returned from the server computer device and the search result record group in the deleted cache data.

【0022】次に、クライアントコンピュータ装置は、
検索依頼の検索条件と新たな検索日時と結合された検索
結果レコード群とを新たなキャッシュデータとして検索
結果キャッシュ手段に保存し直すキャッシュデータ更新
手段を有する。
Next, the client computer device:
There is provided a cache data updating means for re-storing the search condition of the search request and the search result record group combined with the new search date and time as new cache data in the search result cache means.

【0023】そして、クライアントコンピュータ装置
は、結合された検索結果レコード群を検索依頼に対する
検索結果として出力する検索結果出力手段を有する。一
方、サーバコンピュータ装置内に、以下の手段を有す
る。
The client computer has a search result output means for outputting the combined search result record group as a search result for the search request. On the other hand, the server computer has the following means.

【0024】即ち、サーバコンピュータ装置は、まず、
データベースにおいて変更、追加、又は削除されたレコ
ードの履歴を記録するデータベース更新履歴テーブル手
段を有する。
That is, the server computer device firstly
It has a database update history table means for recording the history of changed, added, or deleted records in the database.

【0025】次に、サーバコンピュータ装置は、データ
ベース更新履歴テーブル手段を参照することにより、ク
ライアントコンピュータ装置内の検索依頼送信手段によ
って送信された検索日時以降に変更又は追加されたデー
タベース内のレコードに対してのみその検索依頼送信手
段によって送信された検索依頼に対応する新たな検索を
実行することにより新検索結果レコード群を取得するデ
ータベース検索実行手段を有する。
Next, by referring to the database update history table means, the server computer device can record a record in the database changed or added after the search date and time transmitted by the search request transmitting means in the client computer device. And a database search execution unit that obtains a new search result record group by executing a new search corresponding to the search request transmitted by the search request transmission unit.

【0026】次に、サーバコンピュータ装置は、データ
ベース更新履歴テーブル手段を参照することにより、ク
ライアントコンピュータ装置内の検索依頼送信手段によ
って送信された検索日時以降に削除されたデータベース
内のレコードに対応する情報を削除レコード情報として
抽出する削除レコード情報抽出手段を有する。
Next, the server computer device refers to the database update history table means to obtain information corresponding to the record in the database deleted after the search date and time transmitted by the search request transmitting means in the client computer device. As deletion record information.

【0027】そして、サーバコンピュータ装置は、新検
索結果レコード群と削除レコード情報とを検索依頼を送
信したクライアントコンピュータ装置に返信する検索結
果返信手段を有する。
The server computer has a search result returning means for returning the new search result record group and the deleted record information to the client computer which has transmitted the search request.

【0028】以上に示される本発明の第2の態様の構成
により、前述した本発明の第1の態様の構成と同様の作
用に加えて、特に検索結果レコードの数が多いようなケ
ースにおいて、クライアントコンピュータ装置とサーバ
コンピュータ装置の間の通信データ量を大幅に削減する
ことが可能となる。
According to the configuration of the second embodiment of the present invention described above, in addition to the same operation as the configuration of the first embodiment of the present invention described above, especially in a case where the number of search result records is large, The amount of communication data between the client computer device and the server computer device can be significantly reduced.

【0029】また、本発明の第2の態様の構成では、ク
ライアントコンピュータ装置毎の検索結果キャッシュフ
ァイルが、それぞれのクライアントコンピュータ装置で
の検索条件の指定傾向に基づいて最適化されるという作
用も奏する。
Further, the configuration of the second aspect of the present invention has an effect that the search result cache file for each client computer device is optimized based on the tendency of specifying the search condition in each client computer device. .

【0030】なお、本発明は、計算機により使用された
ときに、上述の本発明の第1又は第2の態様の構成によ
って実現される機能と同様の機能を計算機、サーバコン
ピュータ装置、又はクライアントコンピュータ装置に行
わせるための計算機読出し可能記憶媒体として構成する
こともできる。
According to the present invention, when used by a computer, a function similar to the function realized by the above-described configuration of the first or second aspect of the present invention is implemented by a computer, a server computer, or a client computer. It may be configured as a computer-readable storage medium to be executed by the device.

【0031】[0031]

【発明の実施の形態】以下、図面を参照しながら本発明
の実施の形態につき詳細に説明する。 <第1の実施の形態>図1は、本発明の第1の実施の形
態のシステム構成図である。
Embodiments of the present invention will be described below in detail with reference to the drawings. <First Embodiment> FIG. 1 is a system configuration diagram of a first embodiment of the present invention.

【0032】第1の実施の形態では、特には図示しない
ディスクに記憶されるデータベース102の管理を行う
特には図示しないデータベースサーバプロセスが実行さ
れるサーバコンピュータ101に、データベース102
に対する検索条件と検索日時とそれらに対応する検索結
果レコード群とを保存する検索結果キャッシュファイル
104と、データベース102において変更、追加、又
は削除されたレコードの履歴を記録するデータベース更
新履歴テーブル103とが設けられる。
In the first embodiment, a database 102, which manages a database 102 stored on a disk (not shown), executes a database server process (not shown).
A search result cache file 104 that stores search conditions, search dates and times, and a search result record group corresponding to them, and a database update history table 103 that records the history of changed, added, or deleted records in the database 102. Provided.

【0033】そして、クライアントコンピュータ105
からの検索依頼時に、サーバコンピュータ101上の特
には図示しないデータベースサーバプロセスは、検索結
果キャッシュファイル104とデータベース更新履歴テ
ーブル103を参照することにより、検索結果キャッシ
ュファイル104上の今回の検索依頼の検索条件と同一
の検索条件の実行日時以降に変更又は追加されたデータ
ベース102内のレコードに対してのみ検索を実行する
と共に、上記実行日時以降に削除されたデータベース1
02内のレコードに対応するレコードを検索結果キャッ
シュファイル104内の上記同一検索条件に対応する検
索結果レコード群から削除し、その結果得られる検索結
果キャッシュファイル104上の検索結果レコード群と
データベース102に対する今回の新たな検索の結果得
られるレコード群とを結合することにより、今回の検索
依頼に対する更新された検索結果レコード群を取得し、
それをクライアントコンピュータ105に返信する。
Then, the client computer 105
When a search request is made from the server, the database server process (not shown) on the server computer 101 refers to the search result cache file 104 and the database update history table 103 to search for the current search request in the search result cache file 104. The search is executed only for the records in the database 102 changed or added after the execution date and time of the same search condition as the condition, and the database 1 deleted after the execution date and time is executed.
02 is deleted from the search result record group corresponding to the same search condition in the search result cache file 104 in the search result cache file 104, and the resulting search result record group in the search result cache file 104 and the database 102 are deleted. By combining with the records obtained as a result of this new search, the updated search result records for the current search request are obtained,
It is returned to the client computer 105.

【0034】このようにして、第1の実施の形態では、
検索条件に応じた効率の良い検索処理を実行できる点
が、本発明に関連する特徴である。図2は、図1のデー
タベース更新履歴テーブル103のデータ構成を示す図
である。
As described above, in the first embodiment,
A feature related to the present invention is that efficient search processing according to search conditions can be executed. FIG. 2 is a diagram showing a data configuration of the database update history table 103 of FIG.

【0035】データベース102においてクライアント
コンピュータ105からのレコード更新依頼(図1参
照)に基づいて変更、追加、又は削除されたレコードに
つき、データベース102内でユニークなレコードID
が割り当てられ、そのレコードIDと、更新日時、及び
更新内容(変更、追加、又は削除)が、図2に示される
データフォーマットで、データベース更新履歴テーブル
103に記録される。
For records changed, added or deleted based on a record update request (see FIG. 1) from the client computer 105 in the database 102, a unique record ID in the database 102
The record ID, the update date and time, and the update content (change, addition, or deletion) are recorded in the database update history table 103 in the data format shown in FIG.

【0036】次に、図3は、図1の検索結果キャッシュ
ファイル104のデータ構成を示す図である。このファ
イルには、クライアントコンピュータ105からの検索
依頼に基づいて、検索条件と、検索日時、及び検索結果
レコード群とそれぞれのレコードIDが、図3に示され
るデータフォーマットで記録される。
FIG. 3 is a diagram showing the data structure of the search result cache file 104 of FIG. In this file, based on a search request from the client computer 105, a search condition, a search date and time, a search result record group, and respective record IDs are recorded in a data format shown in FIG.

【0037】続いて、図4は、サーバコンピュータ10
1内のデータベースサーバプロセスが実行する制御動作
を示す動作フローチャートである。まず、データベース
サーバプロセスは、クライアントコンピュータ105か
ら検索依頼(検索要求)を受信する(ステップ40
1)。
FIG. 4 shows the server computer 10.
3 is an operation flowchart illustrating a control operation performed by a database server process in the first embodiment. First, the database server process receives a search request (search request) from the client computer 105 (step 40).
1).

【0038】次に、データベースサーバプロセスは、検
索結果キャッシュファイル104から、上記検索依頼に
よって指定された検索条件に合致するキャッシュデータ
(図3で示される形式のデータ)を検索する(ステップ
402)。
Next, the database server process searches the search result cache file 104 for cache data (data in the format shown in FIG. 3) that matches the search conditions specified by the search request (step 402).

【0039】続いて、データベースサーバプロセスは、
ステップ402での検索の結果、合致するキャッシュデ
ータが見つかったか否かを判定する(ステップ40
3)。合致するキャッシュデータが見つからずステップ
403の判定がNOならば、データベースサーバプロセ
スは、データベース102内の全レコードを対象とし
て、ステップ401で受信した検索依頼により指定され
た検索条件に合致するレコード群を検索する(ステップ
404)。
Subsequently, the database server process
It is determined whether matching cache data is found as a result of the search in step 402 (step 40).
3). If no matching cache data is found and the determination in step 403 is NO, the database server process searches all records in the database 102 for records that match the search condition specified by the search request received in step 401. Search (step 404).

【0040】一方、合致するキャッシュデータが見つか
りステップ403の判定がYESならば、データベース
サーバプロセスは、以下のステップ405〜411の一
連の処理を実行する。
On the other hand, if matching cache data is found and the determination in step 403 is YES, the database server process executes a series of processes in steps 405 to 411 described below.

【0041】即ちまず、データベースサーバプロセス
は、合致したキャッシュデータから前回の検索日時(図
3参照)を取得する(ステップ405)。次に、データ
ベースサーバプロセスは、データベース更新履歴テーブ
ル103から、ステップ405で取得した前回の検索日
時以降に削除されたレコードのレコードIDを取得する
(ステップ406)。
First, the database server process obtains the previous search date and time (see FIG. 3) from the matched cache data (step 405). Next, the database server process acquires, from the database update history table 103, the record ID of the record deleted after the previous search date and time acquired in step 405 (step 406).

【0042】次に、データベースサーバプロセスは、ス
テップ402での検索により合致したキャッシュデータ
内の検索結果レコード群から、上記削除されたレコード
のレコードIDに対応するレコードIDを有する検索結
果レコードのエントリを削除する(ステップ407)。
Next, the database server process retrieves an entry of a search result record having a record ID corresponding to the record ID of the deleted record from the search result record group in the cache data matched by the search in step 402. It is deleted (step 407).

【0043】次に、データベースサーバプロセスは、デ
ータベース更新履歴テーブル103から、ステップ40
5で取得した前回の検索日時以降に変更又は追加された
レコードのレコードIDを取得する(ステップ40
8)。
Next, the database server process determines from the database update history table 103 in step 40
The record ID of the record changed or added after the previous search date and time acquired in step 5 is acquired (step 40).
8).

【0044】次に、データベースサーバプロセスは、デ
ータベース102から、ステップ408で取得したレコ
ードIDに対応するレコードを検索して取得する(ステ
ップ409)。
Next, the database server process searches the database 102 for a record corresponding to the record ID acquired in step 408 and acquires it (step 409).

【0045】更に、データベースサーバプロセスは、ス
テップ409で取得したレコードに対して、ステップ4
01で受信した検索依頼により指定された検索条件で検
索を実行することにより、その検索条件に合致するレコ
ードを取得する(ステップ410)。
Further, the database server process transmits the record acquired in step 409 to step 4
By executing a search under the search condition specified by the search request received at 01, a record that matches the search condition is obtained (step 410).

【0046】そして、データベースサーバプロセスは、
ステップ410で取得したレコード群を、ステップ40
2での検索により合致したキャッシュデータ内の検索結
果レコード群に結合する(ステップ411)。
Then, the database server process
The group of records acquired in step 410 is
The search result records in the cache data matched by the search in step 2 are combined (step 411).

【0047】上述のステップ411又は前述したステッ
プ404の処理の後、データベースサーバプロセスは、
ステップ401で受信した検索依頼によって指定された
検索条件と、現在の日時である検索日時と共に、ステッ
プ411での結合処理又はステップ404での検索処理
によって得られる検索結果レコード群と、それぞれのレ
コードIDを、検索結果キャッシュファイル104に保
存する(ステップ412)。
After the processing of step 411 or step 404 described above, the database server process
A search result record group obtained by the combining process in step 411 or the search process in step 404 together with the search condition specified by the search request received in step 401 and the search date and time as the current date and time, and the respective record IDs Is stored in the search result cache file 104 (step 412).

【0048】最後に、データベースサーバプロセスは、
ステップ412で検索結果キャッシュファイル104に
保存した検索結果レコード群を、ステップ401で受信
した検索依頼(検索要求)を送信した元のクライアント
コンピュータ105に、検索結果として引き渡す(ステ
ップ413)。
Finally, the database server process:
The search result record group saved in the search result cache file 104 in step 412 is delivered as a search result to the client computer 105 that transmitted the search request (search request) received in step 401 (step 413).

【0049】以上説明したように、第1の実施の形態に
よる制御動作のもとでは、今回の検索依頼の検索条件と
同一の検索条件の実行日時以降に変更又は追加されたデ
ータベース102内のレコードに対してのみ検索が実行
されことにより、検索処理の高速化とデータベースへの
アクセス回数の減少によるデータベースサーバの負荷の
低減を図ることができる。 <第2の実施の形態>図5は、本発明の第2の実施の形
態のシステム構成図である。
As described above, under the control operation according to the first embodiment, the record in the database 102 changed or added after the execution date and time of the same search condition as the search condition of the current search request. By executing the search only for, the speed of the search process can be increased and the load on the database server can be reduced due to the decrease in the number of accesses to the database. <Second Embodiment> FIG. 5 is a system configuration diagram of a second embodiment of the present invention.

【0050】図5に示される構成が図1に示される第1
の実施の形態の構成と異なる点は、図1に示される第1
の実施の形態ではサーバコンピュータ101に保持され
ていた検索結果キャッシュファイル104が、図5に示
される第2の実施の形態においては、各クライアントコ
ンピュータ105に保持される点である。
The structure shown in FIG. 5 is equivalent to the first structure shown in FIG.
The difference from the configuration of the first embodiment is that the first embodiment shown in FIG.
In the second embodiment shown in FIG. 5, the search result cache file 104 stored in the server computer 101 is stored in each client computer 105 in the second embodiment.

【0051】この場合には、クライアントコンピュータ
105において実行される特には図示しないデータベー
スクライアントプロセスは、サーバコンピュータ101
に対して検索依頼を実行するときに、まず、図4のステ
ップ402、403、及び405と同様にして、ローカ
ルに保持している検索結果キャッシュファイル104か
ら、上記検索依頼によって指定された検索条件に合致す
るキャッシュデータを検索し、合致したキャッシュデー
タから前回の検索日時を取得する。
In this case, a database client process (not shown) executed in the client computer 105 is executed by the server computer 101.
When the search request is executed, first, similarly to steps 402, 403, and 405 of FIG. 4, the search condition specified by the search request is retrieved from the locally stored search result cache file 104. And retrieves the previous search date and time from the cache data that matches.

【0052】その後、クライアントコンピュータ105
上のデータベースクライアントプロセスは、取得した前
回の検索日時を、上記検索依頼と共にサーバコンピュー
タ101に引き渡す。
Thereafter, the client computer 105
The above database client process delivers the acquired previous search date and time to the server computer 101 together with the above search request.

【0053】サーバコンピュータ101上のデータベー
スサーバプロセスは、図4のステップ408〜410と
同様にして、データベース更新履歴テーブル103か
ら、クライアントコンピュータ105から受信した前回
の検索日時以降に変更又は追加されたレコードのレコー
ドIDを取得し、その取得したレコードIDに対応する
レコードをデータベース102から検索して取得し、そ
の取得したレコードに対して更に、クライアントコンピ
ュータ105から受信した検索依頼により指定された検
索条件で検索を実行することにより、その検索条件に合
致するレコードを取得する。
The database server process on the server computer 101 executes a process similar to the steps 408 to 410 in FIG. , And a record corresponding to the acquired record ID is retrieved from the database 102 to acquire the record ID. The acquired record is further retrieved according to the retrieval condition specified by the retrieval request received from the client computer 105. By executing a search, a record matching the search condition is obtained.

【0054】サーバコンピュータ101上のデータベー
スサーバプロセスは、データベース102から新たに検
索した新検索結果レコード群をクライアントコンピュー
タ105に返信する。
The database server process on the server computer 101 returns a new search result record group newly searched from the database 102 to the client computer 105.

【0055】また、サーバコンピュータ101上のデー
タベースサーバプロセスは、図4のステップ406と同
様にして、データベース更新履歴テーブル103から、
クライアントコンピュータ105から受信した前回の検
索日時以降に削除された削除レコードのレコードIDを
取得し、それをクライアントコンピュータ105に返信
する。
Further, the database server process on the server computer 101 reads the database update history table 103 from the database update history table 103 in the same manner as in step 406 of FIG.
It acquires the record ID of the record deleted from the previous search date and time received from the client computer 105 and returns it to the client computer 105.

【0056】クライアントコンピュータ105上のデー
タベースクライアントプロセスは、図4のステップ40
7と同様にして、ローカルに保持している検索結果キャ
ッシュファイル104から予め検索して抽出していた前
記検索依頼によって指定された検索条件に合致するキャ
ッシュデータ内の検索結果レコード群から、サーバコン
ピュータ101より返信された削除レコードのレコード
IDに対応するレコードIDを有する検索結果レコード
のエントリを削除すると共に、図4のステップ411と
同様にして、サーバコンピュータ101より返信された
新検索結果レコード群を、上記キャッシュデータ内の検
索結果レコード群に結合し、その結合結果を前記検索依
頼に対する応答としてクライアントコンピュータ105
上で出力する。
The database client process on the client computer 105 proceeds to step 40 in FIG.
In the same manner as in 7, the server computer retrieves a search result record group in the cache data that matches the search condition specified by the search request, which has been previously searched and extracted from the locally held search result cache file 104. The entry of the search result record having the record ID corresponding to the record ID of the deleted record returned from the server 101 is deleted, and the new search result record group returned from the server computer 101 is deleted in the same manner as in step 411 of FIG. Is combined with a search result record group in the cache data, and the combined result is used as a response to the search request by the client computer 105
Output above.

【0057】また、クライアントコンピュータ105上
のデータベースクライアントプロセスは、図4のステッ
プ412と同様にして、前記検索依頼によって指定され
た検索条件と、現在の日時である検索日時と共に、上記
結合結果である検索結果レコード群と、それぞれのレコ
ードIDを、ローカルに保持している検索結果キャッシ
ュファイル104に保存する。
The database client process on the client computer 105 is the same as step 412 in FIG. 4, and is the above-mentioned combination result together with the search condition specified by the search request and the search date and time as the current date and time. The search result record group and each record ID are stored in the search result cache file 104 held locally.

【0058】以上説明した第2の実施の形態による制御
動作のもとでは、前述した第1の実施の形態による効果
に加えて、特に検索結果レコードの数が多いようなケー
スにおいて、クライアントコンピュータ105とサーバ
コンピュータ101の間の通信データ量を大幅に削減す
ることが可能となる。
Under the control operation according to the second embodiment described above, in addition to the effects of the first embodiment described above, especially in a case where the number of search result records is large, the client computer 105 It is possible to greatly reduce the amount of communication data between the server and the server computer 101.

【0059】また、第2の実施の形態では、クライアン
トコンピュータ105毎の検索結果キャッシュファイル
104が、それぞれのクライアントコンピュータ105
での検索条件の指定傾向に基づいて最適化されるという
効果も生まれる。 <他の実施の形態>以上説明した第1及び第2の実施の
形態では、検索結果キャッシュファイル104内に検索
条件が記録されるように構成されているが、キャッシュ
される検索条件と検索結果レコードとを別々のキャッシ
ュファイルに保持するように構成することも可能であ
る。
In the second embodiment, the search result cache file 104 for each client computer 105 is stored in each client computer 105.
There is also an effect that the search condition is optimized based on the specified tendency of the search condition. <Other Embodiments> In the first and second embodiments described above, the search condition is recorded in the search result cache file 104. However, the search condition to be cached and the search result It is also possible to adopt a configuration in which records are stored in separate cache files.

【0060】また、これらのキャッシュデータを、ファ
イルではなく(又はファイルだけではなく)、主記憶メ
モリ上に保持するように構成されてもよい。更に、デー
タベースサーバプロセスがデータベース更新履歴テーブ
ル103に基づいてデータベース102にアクセスする
際に、レコードIDをキーとしてアクセスするのではな
く、レコードIDとレコードのデータベースファイル上
での位置(アドレス)との対応をインデックスファイル
として別に用意しておき、このインデックスファイルに
基づいてデータベース102にアクセスするように構成
されてもよい。
The cache data may be stored in the main memory instead of the file (or not only the file). Further, when the database server process accesses the database 102 based on the database update history table 103, instead of using the record ID as a key, the correspondence between the record ID and the position (address) of the record in the database file is used. May be separately prepared as an index file, and the database 102 may be accessed based on the index file.

【0061】なお、本発明は、上記本発明の第1又は第
2の実施の形態によって実現される機能を有するコンピ
ュータプログラムを記憶したフロッピィディスク、CD
−ROMディスク、光ディスク、可搬型(リムーバブ
ル)ハードディスク等の記憶媒体をも特許請求の範囲と
する。
The present invention relates to a floppy disk or a CD storing a computer program having a function realized by the first or second embodiment of the present invention.
-A storage medium such as a ROM disk, an optical disk, and a portable (removable) hard disk is also claimed.

【0062】[0062]

【発明の効果】本発明の第1の態様の構成によれば、今
回の検索依頼の検索条件と同一の検索条件の実行日時以
降に変更又は追加されたデータベース内のレコードに対
してのみ検索が実行されことにより、検索処理の高速化
とデータベースへのアクセス回数の減少によるデータベ
ースサーバの負荷の低減を図ることが可能となる。
According to the configuration of the first aspect of the present invention, the search is performed only on the records in the database changed or added after the execution date and time of the same search condition as the search condition of the current search request. By executing this, it is possible to speed up the search process and reduce the load on the database server due to the reduction in the number of times of accessing the database.

【0063】本発明の第2の態様の構成によれば、上述
の本発明の第1の態様の構成と同様の効果に加えて、特
に検索結果レコードの数が多いようなケースにおいて、
クライアントコンピュータ装置とサーバコンピュータ装
置の間の通信データ量を大幅に削減することが可能とな
る。
According to the configuration of the second aspect of the present invention, in addition to the same effects as the above-described configuration of the first aspect of the present invention, especially in a case where the number of search result records is large,
The amount of communication data between the client computer device and the server computer device can be significantly reduced.

【0064】また、本発明の第2の態様の構成によれ
ば、クライアントコンピュータ装置毎の検索結果キャッ
シュファイルが、それぞれのクライアントコンピュータ
装置での検索条件の指定傾向に基づいて最適化されると
いう効果も有する。
Further, according to the configuration of the second aspect of the present invention, the search result cache file for each client computer is optimized based on the tendency of specifying the search condition in each client computer. Also have.

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

【図1】本発明の第1の実施の形態のシステム構成図で
ある。
FIG. 1 is a system configuration diagram according to a first embodiment of this invention.

【図2】データベース更新履歴テーブルの構成図であ
る。
FIG. 2 is a configuration diagram of a database update history table.

【図3】検索結果キャッシュファイルの構成図である。FIG. 3 is a configuration diagram of a search result cache file.

【図4】本発明の第1の実施の形態の動作フローチャー
トである。
FIG. 4 is an operation flowchart of the first embodiment of the present invention.

【図5】本発明の第2の実施の形態のシステム構成図で
ある。
FIG. 5 is a system configuration diagram according to a second embodiment of this invention.

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

101 サーバコンピュータ 102 データベース 103 データベース更新履歴テーブル 104 検索結果キャッシュファイル 105 クライアントコンピュータ Reference Signs List 101 server computer 102 database 103 database update history table 104 search result cache file 105 client computer

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 データベースの検索結果をキャッシュす
る機能を有するデータベース検索装置であって、 前記データベースに対する検索条件と検索日時とそれら
に対応する検索結果レコード群とをキャッシュデータと
して保存する検索結果キャッシュ手段と、 前記データベースにおいて変更、追加、又は削除された
レコードの履歴を記録するデータベース更新履歴テーブ
ル手段と、 検索依頼の発行時に、前記検索結果キャッシュ手段内
で、該検索依頼の検索条件と同一の検索条件を有するキ
ャッシュデータを検索するキャッシュデータ検索手段
と、 前記データベース更新履歴テーブル手段を参照すること
により、前記キャッシュデータ検索手段によって検索さ
れたキャッシュデータ中の検索日時以降に変更又は追加
された前記データベース内のレコードに対してのみ前記
検索依頼に対応する新たな検索を実行するデータベース
検索実行手段と、 前記データベース更新履歴テーブル手段を参照すること
により、前記キャッシュデータ検索手段によって検索さ
れたキャッシュデータ中の検索結果レコード群から、前
記検索日時以降に削除された前記データベース内のレコ
ードに対応するレコードのエントリを削除するキャッシ
ュデータ削除手段と、 前記データベース検索実行手段によって前記データベー
スから新たに検索されたレコード群と前記削除が実行さ
れたキャッシュデータ中の検索結果レコード群とを結合
する検索結果レコード結合手段と、 前記検索依頼の検索条件と新たな検索日時と前記結合さ
れた検索結果レコード群とを新たなキャッシュデータと
して前記検索結果キャッシュ手段に保存し直すキャッシ
ュデータ更新手段と、 前記結合された検索結果レコード群を前記検索依頼に対
する検索結果として出力する検索結果出力手段と、 を含むことを特徴とする検索結果のキャッシュ機能を有
するデータベース検索装置。
1. A database search device having a function of caching a search result of a database, wherein a search result cache means for storing, as cache data, a search condition, a search date and time, and a search result record group corresponding to the search condition for the database. Database update history table means for recording the history of changed, added, or deleted records in the database; and when the search request is issued, the same search condition as the search condition in the search result cache means in the search result cache means. A cache data search unit for searching cache data having a condition; and the database changed or added after a search date and time in the cache data searched by the cache data search unit by referring to the database update history table unit. A database search execution unit that executes a new search corresponding to the search request only for the record of the above; and a search in the cache data searched by the cache data search unit by referring to the database update history table unit. A cache data deletion unit that deletes, from the result record group, an entry of a record corresponding to a record in the database deleted after the search date and time; and a record group newly searched from the database by the database search execution unit. Search result record combining means for combining a search result record group in the cache data from which the deletion has been executed; a new cache for the search condition of the search request, a new search date and the combined search result record group The search result cache as data Cache data updating means for re-storing in the cache means, and search result output means for outputting the combined search result record group as search results for the search request. Database search device.
【請求項2】 データベースの検索結果をキャッシュす
る機能を有するデータベース検索方法であって、 前記データベースに対する検索条件と検索日時とそれら
に対応する検索結果レコード群とをキャッシュデータと
して検索結果キャッシュ装置に記憶し、 前記データベースにおいて変更、追加、又は削除された
レコードの履歴をデータベース更新履歴テーブルとして
記録し、 検索依頼の発行時に、前記検索結果キャッシュ装置内
で、該検索依頼の検索条件と同一の検索条件を有するキ
ャッシュデータを検索し、 前記データベース更新履歴テーブルを参照することによ
り、前記検索されたキャッシュデータ中の検索日時以降
に変更又は追加された前記データベース内のレコードに
対してのみ前記検索依頼に対応する新たな検索を実行
し、 前記データベース更新履歴テーブルを参照することによ
り、前記検索されたキャッシュデータ中の検索結果レコ
ード群から、前記検索日時以降に削除された前記データ
ベース内のレコードに対応するレコードのエントリを削
除し、 前記データベースから新たに検索されたレコード群と前
記削除が実行されたキャッシュデータ中の検索結果レコ
ード群とを結合し、 前記検索依頼の検索条件と新たな検索日時と前記結合さ
れた検索結果レコード群とを新たなキャッシュデータと
して前記検索結果キャッシュ装置に保存し直し、 前記結合された検索結果レコード群を前記検索依頼に対
する検索結果として出力する、 過程を含むことを特徴とする検索結果のキャッシュ機能
を有するデータベース検索方法。
2. A database search method having a function of caching a search result of a database, wherein a search condition, a search date and time, and a search result record group corresponding thereto are stored in a search result cache device as cache data. The history of records that have been changed, added, or deleted in the database is recorded as a database update history table, and when a search request is issued, the same search condition as the search condition of the search request is issued in the search result cache device. By searching for cache data having the following, and referring to the database update history table, only the records in the database changed or added after the search date and time in the searched cache data correspond to the search request. Perform a new search to By referring to the database update history table, from the search result record group in the searched cache data, delete the entry of the record corresponding to the record in the database deleted after the search date and time, from the database The newly searched record group and the search result record group in the cache data from which the deletion has been executed are combined, and the search condition of the search request, a new search date and the combined search result record group are newly added. Retrieving the combined search result record group as search results in response to the search request. Method.
【請求項3】 データベースの検索結果をキャッシュす
る機能を有し、クライアントコンピュータ装置からの検
索依頼に従ってサーバコンピュータ装置においてそれが
保持するデータベースに対して検索処理を実行するクラ
イアント・サーバ型データベース検索システムであっ
て、 前記クライアントコンピュータ装置内に、 前記サーバコンピュータ装置内のデータベースに対する
検索条件と検索日時とそれらに対応する検索結果レコー
ド群とをキャッシュデータとして保存する検索結果キャ
ッシュ手段と、 検索依頼の発行時に、前記検索結果キャッシュ手段内
で、該検索依頼の検索条件と同一の検索条件を有するキ
ャッシュデータを検索するキャッシュデータ検索手段
と、 前記検索依頼を前記検索されたキャッシュデータ中の検
索日時と共に前記サーバコンピュータ装置に送信する検
索依頼送信手段と、 前記サーバコンピュータ装置から返信される削除レコー
ド情報に対応するレコードのエントリを、前記キャッシ
ュデータ検索手段によって検索されたキャッシュデータ
中の検索結果レコード群から削除するキャッシュデータ
削除手段と、 前記サーバコンピュータ装置から返信される新検索結果
レコード群と前記削除が実行されたキャッシュデータ中
の検索結果レコード群とを結合する検索結果レコード結
合手段と、 前記検索依頼の検索条件と新たな検索日時と前記結合さ
れた検索結果レコード群とを新たなキャッシュデータと
して前記検索結果キャッシュ手段に保存し直すキャッシ
ュデータ更新手段と、 前記結合された検索結果レコード群を前記検索依頼に対
する検索結果として出力する検索結果出力手段と、 を含み、 前記サーバコンピュータ装置内に、 前記データベースにおいて変更、追加、又は削除された
レコードの履歴を記録するデータベース更新履歴テーブ
ル手段と、 前記データベース更新履歴テーブル手段を参照すること
により、前記クライアントコンピュータ装置内の前記検
索依頼送信手段によって送信された検索日時以降に変更
又は追加された前記データベース内のレコードに対して
のみ該検索依頼送信手段によって送信された検索依頼に
対応する新たな検索を実行することにより前記新検索結
果レコード群を取得するデータベース検索実行手段と、 前記データベース更新履歴テーブル手段を参照すること
により、前記クライアントコンピュータ装置内の前記検
索依頼送信手段によって送信された検索日時以降に削除
された前記データベース内のレコードに対応する情報を
前記削除レコード情報として抽出する削除レコード情報
抽出手段と、 前記新検索結果レコード群と前記削除レコード情報とを
前記検索依頼を送信したクライアントコンピュータ装置
に返信する検索結果返信手段と、 を含むことを特徴とするクライアント・サーバ型データ
ベース検索システム。
3. A client / server type database search system having a function of caching a search result of a database and executing a search process on a database held by a server computer in accordance with a search request from a client computer. A search result cache unit for storing, as cache data, search conditions, a search date and time, and a search result record group corresponding to the search conditions and the search date and time for the database in the server computer device; A cache data search unit that searches for cache data having the same search condition as the search condition of the search request in the search result cache unit; and stores the search request together with a search date and time in the searched cache data. Search request transmitting means for transmitting to the server computer device, and an entry of a record corresponding to the deleted record information returned from the server computer device, from a search result record group in the cache data searched by the cache data search means. A cache data deleting unit to be deleted; a search result record connecting unit that connects a new search result record group returned from the server computer device and a search result record group in the deleted cache data; Cache data updating means for restoring the search condition, new search date and time, and the combined search result record group as new cache data in the search result cache means; and performing the search on the combined search result record group Search results for the request Database update history table means for recording the history of changed, added, or deleted records in the database in the server computer device; andthe database update history table means in the server computer device. By referring to the search request transmitted by the search request transmitting unit only for records in the database changed or added after the search date and time transmitted by the search request transmitting unit in the client computer device A database search execution unit that obtains the new search result record group by executing a corresponding new search; and a database that is transmitted by the search request transmission unit in the client computer device by referring to the database update history table unit. Was done Deletion record information extraction means for extracting information corresponding to records in the database deleted after the search date and time as the deletion record information; and transmitting the search request for the new search result record group and the deletion record information. A client / server type database search system, comprising: a search result returning means for returning to a client computer device.
【請求項4】 データベースの検索結果をキャッシュす
る機能を有し、クライアントコンピュータ装置からの検
索依頼に従ってサーバコンピュータ装置においてそれが
保持するデータベースに対して検索処理を実行するクラ
イアント・サーバ型データベース検索システムを構成す
る前記サーバコンピュータ装置であって、 前記データベースにおいて変更、追加、又は削除された
レコードの履歴を記録するデータベース更新履歴テーブ
ル手段と、 前記データベース更新履歴テーブル手段を参照すること
により、前記クライアントコンピュータ装置から送信さ
れた検索日時以降に変更又は追加された前記データベー
ス内のレコードに対してのみ前記クライアントコンピュ
ータ装置から送信された検索依頼に対応する新たな検索
を実行することにより新検索結果レコード群を取得する
データベース検索実行手段と、 前記データベース更新履歴テーブル手段を参照すること
により、前記クライアントコンピュータ装置から送信さ
れた検索日時以降に削除された前記データベース内のレ
コードに対応する情報を削除レコード情報として抽出す
る削除レコード情報抽出手段と、 前記新検索結果レコード群と前記削除レコード情報とを
前記検索依頼を送信したクライアントコンピュータ装置
に返信する検索結果返信手段と、 を含むことを特徴とするサーバコンピュータ装置。
4. A client-server type database search system having a function of caching database search results and executing a search process on a database held by a server computer device in accordance with a search request from a client computer device. The server computer device comprising: a database update history table means for recording a history of changed, added, or deleted records in the database; and the client computer device by referring to the database update history table means. By executing a new search corresponding to the search request transmitted from the client computer only for records in the database changed or added after the search date and time transmitted from the client computer A database search execution unit for acquiring a new search result record group; and information corresponding to a record in the database deleted after the search date and time transmitted from the client computer device by referring to the database update history table unit. Record information extracting means for extracting the new search result record group and the delete record information to the client computer device that transmitted the search request. Server computer device.
【請求項5】 データベースの検索結果をキャッシュす
る機能を有し、クライアントコンピュータ装置からの検
索依頼に従ってサーバコンピュータ装置においてそれが
保持するデータベースに対して検索処理を実行するクラ
イアント・サーバ型データベース検索システムを構成す
る前記クライアントコンピュータ装置であって、 前記サーバコンピュータ装置内のデータベースに対する
検索条件と検索日時とそれらに対応する検索結果レコー
ド群とをキャッシュデータとして保存する検索結果キャ
ッシュ手段と、 検索依頼の発行時に、前記検索結果キャッシュ手段内
で、該検索依頼の検索条件と同一の検索条件を有するキ
ャッシュデータを検索するキャッシュデータ検索手段
と、 前記検索依頼を前記検索されたキャッシュデータ中の検
索日時と共に前記サーバコンピュータ装置に送信する検
索依頼送信手段と、 前記サーバコンピュータ装置から返信される削除レコー
ド情報に対応するレコードのエントリを、前記キャッシ
ュデータ検索手段によって検索されたキャッシュデータ
中の検索結果レコード群から削除するキャッシュデータ
削除手段と、 前記サーバコンピュータ装置から返信される新検索結果
レコード群と前記削除が実行されたキャッシュデータ中
の検索結果レコード群とを結合する検索結果レコード結
合手段と、 前記検索依頼の検索条件と新たな検索日時と前記結合さ
れた検索結果レコード群とを新たなキャッシュデータと
して前記検索結果キャッシュ手段に保存し直すキャッシ
ュデータ更新手段と、 前記結合された検索結果レコード群を前記検索依頼に対
する検索結果として出力する検索結果出力手段と、 を含むことを特徴とするクライアントコンピュータ装
置。
5. A client / server type database search system having a function of caching a search result of a database and executing a search process on a database held by a server computer in accordance with a search request from a client computer. The client computer device to be configured, wherein a search result cache means for storing, as cache data, a search condition, a search date and time, and a search result record group corresponding thereto for a database in the server computer device; A cache data search unit for searching for cache data having the same search condition as the search condition of the search request in the search result cache unit; and a search date and time in the searched cache data for the search request. A search request transmitting unit that transmits both to the server computer device; and a search result record group in the cache data searched by the cache data search unit for an entry of a record corresponding to the deleted record information returned from the server computer device. Cache data deleting means for deleting a search result record group returned from the server computer device and a search result record group in the cache data from which the deletion has been executed; A cache data update unit that saves the search condition of the request, a new search date and the combined search result record group as new cache data in the search result cache unit, and stores the combined search result record group in the search result record unit. Search results for search requests And a search result output means for outputting as a search result.
【請求項6】 計算機により使用されたときにそれによ
って読み出される記憶媒体であって、 前記データベースに対する検索条件と検索日時とそれら
に対応する検索結果レコード群とをキャッシュデータと
して検索結果キャッシュ装置に記憶する機能と、 前記データベースにおいて変更、追加、又は削除された
レコードの履歴をデータベース更新履歴テーブルとして
記録する機能と、 検索依頼の発行時に、前記検索結果キャッシュ装置内
で、該検索依頼の検索条件と同一の検索条件を有するキ
ャッシュデータを検索する機能と、 前記データベース更新履歴テーブルを参照することによ
り、前記検索されたキャッシュデータ中の検索日時以降
に変更又は追加された前記データベース内のレコードに
対してのみ前記検索依頼に対応する新たな検索を実行す
る機能T、 前記データベース更新履歴テーブルを参照することによ
り、前記検索されたキャッシュデータ中の検索結果レコ
ード群から、前記検索日時以降に削除された前記データ
ベース内のレコードに対応するレコードのエントリを削
除する機能と、 前記データベースから新たに検索されたレコード群と前
記削除が実行されたキャッシュデータ中の検索結果レコ
ード群とを結合する機能と、 前記検索依頼の検索条件と新たな検索日時と前記結合さ
れた検索結果レコード群とを新たなキャッシュデータと
して前記検索結果キャッシュ装置に保存し直す機能と、 前記結合された検索結果レコード群を前記検索依頼に対
する検索結果として出力する機能と、 を前記計算機に行わせるための計算機読出し可能記憶媒
体。
6. A storage medium which is read out when used by a computer, wherein a search condition for the database, a search date and time, and a search result record group corresponding thereto are stored in a search result cache device as cache data. And a function of recording the history of changed, added, or deleted records in the database as a database update history table.When a search request is issued, in the search result cache device, the search condition of the search request A function of searching for cache data having the same search condition, and by referring to the database update history table, for a record in the database changed or added after the search date and time in the searched cache data. Only new search corresponding to the search request A function T for executing a record entry corresponding to a record in the database deleted after the search date and time from a search result record group in the searched cache data by referring to the database update history table. A function of combining a group of records newly searched from the database with a group of search result records in the cache data where the deletion has been executed; a search condition of the search request, a new search date and time, A function of re-storing the combined search result record group as new cache data in the search result cache device, and a function of outputting the combined search result record group as a search result for the search request. A computer-readable storage medium to be executed by a computer.
【請求項7】 データベースを保持しクライアントコン
ピュータ装置からの検索依頼に従って該データベースに
対して検索処理を実行するサーバコンピュータ装置によ
り使用されたときにそれによって読み出される記憶媒体
であって、 前記データベースにおいて変更、追加、又は削除された
レコードの履歴をデータベース更新履歴テーブルとして
記録する機能と、 前記データベース更新履歴テーブルを参照することによ
り、前記クライアントコンピュータ装置から送信された
検索日時以降に変更又は追加された前記データベース内
のレコードに対してのみ前記クライアントコンピュータ
装置から送信された検索依頼に対応する新たな検索を実
行することにより新検索結果レコード群を取得する機能
と、 前記データベース更新履歴テーブルを参照することによ
り、前記クライアントコンピュータ装置から送信された
検索日時以降に削除された前記データベース内のレコー
ドに対応する情報を削除レコード情報として抽出する機
能と、 前記新検索結果レコード群と前記削除レコード情報とを
前記検索依頼を送信したクライアントコンピュータ装置
に返信する機能と、 を前記サーバコンピュータ装置に行わせるための計算機
読出し可能記憶媒体。
7. A storage medium which is read when used by a server computer device which holds a database and executes a search process on the database in accordance with a search request from a client computer device, wherein the storage medium is modified in the database. , A function of recording the history of the added or deleted records as a database update history table, by referring to the database update history table, changed or added after the search date and time transmitted from the client computer device A function of acquiring a new search result record group by executing a new search corresponding to the search request transmitted from the client computer device only for records in the database, and referring to the database update history table. A function for extracting information corresponding to a record in the database deleted after the search date and time transmitted from the client computer device as deleted record information, the new search result record group and the deleted record information And a function for returning the search request to the client computer device that has transmitted the search request, and a computer-readable storage medium for causing the server computer device to perform the function.
【請求項8】 データベースを保持するサーバコンピュ
ータ装置に検索依頼を発行するクライアントコンピュー
タ装置により使用されたときにそれによって読み出され
る記憶媒体であって、 前記サーバコンピュータ装置内のデータベースに対する
検索条件と検索日時とそれらに対応する検索結果レコー
ド群とをキャッシュデータとして検索結果キャッシュ装
置に保持する機能と、 前記検索依頼の発行時に、前記検索結果キャッシュ装置
内で、該検索依頼の検索条件と同一の検索条件を有する
キャッシュデータを検索する機能と、 前記検索依頼を前記検索されたキャッシュデータ中の検
索日時と共に前記サーバコンピュータ装置に送信する機
能と、 前記サーバコンピュータ装置から返信される削除レコー
ド情報に対応するレコードのエントリを、前記検索され
たキャッシュデータ中の検索結果レコード群から削除す
る機能と、 前記サーバコンピュータ装置から返信される新検索結果
レコード群と前記削除が実行されたキャッシュデータ中
の検索結果レコード群とを結合する機能と、 前記検索依頼の検索条件と新たな検索日時と前記結合さ
れた検索結果レコード群とを新たなキャッシュデータと
して前記検索結果キャッシュ装置に保存し直す機能と、 前記結合された検索結果レコード群を前記検索依頼に対
する検索結果として出力する機能と、 を前記クライアントコンピュータ装置に行わせるための
計算機読出し可能記憶媒体。
8. A storage medium which is read out when used by a client computer which issues a search request to a server computer which holds a database, comprising: a search condition and a search date and time for the database in the server computer; And a search result record group corresponding to them in a search result cache device as cache data, and, when the search request is issued, the same search condition as the search condition of the search request in the search result cache device. A function of transmitting the search request to the server computer together with the search date and time in the searched cache data; and a record corresponding to the deleted record information returned from the server computer. Entry A function of deleting from the search result record group in the searched cache data, and combining the new search result record group returned from the server computer device with the search result record group in the deleted cache data. A function of re-storing the search condition of the search request, a new search date and the combined search result record group as new cache data in the search result cache device, and a function of the combined search result record. A computer-readable storage medium for causing the client computer device to perform a function of outputting a group as a search result in response to the search request.
JP9096219A 1997-04-14 1997-04-14 Data base retrieval system provided with cache function of retrieved result Pending JPH10289135A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9096219A JPH10289135A (en) 1997-04-14 1997-04-14 Data base retrieval system provided with cache function of retrieved result

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9096219A JPH10289135A (en) 1997-04-14 1997-04-14 Data base retrieval system provided with cache function of retrieved result

Publications (1)

Publication Number Publication Date
JPH10289135A true JPH10289135A (en) 1998-10-27

Family

ID=14159135

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9096219A Pending JPH10289135A (en) 1997-04-14 1997-04-14 Data base retrieval system provided with cache function of retrieved result

Country Status (1)

Country Link
JP (1) JPH10289135A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030054110A (en) * 2001-12-24 2003-07-02 한국전자통신연구원 Method and apparatus of caching multiple Java-database connectivity
KR100774547B1 (en) 2006-02-23 2007-11-08 엔에이치엔(주) Method and system for providing search information useing search-result caching
JP2008287660A (en) * 2007-05-21 2008-11-27 Hitachi Ltd Cache server, cache management method and cache management program
JP2009175948A (en) * 2008-01-23 2009-08-06 Denso Corp Data search and display system
JP2011198113A (en) * 2010-03-19 2011-10-06 Nippon Telegr & Teleph Corp <Ntt> Document search device, method, and program
CN102279880A (en) * 2011-07-28 2011-12-14 深圳市五巨科技有限公司 Method and system for updating cache in real time
JP2016170778A (en) * 2015-03-10 2016-09-23 技研商事インターナショナル株式会社 Market area analysis system
CN106446101A (en) * 2016-09-13 2017-02-22 郑州云海信息技术有限公司 Data management system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030054110A (en) * 2001-12-24 2003-07-02 한국전자통신연구원 Method and apparatus of caching multiple Java-database connectivity
KR100774547B1 (en) 2006-02-23 2007-11-08 엔에이치엔(주) Method and system for providing search information useing search-result caching
JP2008287660A (en) * 2007-05-21 2008-11-27 Hitachi Ltd Cache server, cache management method and cache management program
JP2009175948A (en) * 2008-01-23 2009-08-06 Denso Corp Data search and display system
JP2011198113A (en) * 2010-03-19 2011-10-06 Nippon Telegr & Teleph Corp <Ntt> Document search device, method, and program
CN102279880A (en) * 2011-07-28 2011-12-14 深圳市五巨科技有限公司 Method and system for updating cache in real time
JP2016170778A (en) * 2015-03-10 2016-09-23 技研商事インターナショナル株式会社 Market area analysis system
CN106446101A (en) * 2016-09-13 2017-02-22 郑州云海信息技术有限公司 Data management system

Similar Documents

Publication Publication Date Title
US7454405B2 (en) File management program, file management process, and file management apparatus
US20090327248A1 (en) Method and apparatus for improving the integration between a search engine and one or more file servers
JP2003150594A (en) Data warehouse system
US20110145345A1 (en) Methods, systems,and computer program products for retrieving a file of machine readable data
CN111046041A (en) Data processing method and device, storage medium and processor
KR910006647B1 (en) Information searching apparatus
US20030093412A1 (en) Global recuresive and scalable database management system
JPH10289135A (en) Data base retrieval system provided with cache function of retrieved result
JPH10228477A (en) Collective retrieval system
JP2001297241A (en) System and method for on-line reservation
JP4142866B2 (en) Database synchronization apparatus and program
JPH1166099A (en) Substitute information supply device with retrieval function and information retrieval system
JPH10111821A (en) Client server system
JP2006185059A (en) Contents management apparatus
JP3212787B2 (en) Transfer data management method and data transfer method between host and terminal
JP2004152239A (en) File management apparatus, file management method and program
JPH0844609A (en) Data backup method
JPH07334406A (en) Multi-media data base system
JP3039632B2 (en) Data management method
JP2002140218A (en) Data processing method, computer-readable recording medium and data processing device
JP2687887B2 (en) Relational database management method
CN114328986A (en) Method, system, device and storage medium for accessing video and voice streaming data
JP2003177956A (en) Visual information management device for network
JP2000066933A (en) Time series data management system
JPH1173353A (en) Transaction retrieval processor based on specified time