[go: up one dir, main page]

JP2000020385A - Data cache method in data retrieval system - Google Patents

Data cache method in data retrieval system

Info

Publication number
JP2000020385A
JP2000020385A JP10191252A JP19125298A JP2000020385A JP 2000020385 A JP2000020385 A JP 2000020385A JP 10191252 A JP10191252 A JP 10191252A JP 19125298 A JP19125298 A JP 19125298A JP 2000020385 A JP2000020385 A JP 2000020385A
Authority
JP
Japan
Prior art keywords
data
search
database
distributed
database server
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
JP10191252A
Other languages
Japanese (ja)
Inventor
Kazuyoshi Suzuki
一義 鈴木
Yasuhiro Shudo
恭寛 首藤
Tatsunobu Minoguchi
達伸 蓑口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP10191252A priority Critical patent/JP2000020385A/en
Publication of JP2000020385A publication Critical patent/JP2000020385A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【課題】マスタデータベースと分散キャッシュデータベ
ースをネットワークを介して持つデータ検索システムに
おいて分散キャッシュデータベースのコストを抑え、分
散拠点やクライアント数が多くなっても検索やレプリケ
ーションに要する時間への影響が少なくなるようにす
る。 【解決手段】クライアントからの検索要求データがキャ
ッシュデータベース上に存在しない時、マスタデータベ
ースは検索結果レコードを分散キャッシュデータベース
に返し、参照ビットマップテーブル上の該当ビットをO
Nにする。以後同じレコードの検索要求があった場合、
分散キャッシュデータベース上のデータを返す。マスタ
データベースを更新した場合には、参照ビットがONに
なっている分散キャッシュデータベースに対してのみデ
ータを更新する。
(57) [Summary] [Problem] To reduce the cost of a distributed cache database in a data retrieval system having a master database and a distributed cache database via a network, and to increase the time required for retrieval and replication even when the number of distributed bases and clients increases. To reduce the effects of When search request data from a client does not exist in a cache database, a master database returns a search result record to a distributed cache database, and sets a corresponding bit on a reference bitmap table to O.
Set to N. Thereafter, if there is a search request for the same record,
Returns data on the distributed cache database. When the master database is updated, the data is updated only for the distributed cache database whose reference bit is ON.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はデータの検索をコン
ピュータを利用して行うデータ検索システムに関し、特
にデータベースが1箇所にあり、検索専用クライアント
が広域に分散し多数存在している場合において、キャッ
シュデータベースを1台以上設置することで、サーバ側
のトランザクションの負荷を抑え、キャッシュデータベ
ースに関するコストを抑え、且つデータの整合性を保
ち、検索専用クライアントからの検索レスポンス時間を
短くするのに適するデータのキャッシュ方法。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data retrieval system for retrieving data using a computer, and more particularly to a data retrieval system in which a database is located at one place and a large number of clients dedicated to retrieval are widely distributed and exist. By installing one or more databases, it is possible to reduce the transaction load on the server side, reduce the cost related to the cache database, maintain data consistency, and shorten the search response time from the search-only client. Cache method.

【0002】[0002]

【従来の技術】データ検索システムにおいて、データを
キャッシュするという方法は、例えばインターネット関
連技術ではWWWブラウザがアクセスしたいWWWサイ
トのデータをキャッシュするProxyサーバに代表さ
れる方法がある。WWWブラウザからWWWサイトすな
わちWWWサーバにアクセスした場合、Proxyサー
バにそのWWWサイトのキャッシュデータが存在すれ
ば、インターネットへアクセスせずそのキャッシュデー
タをアクセス元のWWWブラウザに返す。もし、Pro
xyサーバ上にそのWWWサイトのキャッシュデータが
存在しない時は、WWWサイトにアクセスしアクセス元
のWWWブラウザにそのWWWサイトの情報を渡し、同
時に自Proxyサーバのキャッシュデータベース上に
そのWWWサイトの情報をキャッシュする。
2. Description of the Related Art In a data retrieval system, a method of caching data includes, for example, a method represented by a proxy server that caches data of a WWW site that a WWW browser wants to access in the Internet-related technology. When a WWW browser accesses a WWW site, that is, a WWW server, if cache data of the WWW site exists in the proxy server, the cache data is returned to the access source WWW browser without accessing the Internet. If Pro
When the cache data of the WWW site does not exist on the xy server, the WWW site is accessed and the information of the WWW site is passed to the access source WWW browser, and the information of the WWW site is simultaneously stored in the cache database of the own Proxy server. Cache.

【0003】また、別のデータベースキャッシュの例と
しては、特開平9−9328号公報の「モーバイルデー
タベースキャッシュ制御方式」に記載されているように
移動体通信環境において、携帯型コンピュータから無線
でホスト計算機のデータベースをアクセスする時に、所
定の無線通信セル内に1台ずつホストデータベースのデ
ータをキャッシュするモーバイルサポートサーバを配置
し、ある無線通信セル内で携帯型コンピュータから、そ
のセル内にあるモーバイルサポートサーバにデータ検索
要求を出し、検索結果を待たずに携帯型コンピュータが
移動しても、移動先の無線通信セル内にあるモーバイル
サポートサーバから検索結果をうけとれるというデータ
キャッシュ方法がある。この場合検索結果データはホス
ト計算機からすべてのモーバイルサポートサーバに送ら
れる。
As another example of a database cache, as described in "Mobile Database Cache Control System" in Japanese Patent Laid-Open No. 9-9328, a portable computer wirelessly communicates with a host computer in a mobile communication environment. A mobile support server that caches the data of the host database one by one in a predetermined wireless communication cell when accessing the database of the mobile communication server; and a mobile support server in a certain wireless communication cell from a portable computer. There is a data caching method in which even if a portable computer moves without waiting for a search result, a search result can be received from a mobile support server in a destination wireless communication cell. In this case, the search result data is sent from the host computer to all the mobile support servers.

【0004】[0004]

