JPH09204345A - Distributed database retrieval method - Google Patents

Distributed database retrieval method

Info

Publication number
JPH09204345A
JPH09204345A JP8011860A JP1186096A JPH09204345A JP H09204345 A JPH09204345 A JP H09204345A JP 8011860 A JP8011860 A JP 8011860A JP 1186096 A JP1186096 A JP 1186096A JP H09204345 A JPH09204345 A JP H09204345A
Authority
JP
Japan
Prior art keywords
server
cache
node
search
retrieval
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.)
Withdrawn
Application number
JP8011860A
Other languages
Japanese (ja)
Inventor
Takashi Suyama
山 隆 史 須
Minoru Yoneda
田 年 米
Hideharu Yonekura
倉 秀 春 米
Takahide Tetsu
恭 秀 鐵
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.)
Nippon Steel Corp
Original Assignee
Nippon Steel Corp
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 Nippon Steel Corp filed Critical Nippon Steel Corp
Priority to JP8011860A priority Critical patent/JPH09204345A/en
Publication of JPH09204345A publication Critical patent/JPH09204345A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To reduce time for retrieving its own node cache by controlling the hit rate of cache, retrieving server only when information does not exist when the hit rate is high, retrieve-requesting a server first and retrieving a cache within its own node next when the hit ratio is low. SOLUTION: When a past hit rate is higher than a set value, server retrieval request processing 2B requests retrieval to the server 28, and after than client retrieval processing 3B is executed. Then data presence/absence judging processing 4A judges whether its own node information exists or not, and when not existing, a retrieval is requested to the server. When the hit rate is low, server retrieval request processing 2B requests retrieval to the server 28, and then client retrieval processing 3B is executed. The server starts the retrieval of server information with the retrieval request from its own node. When information is found in the cache of its own node in the middle of retrieval, server retrieving processing is stopped.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、分散データベース
システムにおける検索処理に関し、特にキャッシュヒッ
ト率の低いときの情報検索の高速化に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to search processing in a distributed database system, and more particularly to speeding up information search when the cache hit rate is low.

【0002】[0002]

【従来の技術】従来のキャッシュを用いたデータベース
検索システムとしては、例えば特開平3−222091
号公報に開示された如く、通信量の削減とサーバ側の処
理を軽減するため、常に自ノードのキャッシュを検索
し、該当情報が存在しないときのみサーバへ検索要求を
行う方式になっている。
2. Description of the Related Art As a conventional database search system using a cache, for example, Japanese Patent Laid-Open No. 3-222091
As disclosed in the publication, in order to reduce the amount of communication and the processing on the server side, the cache of the own node is always searched, and the search request is sent to the server only when the corresponding information does not exist.

【0003】[0003]

【発明が解決しようとする課題】上記従来技術では、自
ノードのキャッシュを検索し、該当情報が存在しないと
きのみクライアントに検索要求を行うため、自ノードの
キャッシュに該当情報が存在しなかったときの、自ノー
ドのキャッシュの検索時間の無駄については全く考慮さ
れていないという問題点があった。
In the above conventional technique, since the cache of the own node is searched and the search request is made to the client only when the corresponding information does not exist, when the corresponding information does not exist in the cache of the own node. However, there is a problem in that the waste of the search time of the cache of the own node is not considered at all.

【0004】本発明では、上記の問題を解決するため、
自ノードの検索とサーバの検索を平行して実行できるよ
うにする事により、検索時間の短縮を実現する分散デー
タベースアクセス要求処理方式を提供することにある。
In the present invention, in order to solve the above problems,
An object of the present invention is to provide a distributed database access request processing method that realizes a reduction in search time by enabling the search of its own node and the search of a server to be performed in parallel.

【0005】[0005]