【発明が解決しようとする課題】前述した従来のインタ
ーネット技術におけるProxyサーバのデータキャッ
シュ方法は、WWWサイトすなわちWWWサーバ上でコ
ンテンツデータの更新が発生した場合に、Proxyサ
ーバ側のキャッシュデータは、検索専用クライアントか
らそのProxyサーバを経由して、WWWサイトにア
クセスしない限り、Proxyサーバ上のキャッシュデ
ータは更新されないという問題がある。
The proxy server data caching method in the above-mentioned conventional Internet technology is based on the problem that when content data is updated on a WWW site, that is, a WWW server, cache data on the proxy server side is searched. Unless the dedicated client accesses the WWW site via the proxy server, there is a problem that the cache data on the proxy server is not updated.

【0005】また前述の特開平9−9328号公報に記
載されている「モーバイルデータベースキャッシュ制御
方式」では、検索結果データはホスト計算機からキャッ
シュデータベースを持つ全てのモーバイルサポートサー
バに送られる。このため、モーバイルデータベースサー
バはすべての携帯型コンピュータから検索した結果デー
タを一律にキャッシュとして保持しなくてはならず、キ
ャッシュデータベースサイズが大きくなってしまうこと
や、データキャッシュ効率が悪いという問題があった。
In the "mobile database cache control system" described in the above-mentioned Japanese Patent Application Laid-Open No. 9-9328, search result data is sent from a host computer to all mobile support servers having a cache database. For this reason, the mobile database server must uniformly retain the data retrieved from all portable computers as a cache, which causes problems such as an increase in cache database size and poor data cache efficiency. Was.

【0006】本発明の目的は、分散キャッシュデータベ
ースにキャッシュされているデータとマスタデータベー
ス上のデータとの整合性を保ち、且つ各分散キャッシュ
データベースサーバ配下の検索専用クライアントからの
み要求されたデータをキャッシュすることで、データベ
ースサイズを抑えキャッシュの効率を高めることにあ
る。
An object of the present invention is to maintain consistency between data cached in a distributed cache database and data in a master database, and cache data requested only by a search-only client under each distributed cache database server. By doing so, the database size is reduced and the cache efficiency is increased.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、本発明ではまず主たるデータを格納するためのマス
タデータベースを持つマスタデータベースサーバと、そ
のマスタデータベースサーバ内に、1台以上の分散デー
タベースサーバを識別する分散データベースIDとマス
タデータベースと同一の検索キーをカラムに持ったビッ
トマップテーブルを用意する。またマスタデータベース
サーバの他にデータをキャッシュするための1台以上の
分散キャッシュデータベースサーバと、データ検索をお
こなうための1台以上の検索専用クライアントを用意す
る。これらマスタデータベースサーバと1台以上の分散
キャッシュデータベースサーバと検索専用クライアント
は互いにネットワークで結ばれており、検索専用クライ
アントは特定の分散キャッシュデータベース配下におか
れているシステムを用意する。
According to the present invention, there is provided a master database server having a master database for storing main data, and at least one distributed database server in the master database server. A bitmap table having columns having the same search key as the master database and a distributed database ID for identifying the master database is prepared. In addition to the master database server, one or more distributed cache database servers for caching data and one or more dedicated search clients for performing data search are prepared. The master database server, one or more distributed cache database servers, and the search-only client are connected to each other via a network, and the search-only client prepares a system under a specific distributed cache database.

【0008】ある検索専用クライアントを操作している
操作者Aがマスタデータベース上に存在するあるデータ
の検索を行った時、検索要求がその検索専用クライアン
トを配下に持つ分散キャッシュデータベースサーバに伝
えられ、その分散キャッシュデータベースサーバは自キ
ャッシュデータベース内に要求されたデータが存在する
か検索する。キャッシュデータベース上にデータが存在
する場合には、その検索結果を操作者Aが操作する検索
専用クライアントに渡す。これによって、操作者Aは短
時間のうちに要求したデータを参照することができる。
When an operator A operating a search-only client searches for certain data existing in the master database, a search request is transmitted to a distributed cache database server having the search-only client underneath. The distributed cache database server searches for the requested data in its own cache database. If data exists in the cache database, the search result is passed to a search-only client operated by the operator A. As a result, the operator A can refer to the requested data in a short time.

【0009】もし要求したデータがキャッシュデータベ
ース上に存在しない時には、分散キャッシュデータベー
スサーバはマスタデータベースサーバに対して検索要求
を出す。マスタデータベースサーバ側では検索結果をそ
の分散データベースサーバに返すと同時に、自サーバ内
にあるビットマップテーブル上にはそのデータを参照し
たことをしめすビットデータが登録される。検索結果を
受け取った分散キャッシュデータベースサーバ内のキャ
ッシュデータベースに登録されると共に、操作者Aが操
作する検索専用クライアントに検索結果を渡す。操作者
Aは以後同じデータを検索すると前述のようにキャッシ
ュデータが有効となるため、短時間で検索結果を得るこ
とができる。
If the requested data does not exist in the cache database, the distributed cache database server issues a search request to the master database server. On the master database server side, the search result is returned to the distributed database server, and at the same time, bit data indicating that the data has been referenced is registered in the bitmap table in the server itself. The search result is registered in the cache database in the distributed cache database server that has received the search result, and the search result is passed to the search-only client operated by the operator A. When the operator A subsequently searches for the same data, the cache data becomes valid as described above, and thus the search result can be obtained in a short time.

【0010】一方、かつて操作者Aが検索したマスタデ
ータベース上のデータを更新した場合、マスタデータベ
ースサーバは更新したレコードに該当するビットマップ
上のビットデータを参照する。そこで、更新対象データ
をかつて参照したことがある分散キャッシュデータベー
スサーバを捜し出し、参照したことのあるそれらの分散
キャッシュデータベースサーバに対し、更新したデータ
に対する更新要求を出す。更新要求を受け取った分散キ
ャッシュデータベースサーバは、キャッシュデータベー
ス上に存在する該当データを更新する。これによって、
キャッシュデータベース上のデータは常にマスタデータ
ベース上のデータと同じ最新情報が維持される。利用者
Aは同じデータを以後検索したときには更新されたデー
タを分散キャッシュデータベースサーバから入手するこ
とができる。利用者Aはそのデータが古くなっているか
どうかを全く意識することなく、短時間で最新データを
分散キャッシュデータベースサーバから入手することが
できる。また、分散データベースサーバは、その配下に
ある検索専用クライアントからのみ検索要求があったデ
ータだけをキャッシュしているため、それぞれの分散拠
点にあるキャッシュデータベースサーバは、それぞれの
拠点で最も良く検索されるデータをが自然に保持できる
こととなる。
On the other hand, if the operator A once updates the data in the master database searched, the master database server refers to the bit data on the bitmap corresponding to the updated record. Therefore, a distributed cache database server that has once referred to the data to be updated is searched for, and an update request for the updated data is issued to those distributed cache database servers that have referred to. The distributed cache database server that has received the update request updates the corresponding data existing in the cache database. by this,
The data on the cache database always keeps the same latest information as the data on the master database. user
A can obtain the updated data from the distributed cache database server when the same data is searched later. The user A can obtain the latest data from the distributed cache database server in a short time without having to be conscious of whether the data is out of date. In addition, since the distributed database server caches only data requested to be searched only from the subordinate search-dedicated clients, the cache database servers at the respective distribution bases are searched best at the respective bases. The data can be held naturally.

【0011】[0011]

【発明の実施の形態】次に本発明の実施の形態について
システム構成図とワークフロー図面を用いて詳細に説明
する。
Next, an embodiment of the present invention will be described in detail with reference to a system configuration diagram and a workflow drawing.

【0012】本発明が実現されるシステム構成図は図1
に示される。本発明でのデータキャッシュ方法の処理に
関するフローチャートは図2と図3と図4と図5に示さ
れる。
FIG. 1 is a block diagram of a system in which the present invention is realized.
Is shown in Flow charts relating to the processing of the data cache method according to the present invention are shown in FIGS. 2, 3, 4, and 5.

【0013】図1において10はマスタデータベースサ
ーバ、18と23は分散キャッシュデータベースサー
バ、27は操作者Aが利用する検索専用クライアントで
ある。
In FIG. 1, 10 is a master database server, 18 and 23 are distributed cache database servers, and 27 is a search-only client used by the operator A.

【0014】検索専用クライアントは複数描かれている
が操作者Aはどこにいてもどの検索専用クライアントを
操作してもよい。図1では分散キャッシュデータベース
サーバが2台しか示されていないが、実際には3台以上
存在していても良いことは言うまでもない。
Although a plurality of search-only clients are illustrated, the operator A may operate any search-only client anywhere. Although only two distributed cache database servers are shown in FIG. 1, it goes without saying that three or more distributed cache database servers may actually exist.

【0015】マスタデータベースサーバ10は、内部に
基本データベース管理プログラム11とマスタデータベ
ース管理プログラム12を有しマスタデータベース14
を管理する。マスタデータベースの中には検索対象とな
る主たるデータを格納するマスタテーブルと、どの分散
キャッシュデータベースサーバがマスタテーブル上のど
のレコードを参照(検索)したかを管理するビットマッ
プテーブル16を有する。マスタデータベースサーバ1
0と分散データベースサーバ18、23は低速ネットワ
ークで結ばれており、互いに遠隔地に位置している。
The master database server 10 has therein a basic database management program 11 and a master database management program 12 and has a master database 14
Manage. The master database has a master table for storing main data to be searched, and a bitmap table 16 for managing which distributed cache database server refers to (searches) which record in the master table. Master database server 1
0 and the distributed database servers 18 and 23 are connected by a low-speed network, and are located far from each other.

【0016】マスタデータベースサーバ配下にはLAN
に代表される高速ネットワークを介して検索、更新用ク
ライアント28が接続されている。検索、更新用クライ
アントはマスタデータベースのデータの検索だけでな
く、データの更新、データの追加を行うことができる権
限を有している。
A LAN under the master database server
And a search / update client 28 is connected via a high-speed network represented by the following. The search and update client has authority not only to search for data in the master database, but also to update and add data.

【0017】尚、低速ネットワークとは公衆電話回線、
アナログ専用線、デジタル専用線、ISDN、インター
ネットに代表されるネットワークをいう。
The low-speed network is a public telephone line,
This refers to networks typified by analog leased lines, digital leased lines, ISDN, and the Internet.

【0018】第1番目の分散キャッシュデータベースサ
ーバ18は内部に基本データベース管理プログラム19
と、分散データベース管理プログラム20を有し分散キ
ャッシュデータベース21を管理する。分散キャッシュ
データベースの中には、マスタテーブルと同じフォーマ
ットのキャッシュテーブル22を有する。第n番目の分
散キャッシュデータベースサーバも第1番目と同じく、
内部に第n番目の分散キャッシュデータベースサーバを
有していることは言うまでもない。また第n番目の分散
キャッシュデータベースサーバも、基本データベース管
理プログラムと、分散データベース管理プログラムによ
り分散キャッシュデータベース24を管理する。
The first distributed cache database server 18 has a basic database management program 19 therein.
And a distributed database management program 20 for managing the distributed cache database 21. The distributed cache database has a cache table 22 having the same format as the master table. The n-th distributed cache database server is the same as the first,
Needless to say, it has the n-th distributed cache database server inside. The n-th distributed cache database server also manages the distributed cache database 24 using the basic database management program and the distributed database management program.

【0019】分散キャッシュデータベースの中には、マ
スタテーブルと同じフォーマットのキャッシュテーブル
25を有する。それぞれの分散キャッシュデータベース
サーバの構造は格納されているデータ内容を除いて、全
て等しい。分散データベースサーバ18,23の配下に
は、LANに代表される高速ネットワーク26を介し、
検索専用クライアントと接続されている。検索専用クラ
イアントは専らデータの検索を行う権限のみ有してお
り、マスタデータベース上のデータに対しても、分散キ
ャッシュデータベース上のデータに対しても、データの
更新とデータの追加を行う権限を持たない。
The distributed cache database has a cache table 25 having the same format as the master table. The structure of each distributed cache database server is the same except for the stored data contents. Under the control of the distributed database servers 18 and 23, via a high-speed network 26 represented by a LAN,
Connected to a search-only client. The search-only client has only the authority to search for data, and has the authority to update and add data to data on the master database and data on the distributed cache database. Absent.