【課題を解決するための手段】本発明の上記目的は、自
ノードにてキャッシュのヒット率を監視し、キャッシュ
ヒット率の高いときには、従来の手法である自ノードの
キャッシュを検索し、該当情報が存在しないときのみサ
ーバに対して検索要求を行い、キャッシュヒット率の低
いときには、自ノードのキャッシュ検索より先に、サー
バに対して検索要求を行うことにより、自ノードとサー
バで平行して検索処理を行う分散データベース検索方法
によって解決される。
The above object of the present invention is to monitor the cache hit rate at the local node, and when the cache hit rate is high, search the cache of the local node, which is a conventional method, and check the relevant information. When the cache hit ratio is low, the search request is sent to the server before the cache search of the own node, so that the search is performed in parallel between the own node and the server. It is solved by a distributed database search method that performs processing.

【0006】上記により、自ノードのキャッシュヒット
率が低くなったときに、該当情報が自ノードのキャッシ
ュに存在しなかった際の自ノードキャッシュ検索時間を
短縮することが可能となる。またキャッシュのヒット率
が高いときには、通信量の削減ならびにサーバの処理軽
減が可能となる。
As described above, when the cache hit ratio of the own node becomes low, it becomes possible to shorten the own node cache search time when the relevant information is not present in the own node cache. Further, when the cache hit rate is high, it is possible to reduce the communication amount and the server processing.

【0007】[0007]

【発明の実施の形態】以下、本発明の実施例を図面を基
に詳細に説明する。図1は、本発明である分散データベ
ースの検索方法を記述したものである。まず、本実施例
の構成を図1,図2,図3に従って説明する。本実施例
は、自ノードとサーバで構成されている。 自ノード
は、図1のデータ検索処理で構成されている。データ検
索処理は、検索方法選択処理1と、サーバ検索要求処理
2A,2Bと、クライアント検索処理3A,3Bと、デ
ータ有無の判定処理4A,4Bと、サーバ検索中止処理
5と、データ受取処理6と、サーバ検索待ち処理7と、
データ返却処理8と、キャッシュ更新処理9と、キャッ
シュヒット率管理処理10で構成されている。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 describes a method for searching a distributed database according to the present invention. First, the configuration of this embodiment will be described with reference to FIGS. In this embodiment, it is composed of its own node and a server. The own node is configured by the data search process of FIG. The data search processing includes search method selection processing 1, server search request processing 2A and 2B, client search processing 3A and 3B, data presence / absence determination processing 4A and 4B, server search cancel processing 5, and data reception processing 6. And server search wait processing 7,
It is composed of a data return process 8, a cache update process 9, and a cache hit rate management process 10.

【0008】サーバは、図2のサーバ検索処理と図3の
サーバ処理中止処理で構成されている。サーバ検索処理
は、サーバ検索処理11と、データ返却処理12で構成
されている。サーバ処理中止処理は、検索中止処理13
で構成されている。
The server is composed of the server search process of FIG. 2 and the server process cancel process of FIG. The server search process includes a server search process 11 and a data return process 12. The server processing cancellation processing is the search cancellation processing 13
It is composed of

【0009】次に、上記のように構成された本実施例の
動作を図1,図2,図3を用いて説明する。クライアン
トのアプリケーションからのデータベースアクセス要求
処理によって、データ検索処理が起動される。起動され
たデータ検索処理は、検索方法選択処理1によって、キ
ャッシュヒット率管理処理10が管理している過去のキ
ャッシュヒット率が、あらかじめ設定されたヒット率よ
り高いか低いかを判断する。
Next, the operation of this embodiment configured as described above will be described with reference to FIGS. 1, 2 and 3. The data search process is activated by the database access request process from the client application. In the activated data search process, the search method selection process 1 determines whether the past cache hit ratio managed by the cache hit ratio management process 10 is higher or lower than a preset hit ratio.

【0010】過去のヒット率が設定値より高いときに
は、クライアント検索処理3Aを起動し、自ノードのキ
ャッシュを検索する。そして、データ有無判定処理4A
で自ノードに情報が存在するか否かを判定し、存在しな
いときはサーバ検索要求処理2Aによりサーバに対して
検索要求を行う。
When the hit ratio in the past is higher than the set value, the client search process 3A is activated to search the cache of the own node. Then, the data presence / absence determination process 4A
It judges whether or not the information exists in its own node, and if it does not exist, the server search request processing 2A makes a search request to the server.