【0020】検索専用クライアントを操作する操作者A
は検索専用クライアントから分散キャッシュベースサー
バに対してデータ検索を行う。
Operator A operating a search-only client
Performs a data search from the search-only client to the distributed cache-based server.

【0021】次に本発明の方法の具体的な処理の流れを
図2、図3、図4のフローチャートに従い説明する。
Next, a specific processing flow of the method of the present invention will be described with reference to the flowcharts of FIGS. 2, 3 and 4.

【0022】図2のフローチャートは図1におけるデー
タ検索処理の手順の流れを示している。
The flowchart of FIG. 2 shows the flow of the procedure of the data search process in FIG.

【0023】図2において特定の分散キャッシュデータ
ベース配下にある検索専用クライアントから、検索者A
が分散データベースサーバに対して検索要求を出す(ス
テップ30)。
In FIG. 2, a searcher A from a search-only client under a specific distributed cache database
Issues a search request to the distributed database server (step 30).

【0024】検索要求を受けた分散キャッシュデータベ
ースサーバは自サーバ上のキャッシュデータベースを検
索する(ステップ31)。
The distributed cache database server having received the search request searches the cache database on its own server (step 31).

【0025】もし分散キャッシュデータベース上にデー
タが存在する場合は、検索専用クライアントが要求した
検索結果データを検索専用クライアントに返す(ステッ
プ33)。
If data exists in the distributed cache database, the search result data requested by the search client is returned to the search client (step 33).

【0026】検索専用クライアントはその検索結果デー
タを受け取り検索結果データを画面に表示する(ステッ
プ34)。
The search-only client receives the search result data and displays the search result data on the screen (step 34).

【0027】分散キャッシュデータベースで検索した結
果もし検索専用クライアントが求めるデータが存在しな
かった場合には(ステップ32)、分散キャッシュデータ
ベースサーバはマスタデータベースサーバに対して、自
サーバのIDを通知するとともに検索要求を出す(ステ
ップ35)。
As a result of searching in the distributed cache database, if there is no data required by the search-only client (step 32), the distributed cache database server notifies the master database server of its own server ID and A search request is issued (step 35).

【0028】分散キャッシュデータベースサーバから検
索要求を受け取ったマスタデータベースサーバは自サー
バ上のマスターデータベースを検索し(ステップ3
7)、データが存在した場合には、ビットマップテーブ
ル上にある検索結果データと検索キーで対応しているレ
コードと分散キャッシュデータベースのIDに相当する
カラムとが交差するところのビットマップデータの値を
非参照から参照に更新する。図2のフローチャートにお
いて、非参照をあらわすビットの値は“0”、参照をあ
らわすビットの値は“1”とし、ビットの値を0から1
に更新している(ステップ38)が、仮に、非参照をあ
らわすビットの値を“1”とし参照をあらわすビットの
値を“0”と、元々逆に定義していても良いことは言う
までもない。
The master database server receiving the search request from the distributed cache database server searches the master database on its own server (step 3).
7) If the data exists, the value of the bitmap data at the intersection of the record corresponding to the search result data and the search key on the bitmap table with the column corresponding to the ID of the distributed cache database Update from non-reference to reference. In the flowchart of FIG. 2, the value of a bit representing a non-reference is “0”, the value of a bit representing a reference is “1”, and the value of a bit is 0 to 1
(Step 38), needless to say, the bit value representing a non-reference may be defined as "1" and the value of a bit representing a reference may be defined as "0", which is originally reversed. .

【0029】マスタデータベースから検索した結果デー
タは要求元の分散キャッシュデータベースサーバに返す
(ステップ40)。
The result data retrieved from the master database is returned to the requesting distributed cache database server.
(Step 40).

【0030】もしマスタデータベースにもデータが存在
していない場合は(ステップ37)、要求したデータが存
在していないことを分散キャッシュデータベースサーバ
に通知し、分散キャッシュデータベースサーバもデータ
が存在していなかったことを検索要求元の検索専用クラ
イアントに通知する(ステップ33)。
If no data exists in the master database (step 37), the fact that the requested data does not exist is notified to the distributed cache database server, and no data exists in the distributed cache database server. Is notified to the search-request-originating client (step 33).

【0031】検索した結果マスタデータベースにデータ
が存在し、検索マスタデータベースサーバから検索結果
を受け取った要求元の分散キャッシュデータベースサー
バは、自キャッシュデータベースが満杯になっていない
かを確認する(ステップ40)。
As a result of the search, data is present in the master database, and the requesting distributed cache database server receiving the search result from the search master database server checks whether its own cache database is full (step 40). .

【0032】自キャッシュデータベースが満杯でなけれ
ば、検索結果のデータを自キャッシュデータベースサー
バのキャッシュデータベースに格納し(ステップ4
1)、そのデータを検索要求元の検索専用クライアント
に返す(ステップ33)。
If the own cache database is not full, the search result data is stored in the cache database of the own cache database server (step 4).
1), the data is returned to the search-dedicated search-requesting client (step 33).

【0033】検索結果を受け取った検索専用クライアン
トはその検索結果を表示し、検索者Aは検索結果を得
る。
The search-only client that has received the search result displays the search result, and searcher A obtains the search result.

【0034】もし図2のステップ40で分散データベー
スサーバのキャッシュデータベースが満杯であった場合
には、図4に示されるフローチャートの処理に処理が移
る。
If the cache database of the distributed database server is full at step 40 in FIG. 2, the processing shifts to the processing of the flowchart shown in FIG.

【0035】図4において、分散キャッシュデータベー
スサーバでは自キャッシュデータベース上に格納されて
いるデータについて、マスタデータベースサーバから受
け取った検索結果データを格納するために、どのデータ
を削除するかを選定する(ステップ61)。
In FIG. 4, the distributed cache database server selects which data to delete in order to store the search result data received from the master database server for the data stored in its own cache database (step). 61).

【0036】ここで削除する対象のデータを選定する方
法は特に規定しない。例えば、LRU(Least R
ecently Used)やFIFO(First−
In−First−Out)などのアルゴリズムを用い
ても良い。
Here, the method of selecting the data to be deleted is not particularly defined. For example, LRU (Least R
cently Used) and FIFO (First-
An algorithm such as (In-First-Out) may be used.

【0037】次にステップ61で選定した自キャッシュ
データベースサーバ上の削除対象データを削除する(ス
テップ62)。
Next, the data to be deleted on the own cache database server selected in step 61 is deleted (step 62).

【0038】データを削除したら削除したデータの検索
キー情報と自サーバのID情報ををマスタデータベース
サーバに通知する(ステップ63)。
After the data is deleted, the master database server is notified of the search key information of the deleted data and the ID information of its own server (step 63).

【0039】通知を受け取ったマスタデータベースサー
バでは、通知元の分散キャッシュデーターベースサーバ
のサーバID情報と、通知元の分散キャッシュデーター
ベースサーバの削除対象データの検索キー情報に該当す
るビットマップテーブル上のビットマップデータの格納
場所を求める(ステップ64)。
In the master database server that has received the notification, the server ID information of the distributed cache database server of the notification source and the bitmap table corresponding to the retrieval key information of the deletion target data of the distributed cache database server of the notification source are stored in the master database server. The storage location of the bitmap data is determined (step 64).

【0040】求めた場所のビットデータの値を「参照」
を示す“1”から「非参照」を示す“0”に更新する
(ステップ64)。
The value of the bit data at the obtained location is referred to.
Is updated from "1" indicating "" to "0" indicating "non-reference" (step 64).

【0041】一方、ステップ62で一部のデータを削除
した分散キャッシュデータベースサーバでは、図2にお
けるステップ36からステップ39までの処理でマスタ
データベースサーバが検索してきたデータを散キャッシ
ュデータベースサーバのキャッシュデータベースの空き
領域に格納する(ステップ41)。
On the other hand, in the distributed cache database server in which some data has been deleted in step 62, the data retrieved by the master database server in the processing from step 36 to step 39 in FIG. It is stored in a free area (step 41).

【0042】この後は図2におけるステップ33、ステ
ップ34に従い検索結果を検索元の検索専用クライアン
トに表示する。
Thereafter, in accordance with steps 33 and 34 in FIG. 2, the search result is displayed on the search-only search-only client.

【0043】マスタデータベース上のデータを更新する
時の処理のフローチャートは図3に示される。以下にマ
スタデータベース上のデータを更新する時の処理を図3
のフローチャートに従って記述する。
FIG. 3 is a flowchart of a process for updating data on the master database. The process when updating data on the master database is shown in Fig. 3 below.
It is described according to the flowchart of FIG.

【0044】マスタデータベースサーバ配下にある検
索、更新用クライアントを操作する操作者Bが、検索、
更新用クライアントからマスタデータベースサーバに対
して特定のデータの更新要求を出す(ステップ50)。
An operator B operating a search / update client under the master database server receives a search,
The update client issues a request for updating specific data to the master database server (step 50).

【0045】更新要求を受けたマスタデータベースサー
バは、マスタデータベース上にある更新対象データを更
新する(ステップ51)。
The master database server that has received the update request updates the data to be updated in the master database (step 51).

【0046】次にマスタデータベースサーバは更新した
レコードに対応したビットマップテーブル上のレコード
を参照し、更新したデータレコードを過去に参照したこ
とのある分散キャッシュデータベースサーバを求め、過
去に参照したことのある分散キャッシュデータベースサ
ーバに対してキャッシュデータベースのデータ更新要求
を行う(ステップ53,54,55,56,57,5
8,59)。
Next, the master database server refers to the record on the bitmap table corresponding to the updated record, finds a distributed cache database server that has referred to the updated data record in the past, A cache database data update request is issued to a certain distributed cache database server (steps 53, 54, 55, 56, 57, and 5).
8, 59).

【0047】即ち、マスタデータベースサーバは更新し
たレコードに対応した、ビットマップテーブル上のレコ
ードを検索し(ステップ53)、すべての分散データベー
スに対して参照した履歴を調べるため、分散キャッシュ
データベースサーバの数をカウントする変数Iに初期値
の1を代入する(ステップ53)。
That is, the master database server searches for a record on the bitmap table corresponding to the updated record (step 53), and examines the histories referred to all the distributed databases. Is substituted for an initial value of 1 into a variable I for counting (step 53).

【0048】マスタデータベースサーバに属する分散キ
ャッシュデータベースサーバの全体の数を変数Nに代入
する(ステップ54)。
The total number of distributed cache database servers belonging to the master database server is substituted into a variable N (step 54).

【0049】参照履歴を調べる必要のある分散キャッシ
ュデータベースサーバの数が全体数を超えたかを判定す
る(ステップ55)。
It is determined whether the number of distributed cache database servers for which reference history needs to be checked has exceeded the total number (step 55).

【0050】もし全体数を超えた場合、即ちに参照履歴
を調べる必要のある分散データベースサーバがなくなっ
た時はマスタデータベースサーバのマスタデータベース
更新処理は終了する。
If the number exceeds the total number, that is, if there are no more distributed database servers for which the reference history needs to be checked, the master database server master database update process ends.

【0051】もし参照履歴を調べる必要のある分散キャ
ッシュデータベースサーバが残っている場合には、その
分散キャッシュデータベースサーバに対応するマスタ参
照ビットを調べる(ステップ56)。
If there is a distributed cache database server whose reference history needs to be checked, the master reference bit corresponding to the distributed cache database server is checked (step 56).

【0052】もし分散キャッシュデータベースサーバが
マスタデータベースサーバで更新したレコードを過去に
参照したことがある場合には(ステップ57)、その分散
キャッシュデータベースサーバに対してキャッシュデー
タベースの更新要求を出す(ステップ58)。
If the distributed cache database server has previously referred to the record updated by the master database server (step 57), it issues a cache database update request to the distributed cache database server (step 58). ).