【0011】過去のヒット率が設定値より低いときに
は、まずサーバ検索要求処理2Bによりサーバに対して
検索要求を行った後、クライアント検索処理3Bを行
う。
When the hit ratio in the past is lower than the set value, first, the server search request process 2B issues a search request to the server, and then the client search process 3B is performed.

【0012】サーバでは、自ノードからの検索要求によ
り、サーバの情報の検索を開始する。検索途中で、自ノ
ードのキャッシュ中に該当情報が発見されたときは、自
ノードのサーバ検索中止処理5により、サーバの検索中
止処理13を起動し、サーバでの検索処理を中止する。
[0012] The server starts a search for information in the server in response to a search request from its own node. When the relevant information is found in the cache of the own node during the search, the server search cancel process 5 of the own node activates the server search cancel process 13 to cancel the search process on the server.

【0013】検索を行った後は、自ノードのデータ受信
処理6によりデータ検索処理が情報を受け取り、データ
返却処理8を用いてクライアントのアプリケ−ションに
対して情報を返却する。
After the retrieval, the data retrieval process 6 of the own node receives the information, and the data return process 8 returns the information to the application of the client.

【0014】その後、自ノードに該当情報が存在しない
ときはキャッシュ更新処理9を用いてキャッシュを更新
する。そして、キャッシュヒット率管理処理10を用い
て今回の検索結果を踏まえたキャッシュヒット率を計算
する。
After that, when the relevant information does not exist in the own node, the cache is updated using the cache update processing 9. Then, the cache hit rate management processing 10 is used to calculate the cache hit rate based on the current search result.

【0015】[0015]

【発明の効果】以上説明したように、本発明はキャッシ
ュのヒット率を自ノード内で管理し、キャッシュのヒッ
ト率の低いときには、自ノードのキャッシュとサーバの
検索を平行して行うことにより、自ノードのキャッシュ
に情報が存在しなかった際、自ノードのキャッシュの検
索時間という無駄な時間を削減する事ができる。キャッ
シュのヒット率の高いときには、自ノードのキャッシュ
を検索し、該当情報が存在しない時のみサーバでの検索
処理を行うので、通信量の削減ならびにサーバの処理軽
減を行うことができる。
As described above, according to the present invention, the cache hit rate is managed in the own node, and when the cache hit rate is low, the cache of the own node and the search of the server are performed in parallel. When there is no information in the cache of the own node, it is possible to reduce the wasted time of searching the cache of the own node. When the cache hit rate is high, the cache of the own node is searched, and the search processing is performed by the server only when the corresponding information does not exist, so that it is possible to reduce the communication amount and the processing of the server.

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

【図1】 本発明の分散データベースの検索方法を記述
したフロ−チャ−トである。
FIG. 1 is a flowchart describing a method for searching a distributed database according to the present invention.

【図2】 図1に示す検索におけるサーバの検索処理の
内容を示すフロ−チャ−トである。と図3のサーバ処理
中止処理で構成されている。
FIG. 2 is a flowchart showing the contents of server search processing in the search shown in FIG. And the server process stop process of FIG.

【図3】 図1に示す検索におけるサーバの中止処理を
示すフロ−チャ−トである。
FIG. 3 is a flowchart showing server termination processing in the search shown in FIG.

フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06F 15/40 350B (72)発明者 鐵 恭 秀 富津市新富20−1 新日本製鐵株式会社技 術開発本部内Continuation of the front page (51) Int.Cl. 6 Identification number Office reference number FI Technical indication location G06F 15/40 350B (72) Inventor Yasuhide Kyohide 20-1 Shintomi, Futtsu City Nippon Steel Corporation Technical Development In headquarters

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 キャッシュを持つクライアントと遠隔に
あるデータベースサーバから構成される分散データベー
スシステムにおいて、サーバのデータをクライアントか
ら検索する時、キャッシュのヒット率を管理し、それが
高い時はまずキャッシュを検索し、その結果、該当情報
が存在しないときのみサーバへ検索要求を行い、キャッ
シュのヒット率が低いときには、まずサーバへ検索要求
を行い、次に自ノード内のキャッシュを検索することを
特徴とする分散データベース検索方法。
1. In a distributed database system comprising a client having a cache and a remote database server, the cache hit ratio is managed when the server data is retrieved from the client, and when the cache hit ratio is high, the cache is first opened. The feature is that a search request is made to the server only when the corresponding information does not exist as a result, and when the cache hit rate is low, the search request is made to the server first, and then the cache in the own node is searched. Distributed database search method.
【請求項2】 キャッシュを持つクライアントと遠隔に
あるデータベースサーバから構成される分散データベー
スシステムにおいて、サーバのデータをクライアントか
ら検索する時、サーバへの検索要求を行った後に自ノー
ドのキャッシユを検索し、自ノードのキャッシュに該当
情報が存在した際には、サーバの検索処理を中止する事
を特徴とする分散データベース検索方法。
2. In a distributed database system comprising a client having a cache and a remote database server, when the server data is searched from the client, the cache of its own node is searched after a search request is made to the server. A distributed database search method characterized in that when the relevant information exists in the cache of the own node, the server search process is stopped.
JP8011860A 1996-01-26 1996-01-26 Distributed database retrieval method Withdrawn JPH09204345A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8011860A JPH09204345A (en) 1996-01-26 1996-01-26 Distributed database retrieval method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8011860A JPH09204345A (en) 1996-01-26 1996-01-26 Distributed database retrieval method

Publications (1)

Publication Number Publication Date
JPH09204345A true JPH09204345A (en) 1997-08-05

Family

ID=11789492

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8011860A Withdrawn JPH09204345A (en) 1996-01-26 1996-01-26 Distributed database retrieval method

Country Status (1)

Country Link
JP (1) JPH09204345A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100303308B1 (en) * 1998-02-13 2001-09-24 윤종용 Mib(management information base)searching method using cashing
JP2002091977A (en) * 2000-09-20 2002-03-29 Kitagawa Ind Co Ltd Computer and information system
JP2004524754A (en) * 2001-03-19 2004-08-12 インターナショナル・ビジネス・マシーンズ・コーポレーション Method and apparatus for selecting cache entry

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100303308B1 (en) * 1998-02-13 2001-09-24 윤종용 Mib(management information base)searching method using cashing
JP2002091977A (en) * 2000-09-20 2002-03-29 Kitagawa Ind Co Ltd Computer and information system
JP2004524754A (en) * 2001-03-19 2004-08-12 インターナショナル・ビジネス・マシーンズ・コーポレーション Method and apparatus for selecting cache entry
US7146478B2 (en) 2001-03-19 2006-12-05 International Business Machines Corporation Cache entry selection method and apparatus

Similar Documents

Publication Publication Date Title
US9934321B2 (en) System and method of accelerating response time to inquiries regarding inventory information in a network
US11556518B2 (en) System and method for providing high availability data
US8972998B2 (en) Processing annotation requests using multithreaded constituent task and independent input/output tasks
JP3347914B2 (en) Data management device
JP4306152B2 (en) Web system with clustered application server and database structure
JP2725885B2 (en) Method and apparatus for opening file caching in a networked computer system
US6675168B2 (en) Co-presence data retrieval system
US6651050B2 (en) Co-presence data retrieval system which indicates observers of data
US5995972A (en) System and method for retrieving data
EP0374512A2 (en) Monitoring database objects
JP2003150594A (en) Data warehouse system
CN109491928A (en) Buffer control method, device, terminal and storage medium
JPH04255041A (en) Database controlling method
US7107291B2 (en) Information system and data access method
US20040044730A1 (en) Dynamic access of data
US20040111417A1 (en) Data manipulation persisting method in transaction processing system and data manipulating program for remote database
JP3290801B2 (en) Resource location detection method
JPH1021174A (en) Data transfer system
JPH09204345A (en) Distributed database retrieval method
JPH05143435A (en) Data base system
JPH07239808A (en) Distributed data managing system
US6976040B2 (en) System and method of data-management and data-management program
US6981098B2 (en) Methods and apparatus for coordinating a plurality of updates to a cache
JPH06195252A (en) Caching system
JP2000235514A (en) Method and system for retrieving information and recording medium recording information retrieval processing program

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030401