【0053】更新要求を受けたキャッシュデータベース
サーバは、マスタデータベース側で更新したレコードに
該当するデータキャッシュテーブル上のレコードをマス
タデータベース側で更新した内容と同じ値に更新する。
(ステップ60)。
Upon receiving the update request, the cache database server updates the record on the data cache table corresponding to the record updated on the master database side to the same value as the content updated on the master database side.
(Step 60).

【0054】マスタデータベースサーバは、分散キャッ
シュデータベースサーバに対してキャッシュデータベー
スの更新要求を出した後、分散キャッシュデータベース
サーバの数をカウントする変数Iの値をインクリメント
し(ステップ59)、次の分散キャッシュデータベース
サーバに対して、参照したことがあるかを同様に調べ、
すべての分散キャッシュデータベースサーバに対して、
調べ終わるまでステップ55からステップ59までの処
理を繰り返す。
After issuing a cache database update request to the distributed cache database server, the master database server increments the value of a variable I for counting the number of distributed cache database servers (step 59), and then proceeds to the next distributed cache database server. Check the database server in the same way to see if you
For all distributed cache database servers,
The processing from step 55 to step 59 is repeated until the check is completed.

【0055】マスタデータベース上のデータを追加する
時の処理のフローチャートは図5に示される。以下にマ
スタデータベース上のデータを更新する時の処理を図5
のフローチャートに従って記述する。
FIG. 5 is a flowchart of a process for adding data on the master database. The process when updating data on the master database is shown in FIG.
It is described according to the flowchart of FIG.

【0056】マスタデータベースサーバ配下にある検
索、更新用クライアントを操作する操作者Bが、検索、
更新用クライアントからマスタデータベースサーバに対
して特定のデータの追加要求を出す(ステップ70)。
An operator B operating a search / update client under the master database server receives a search,
The update client issues a request for adding specific data to the master database server (step 70).

【0057】データの追加要求を受けたマスタデータベ
ースサーバは、マスタデータベース上新規にレコードを
追加しユニークな検索キーをその追加したレコードに対
して付加する(ステップ71)。
The master database server that has received the data addition request adds a new record on the master database and adds a unique search key to the added record (step 71).

【0058】マスタデータベースサーバ内のビットマッ
プテーブル上に、マスタデータベースに追加された新規
データの検索キーに対応したレコードを新規に作成する
(ステップ72)。
A record corresponding to the search key of the new data added to the master database is newly created on the bitmap table in the master database server.
(Step 72).

【0059】マスタデータベースサーバのビットマップ
テーブル上の新規レコード内のすべてのビットデータ値
を「非参照」に初期化する(ステップ73)。
All bit data values in the new record on the bit map table of the master database server are initialized to "non-reference" (step 73).

【0060】以上述べた処理により、マスタデータベー
ス上のデータと分散しているキャッシュデータベース上
のキャッシュデータベースのデータとの間では、データ
の整合性を維持することができる。各分散キャッシュデ
ータベースサーバでは各分散キャッシュデータベースサ
ーバのキャッシュデータベースのサイズを一定に維持す
ることができる。
By the processing described above, data consistency between the data on the master database and the data on the cache databases on the distributed cache databases can be maintained. In each distributed cache database server, the size of the cache database of each distributed cache database server can be kept constant.

【0061】[0061]

【発明の効果】本発明により、例えばデータベースを1
箇所で集中管理し、検索クライアントが遠隔地に多数存
在する場合にその間を結ぶネットワークの通信速度に起
因する検索レスポンス時間や広域ネットワークの利用コ
ストが問題となってくるが、本発明のように遠隔地にあ
る検索クライアントを分散キャッシュデータベースサー
バ配下にLAN等の高速ネットワークで結び、データベ
ースのデータをキャッシングすることで、検索平均レス
ポンス時間を短縮することができる。
According to the present invention, for example, one database
When a large number of search clients are located in remote locations, search response time and the cost of using a wide area network due to the communication speed of the network connecting them are problematic. By connecting a local search client to a distributed cache database server under a high-speed network such as a LAN and caching the data in the database, the average search response time can be reduced.

【0062】また、先に述べたキャッシュ方法により、
1箇所でデータを集中管理するマスタデータベース上の
データと分散拠点に位置するキャッシュデータベース上
のデータとの整合性を常に維持することができ、検索者
は自分が検索したデータが古いものであるかどうか心配
をする必要がない。更に、キャッシュデータベースのデ
ータ容量を一定サイズに維持することができ、キャッシ
ュデータベースサーバのハードウエア資源コストも抑え
ることができる。
Further, according to the cache method described above,
The consistency between the data on the master database that centrally manages the data at one location and the data on the cache database located at the distributed base can always be maintained, and the searcher can check whether the data searched by the user is old. No need to worry. Further, the data capacity of the cache database can be maintained at a constant size, and the hardware resource cost of the cache database server can be reduced.

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

【図1】本発明の実施の形態を示すデータ検索システム
構成図。
FIG. 1 is a configuration diagram of a data search system according to an embodiment of the present invention.

【図2】図1におけるデータ検索処理の手順を示すフロ
ーチャート。
FIG. 2 is a flowchart showing a procedure of a data search process in FIG. 1;

【図3】図1におけるデータ更新処理の手順を示すフロ
ーチャート。
FIG. 3 is a flowchart showing a procedure of a data update process in FIG. 1;

【図4】図1におけるキャッシュデータベースのデータ
サイズを保つためキャッシュデータ削除の手順を示すフ
ローチャート。
FIG. 4 is a flowchart showing a procedure for deleting cache data in order to keep the data size of the cache database in FIG. 1;

【図5】図1におけるデータ新規追加処理の手順を示す
フローチャート。
FIG. 5 is a flowchart showing a procedure of a new data addition process in FIG. 1;

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

10…マスタデータベースサーバ、11…基本データベ
ース管理プログラム、12…マスタデータベース管理プ
ログラム、 13…テーブル間リンク、14…マスタ
データベース、 15…マスタテーブル、16…ビ
ットマップテーブル、 17…低速ネットワーク、1
8…第1番目の分散キャッシュデータベースサーバ、1
9…基本データベース管理プログラム、20…分散デー
タベース管理プログラム、21…第1番目の分散キャッ
シュデータベース、22…第1番目の分散キャッシュデ
ータベースサーバ上のキャッシュテーブル、23…第n
番目の分散データベースサーバ、24…第n番目の分散
キャッシュデータベース、25…第n番目の分散キャッ
シュデータベースサーバ上のキャッシュテーブル、26
…高速ネットワーク、 27…検索専用クライアント、
28…検索、更新用クライアント。
DESCRIPTION OF SYMBOLS 10 ... Master database server, 11 ... Basic database management program, 12 ... Master database management program, 13 ... Link between tables, 14 ... Master database, 15 ... Master table, 16 ... Bitmap table, 17 ... Low speed network, 1
8 1st distributed cache database server, 1
9 ... Basic database management program, 20 ... Distributed database management program, 21 ... First distributed cache database, 22 ... Cache table on first distributed cache database server, 23 ... Nth
The 24th distributed database server, 24... The nth distributed cache database, 25... The cache table on the nth distributed cache database server, 26
… High-speed network, 27… Search only client,
28 Client for searching and updating.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 蓑口 達伸 神奈川県川崎市幸区鹿島田890番地 株式 会社日立製作所情報システム事業部内 Fターム(参考) 5B075 KK04 KK07 KK12 KK33 NK02 NK44 PR08 5B082 EA07 FA12 GA14 GC04 HA02 HA03 HA08  ────────────────────────────────────────────────── ─── Continuing from the front page (72) Inventor Tatsunobu Minoguchi 890 Kashimada, Saiwai-ku, Kawasaki-shi, Kanagawa F-term in Information Systems Division, Hitachi, Ltd. 5B075 KK04 KK07 KK12 KK33 NK02 NK44 PR08 5B082 EA07 FA12 GA14 GC04 HA02 HA03 HA08

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】主たるデータを格納するマスタデータベー
スを内部に持つ1台のマスタデータベースサーバと、マ
スタデータベース上のデータをキャッシュしておくキャ
ッシュデータベースを内部に持つ1台以上の分散キャッ
シュデータべースサーバと、データを検索する1台以上
の検索専用クライアントがあり、マスタデータベースサ
ーバと1台以上の分散キャッシュデータベースサーバ間
がネットワークで接続されており、1台以上の各分散キ
ャッシュデータベースサーバと1台以上の検索専用クラ
イアント間がネットワークで接続されているデータ検索
システムにおいて、 マスタデータベースサーバ上の主たるデータを格納して
いるテーブルと、 1台以上の分散データベースサーバを識別する分散デー
タベースIDをカラムに持つ、マスタデータベース上の
テーブルの各レコードIDを検索キーとしたビットマッ
プテーブルを持ち、そのビットマップテーブルとマスタ
データベース上のテーブルとが検索キーで1対1に対応
付けられており、 分散データベースサーバからマスタデータベースサーバ
に検索要求があった場合には、マスタデータベースサー
バは分散データベースサーバに検索結果を渡し、検索要
求元分散キャッシュデータベースIDと検索結果の検索
キーに対応したビットマップテーブル上の該当ビットを
更新し、特定の分散データベースサーバからの参照記録
として保持し、 後にマスタデータベース上のデータを更新した時にマス
タデータベースサーバはそのビットマップテーブルを参
照し参照したことのある分散キャッシュデータベースに
対して更新を実施することと、 検索専用クライアントからデータの検索要求があった時
にマスタデータベースに検索する前に、その検索専用ク
ライアントの上位に位置する分散キャッシュデータベー
スサーバ上のキャッシュデータベースを検索し、検索専
用クライアントが要求したデータが存在すれば、検索専
用クライアントに検索結果を渡し、検索専用クライアン
トが要求したデータが存在しなければ、マスタデータべ
ースを検索し、検索結果を検索専用クライアントに渡
し、同時にその検索専用クライアントが要求したデータ
を自分散キャッシュデータベースサーバ上のキャッシュ
データベースに格納しておくことを特徴とするデータの
キャッシュ方法。
1. A master database server having a master database for storing main data therein, and one or more distributed cache database servers having a cache database for caching data on the master database. There is one or more search-only clients for searching data, a master database server and one or more distributed cache database servers are connected by a network, and one or more distributed cache database servers and one or more distributed cache database servers. In a data search system in which search-dedicated clients are connected via a network, in a column having a table storing main data on a master database server and a distributed database ID for identifying one or more distributed database servers in columns. A bitmap table using each record ID of a table on the master database as a search key, and the bitmap table and the table on the master database are associated one-to-one with a search key. When a search request is issued to the database server, the master database server passes the search result to the distributed database server, and updates the corresponding bit on the bitmap table corresponding to the search request source distributed cache database ID and the search key of the search result. The master database server keeps a reference record from a specific distributed database server, and when the data in the master database is updated later, the master database server refers to the bitmap table and updates the distributed cache database that has been referenced. Before searching the master database when a data search request is issued from a search-only client, the search-only client searches the cache database on the distributed cache database server that is higher than the search-only client. If the searched data exists, the search result is passed to the search client, and if the data requested by the search client does not exist, the master database is searched, and the search result is passed to the search client, and the search is performed at the same time. A data caching method characterized by storing data requested by a dedicated client in a cache database on a self-distributed cache database server.
JP10191252A 1998-07-07 1998-07-07 Data cache method in data retrieval system Pending JP2000020385A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10191252A JP2000020385A (en) 1998-07-07 1998-07-07 Data cache method in data retrieval system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10191252A JP2000020385A (en) 1998-07-07 1998-07-07 Data cache method in data retrieval system

Publications (1)

Publication Number Publication Date
JP2000020385A true JP2000020385A (en) 2000-01-21

Family

ID=16271450

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10191252A Pending JP2000020385A (en) 1998-07-07 1998-07-07 Data cache method in data retrieval system

Country Status (1)

Country Link
JP (1) JP2000020385A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001265639A (en) * 2000-03-23 2001-09-28 Mitsubishi Electric Corp Data management system
JP2001290787A (en) * 2000-04-10 2001-10-19 Ntt Communications Kk Data distribution method and storage medium storing data distribution program
JP2002032261A (en) * 2000-07-14 2002-01-31 Nec Corp Intellectual cache of web content to be dynamically created and statistic, system and method for refresh
JP2004280813A (en) * 2003-03-03 2004-10-07 Fisher Rosemount Syst Inc Access method of distributed data and device for process control system
JP2005339236A (en) * 2004-05-27 2005-12-08 Hitachi Ltd Database management method and database system
JP2011159326A (en) * 2000-07-07 2011-08-18 Fitech Lab Inc Method and system for providing highly scalable synchronous data cache
JP2012514246A (en) * 2008-12-31 2012-06-21 ノキア コーポレイション Method, apparatus, and computer program product for polynomial-based data conversion and utilization
JP2013003637A (en) * 2011-06-13 2013-01-07 Nippon Telegr & Teleph Corp <Ntt> Database system and control method
JP2015167034A (en) * 2010-12-30 2015-09-24 フェイスブック,インク. Distribution cache for graph data
JP2015185086A (en) * 2014-03-26 2015-10-22 日本電気株式会社 Cache update control device, cache update control system, cache update control method, and cache update control program
JP2016539417A (en) * 2013-12-06 2016-12-15 華為技術有限公司Huawei Technologies Co.,Ltd. Column-oriented database processing method and processing device
CN111639095A (en) * 2020-05-27 2020-09-08 中信银行股份有限公司 Data table query method, device and storage medium
CN111831716A (en) * 2020-06-17 2020-10-27 西安电子科技大学 Data caching and retrieval method, system, medium, computer equipment, and terminal
CN115185991A (en) * 2022-07-06 2022-10-14 京东科技控股股份有限公司 Data processing method and device

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001265639A (en) * 2000-03-23 2001-09-28 Mitsubishi Electric Corp Data management system
JP2001290787A (en) * 2000-04-10 2001-10-19 Ntt Communications Kk Data distribution method and storage medium storing data distribution program
JP2011159326A (en) * 2000-07-07 2011-08-18 Fitech Lab Inc Method and system for providing highly scalable synchronous data cache
JP2002032261A (en) * 2000-07-14 2002-01-31 Nec Corp Intellectual cache of web content to be dynamically created and statistic, system and method for refresh
JP2004280813A (en) * 2003-03-03 2004-10-07 Fisher Rosemount Syst Inc Access method of distributed data and device for process control system
US7809679B2 (en) 2003-03-03 2010-10-05 Fisher-Rosemount Systems, Inc. Distributed data access methods and apparatus for process control systems
JP2005339236A (en) * 2004-05-27 2005-12-08 Hitachi Ltd Database management method and database system
JP2012514246A (en) * 2008-12-31 2012-06-21 ノキア コーポレイション Method, apparatus, and computer program product for polynomial-based data conversion and utilization
JP6062101B1 (en) * 2010-12-30 2017-01-18 フェイスブック,インク. Distributed cache of graph data
JP2015167034A (en) * 2010-12-30 2015-09-24 フェイスブック,インク. Distribution cache for graph data
JP2018133100A (en) * 2010-12-30 2018-08-23 フェイスブック,インク. Distributed cache for graph data
JP2013003637A (en) * 2011-06-13 2013-01-07 Nippon Telegr & Teleph Corp <Ntt> Database system and control method
JP2016539417A (en) * 2013-12-06 2016-12-15 華為技術有限公司Huawei Technologies Co.,Ltd. Column-oriented database processing method and processing device
US10303691B2 (en) 2013-12-06 2019-05-28 Huawei Technologies Co., Ltd. Column-oriented database processing method and processing device
JP2015185086A (en) * 2014-03-26 2015-10-22 日本電気株式会社 Cache update control device, cache update control system, cache update control method, and cache update control program
CN111639095A (en) * 2020-05-27 2020-09-08 中信银行股份有限公司 Data table query method, device and storage medium
CN111639095B (en) * 2020-05-27 2023-03-31 中信银行股份有限公司 Data table query method, device and storage medium
CN111831716A (en) * 2020-06-17 2020-10-27 西安电子科技大学 Data caching and retrieval method, system, medium, computer equipment, and terminal
CN115185991A (en) * 2022-07-06 2022-10-14 京东科技控股股份有限公司 Data processing method and device

Similar Documents

Publication Publication Date Title
US6330606B1 (en) Method and apparatus for dispatching document requests in a proxy
CN100511220C (en) method and system for maintaining data in distributed cache
US6915307B1 (en) High performance object cache
US6289358B1 (en) Delivering alternate versions of objects from an object cache
US6292880B1 (en) Alias-free content-indexed object cache
US6209003B1 (en) Garbage collection in an object cache
AU754816B2 (en) High performance object cache
US6820085B2 (en) Web system having clustered application servers and clustered databases
US6763347B1 (en) Indexing management for hierarchical main memory
US6389460B1 (en) Method and apparatus for efficient storage and retrieval of objects in and from an object storage device
US6128627A (en) Consistent data storage in an object cache
US7552223B1 (en) Apparatus and method for data consistency in a proxy cache
US6343350B1 (en) Conserving storage space by means of low resolution objects
US6061686A (en) Updating a copy of a remote document stored in a local computer system
US8407256B2 (en) Arrangement for a distributed file system having data objects mapped independent of any data object attribute
US6370620B1 (en) Web object caching and apparatus for performing the same
JP2000020385A (en) Data cache method in data retrieval system
JP2004530216A (en) Integration of tablespaces of different block sizes
US6363375B1 (en) Classification tree based information retrieval scheme
JPH1091638A (en) Search system
CN109656956B (en) Method and device for realizing centralized caching of service system data
JP2002542542A (en) Web server with dynamic cache that can be queried
US6748383B1 (en) Geographic information indicator, method for displaying geographic information and storage medium for storing program for executing the same
JP2001522074A (en) Communication system and method
WO2014161261A1 (en) Data storage method and apparatus