JP2007094884A - Data search method and system - Google Patents

Data search method and system Download PDF

Info

Publication number
JP2007094884A
JP2007094884A JP2005285252A JP2005285252A JP2007094884A JP 2007094884 A JP2007094884 A JP 2007094884A JP 2005285252 A JP2005285252 A JP 2005285252A JP 2005285252 A JP2005285252 A JP 2005285252A JP 2007094884 A JP2007094884 A JP 2007094884A
Authority
JP
Japan
Prior art keywords
inquiry
search result
database
query
sentence
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
JP2005285252A
Other languages
Japanese (ja)
Inventor
Seiji Mabuchi
誠司 馬渕
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.)
Toshiba Corp
Toshiba Digital Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Solutions 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 Toshiba Corp, Toshiba Solutions Corp filed Critical Toshiba Corp
Priority to JP2005285252A priority Critical patent/JP2007094884A/en
Publication of JP2007094884A publication Critical patent/JP2007094884A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a system, which records and stores a query sentence to a database and a search result to the query in a request source, compares a new query with the data, and retrieves the stored search result when correspondence is obtained, for reducing a processing period. <P>SOLUTION: In this data search method for sending a query sentence to the database 23 and acquiring a search result corresponding to the query sentence from the database 23, the query sentence and the search result acquiring according to the query sentence are stored in a data storage cache 14. When a new query sentence is inputted, an inquiry means 12 refers to the cache 14 for determining whether a query sentence stored in the past and having the meaning equal to that of the new query sentence and a search result corresponding to the query sentence in the past are stored in the cache 14. When such query sentence and search result are stored, the stored search result is retrieved to be offered to a query source 16. If such a query result is not stored, the query sentence is sent to the database 23 to request a search result. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、データベースに対して問い合せ文を送り、この問い合せ文に対応する検索結果をデータベースから入手するデータ検索方法及びデータ検索システムに関する。   The present invention relates to a data search method and a data search system for sending an inquiry sentence to a database and obtaining a search result corresponding to the inquiry sentence from the database.

一般に、プログラムに関する処理を行う場合、例えば、プログラムで使用されているコード番号が何を表すのかを確認する場合がある。このような場合、各コード番号が何を表すかを、コード番号と対応付けて記憶しているデータベースに問い合せ、この問い合せに対する検索結果を得ることが行われている。   In general, when processing related to a program is performed, for example, what a code number used in the program represents may be confirmed. In such a case, what each code number represents is inquired of a database stored in association with the code number, and a search result for this inquiry is obtained.

このように、データベースに何らかの問い合せを行い、検索結果を得る、所謂データ検索方式において、従来は、データを管理するサーバに対しクライアントからネットワーク部を介して接続の上、問い合わせ文をクライアントからサーバに送出している。そして、検索された結果がサーバからクライアントに返却されて処理が実現されている。   In this way, in the so-called data search method in which a query is made to a database and a search result is obtained, conventionally, a query is sent from the client to the server after connecting to the server that manages the data from the client via the network unit. Sending out. Then, the retrieved result is returned from the server to the client, and the processing is realized.

この場合、問い合わせ文は常にサーバに送出されており、問い合わせ結果もクライアントに送出されている。このため、一連の処理の中で以前に発行した問い合わせ文と同じ問い合わせが再び必要になった場合でも、毎回サーバに対してクライアントからネットワークを介して問い合わせ文の発行を行い、検索結果の取り出しが行われている。   In this case, the inquiry text is always sent to the server, and the inquiry result is also sent to the client. For this reason, even if the same query as the previously issued query is required again in the series of processing, the query is issued from the client to the server via the network every time, and the retrieval result can be retrieved. Has been done.

このように、繰り返し行われる検索処理の中に、同じ問い合わせ文が含まれる場合でも、ネットワーク部を問い合わせ文とその検索結果が往来することになる。通常、ネットワーク部を経由することに対する時間的コストが高いので、このことを考慮すると、処理性能の低下を招く問題があった。   In this way, even when the same inquiry text is included in the repeated search processing, the inquiry text and the search result are transmitted and received through the network unit. Usually, since the time cost for passing through the network unit is high, there is a problem that the processing performance is lowered in consideration of this.

このような技術内容に関連するものとして、複数のクライアントに対する共有データをサーバが保有し、クライアントからの要求により、この共有データをクライアントに転送して使用するシステムに関する提案がある(例えば、特許文献1参照)。   In connection with such technical contents, there is a proposal related to a system in which a server holds shared data for a plurality of clients, and the shared data is transferred to the client and used in response to a request from the client (for example, Patent Documents). 1).

この提案では、共用データの不要な転送をなくしてネットワーク帯域の隘路問題の発生を抑えるために、共有データを要する都度、クライアントに一時保管した共有データに関する更新情報をサーバから入手し、新たな更新が行われていればサーバから更新された共有データの転送を受けるようにしている。
特開2000−137689号公報
In this proposal, in order to eliminate unnecessary transfer of shared data and to suppress the occurrence of a bottleneck problem in the network bandwidth, whenever shared data is required, update information on the shared data temporarily stored in the client is obtained from the server and new updates are made. If it is done, it receives the updated shared data from the server.
Japanese Patent Application Laid-Open No. 2000-137689

このようにデータの取扱に当っては、重複するデータをネットワークによって送受することは、時間的コストを含め、無駄が多く、極力低減する必要がある。   As described above, in handling data, it is necessary to reduce as much as possible to send and receive duplicate data through a network, including time costs.

本発明の目的は、データベース側への問い合わせ文とこの問い合わせに対する検索結果を要求元に記録・保存し、新たな問合せを行うとき、保存された問い合わせ文と一致した場合は、問い合わせ文を送出せず、この問い合わせ文に対応付けられて保存された検索結果を取り出すことにより、全体の処理時間を短縮させることが可能となるデータ検索方法及びデータ検索システムを提供することにある。   The object of the present invention is to record and save a query statement to the database side and a search result for this query in the request source, and when a new query is made, if the query statement matches the saved query statement, the query statement is sent out. First, it is an object to provide a data search method and a data search system that can reduce the entire processing time by taking out a search result stored in association with this inquiry sentence.

本発明のデータ検索方法は、データベースに対して問い合せ文を送り、この問い合せ文に対応する検索結果をデータベースから入手するデータ検索方法であって、前記問い合せ文及びこの問い合せ文により入手した検索結果をデータ保管用のキャッシュに保管しておき、新たな問い合せ文を入力すると、前記キャッシュに前記新たな問い合せ文と同様意味の過去の問い合せ文及びこの問い合わせ文に対応する過去の検索結果が保管されているかを照会し、保管されている場合は、この保管されている検索結果を取り出して問合せ元に提供し、保管されていない場合は、前記新たな問い合せ文をデータベースに送って検索結果を求めることを特徴とする。   The data search method of the present invention is a data search method for sending an inquiry sentence to a database and obtaining a search result corresponding to the inquiry sentence from the database, wherein the inquiry sentence and the search result obtained by the inquiry sentence are obtained. When a new inquiry sentence is input after being stored in a data storage cache, a past inquiry sentence having the same meaning as the new inquiry sentence and a past search result corresponding to the inquiry sentence are stored in the cache. If it is stored, retrieve the stored search result and provide it to the query source. If it is not stored, send the new query statement to the database to obtain the search result. It is characterized by.

また、本発明のデータ検索方法は、問い合せ文、この問い合せ文により入手した検索結果及びこの検索結果に付された有効期限をデータ保管用のキャッシュに保管しておき、新たな問い合せ文を入力すると、前記キャッシュに前記新たな問い合せ文と同様意味の過去の問い合せ文及びそれに対応する過去の検索結果が保管されているかを照会し、保管されている場合は、この保管されている検索結果が前記有効期限内かを判断して、前記有効期限内であればこの保管されている検索結果を問い合せ元に提供し、前記有効期限を過ぎている場合又は保管されていない場合は、前記新たな問い合せ文をデータベースに送って検索結果を求めるようにしてもよい。   The data retrieval method of the present invention stores an inquiry sentence, a retrieval result obtained from the inquiry sentence, and an expiration date attached to the retrieval result in a data storage cache, and inputs a new inquiry sentence. The cache is inquired whether the past query sentence having the same meaning as the new query sentence and the past search result corresponding thereto are stored, and if stored, the stored search result is stored in the cache. It is determined whether it is within the expiration date, and if it is within the expiration date, the stored search result is provided to the inquiry source. If the expiration date has passed or has not been stored, the new inquiry is made. A sentence may be sent to a database to obtain a search result.

本発明のデータ検索システムは、データベースに対して問い合せ文を送り、この問い合せ文に対応する検索結果をデータベースから入手するデータ検索システムであって、前記問い合わせ文及びこの問い合わせ文により入手した検索結果を保管するデータ保管用のキャッシュと、前記データベースに対する問い合せ文が入力されると、この問い合せ文と同様意味の過去の問い合せ文及びこの過去の問い合せ文により入手した過去の検索結果が前記キャッシュに保管されているかを照会し、保管されている場合は、前記過去の検索結果を取り出して問合せ元に提供し、保管されていない場合は、前記問い合せ文を前記データベース側に送信し、この問い合せ文に対する検索結果を前記データベース側から入手すると、入手した検索結果を問合せ元に提供するとともに、前記問い合せ文と対応させて前記キャッシュに保管させる照会手段とを備えたことを特徴とする。   The data search system of the present invention is a data search system for sending an inquiry sentence to a database and obtaining a search result corresponding to the inquiry sentence from the database, wherein the inquiry sentence and the search result obtained from the inquiry sentence are obtained. When a cache for storing data to be stored and an inquiry sentence for the database are input, a past inquiry sentence having the same meaning as the inquiry sentence and a past search result obtained by the past inquiry sentence are stored in the cache. If it is stored, it retrieves the past search result and provides it to the query source. If it is not stored, it sends the query statement to the database side and searches for this query statement. When the result is obtained from the database side, the obtained search result is inquired. Along with providing the, characterized in that a query means for storing in said cache in association with the query statement.

また、本発明のデータ検索システムは、問い合わせ文及びこの問い合わせ文により入手した検索結果を保管するデータ保管用のキャッシュと、前記データベースに対する問い合せ文が入力されると、この問い合せ文と同様意味の過去の問い合せ文及びこの過去の問い合せ文により入手した過去の検索結果が前記キャッシュに保管されているかを照会し、保管されている場合は、前記過去の検索結果に付されている有効期限を参照して有効期限内であればこの過去の検索結果を問い合せ元に提供し、この有効期限が過ぎている場合、又は保管されていない場合は、前記問い合せ文を前記データベース側に送信し、この問い合せ文に対する検索結果をデータベース側から入手すると、入手した検索結果を問い合せ元に提供するとともに、この入手した結果を前記問い合せ文と対応させて有効期限とともに前記キャッシュに保管させる照会手段とを備えた構成でもよい。   In addition, the data retrieval system of the present invention, when an inquiry sentence and a data storage cache for storing a retrieval result obtained by the inquiry sentence and an inquiry sentence for the database are input, a past having the same meaning as the inquiry sentence. Inquiries and past search results obtained from this past inquiry sentence are inquired in the cache, and if so, refer to the expiration date attached to the past search results. If it is within the expiration date, this past search result is provided to the inquiry source.If this expiration date has passed or has not been stored, the inquiry statement is sent to the database side, and this inquiry statement is sent. When the search result for is obtained from the database side, the obtained search result is provided to the inquiry source and this Results may be configured with a query means for storing in the cache along with the expiration date in correspondence with the query statement.

また、本発明のデータ検索システムは、問い合わせ文に対応して検索結果が保存されているデータベースを有し、前記問い合せ文を受信すると前記データベースを検索して対応する検索結果を出力するデータベースシステムと、前記問い合わせ文及びこの問い合わせ文により入手した検索結果を保管するデータ保管用のキャッシュと、前記データベースに対する問い合せ文が入力されると、この問い合せ文と同様意味の過去の問い合せ文及びこの過去の問い合せ文により前記データベースから入手した過去の検索結果が前記キャッシュに保管されているかを照会し、保管されている場合は、前記過去の検索結果を取り出して問い合せ元に提供し、保管されていない場合は、前記問合せ文を前記データベースシステムに送信し、この問い合せ文に対する検索結果を前記データベースシステムから入手すると、入手した検索結果を問い合せ元に提供するとともに、前記問い合せ文と対応させて前記キャッシュに保管させる照会手段とを備えた構成でもよい。   Further, the data search system of the present invention has a database in which search results are stored corresponding to a query sentence, and when the query sentence is received, the database system searches the database and outputs a corresponding search result; When the query text and the data storage cache for storing the search results obtained from the query text and the query text for the database are input, the past query text having the same meaning as the query text and the past query Inquires whether past search results obtained from the database are stored in the cache by sentence, and if stored, retrieves the past search results and provides them to the query source. , Send the query to the database system, and send the query When obtaining a search result from the database system against, as well as providing the source query search results obtained or may be configured as a query means for storing in said cache in association with the query statement.

さらに、本発明のデータ検索システムは、問い合わせ文に対応して検索結果が保存されているデータベース及び前記検索結果に対する有効期限がそれぞれ設定された有効期限テーブルを有し、前記問い合せ文を受信すると前記データベースを検索して対応する検索結果を、前記有効期限を付して出力するデータベースシステムと、前記問い合わせ文及びこの問い合わせ文により入手した検索結果を保管するデータ保管用のキャッシュと、前記データベースに対する問い合せ文が入力されると、この問い合せ文と同様意味の過去の問い合せ文及びこの過去の問い合せ文により入手した過去の検索結果が前記キャッシュに保管されているかを照会し、保管されている場合は、前記過去の検索結果に付されている有効期限を参照して有効期限内であればこの過去の検索結果を問い合せ元に提供し、この有効期限が過ぎている場合、又は保管されていない場合は、前記問い合せ文を前記データベースシステムに送信し、この問い合せ文に対する検索結果を前記データベースシステムから入手すると、入手した検索結果を問い合せ元に提供するとともに、この入手した検索結果を前記問い合せ文と対応させて有効期限とともに前記キャッシュに保管させる照会手段とを備えた構成でもよい。   Furthermore, the data search system of the present invention includes a database in which search results are stored corresponding to a query statement and an expiration date table in which expiration dates for the search results are set, and when the query statement is received, A database system that searches a database and outputs a corresponding search result with the expiration date, a cache for storing data that stores the query and the search result obtained by the query, and queries to the database When a sentence is entered, it is inquired whether a past inquiry sentence having the same meaning as this inquiry sentence and a past search result obtained by this past inquiry sentence are stored in the cache. Refers to the expiration date attached to the past search results and is within the expiration date. If the past search result is provided to the inquiry source and the expiration date has passed or is not stored, the inquiry sentence is transmitted to the database system, and the search result for the inquiry sentence is sent to the database. When obtained from the system, the obtained search result may be provided to an inquiry source, and the obtained search result may be associated with the inquiry sentence and stored in the cache together with an expiration date.

本発明によれば、過去に発行された問い合わせ文と同じ内容の問い合わせ文の発行とその検索結果の取り出しが時間的に長く要するネットワーク部を往来することなく、これに代えて高速なキャッシュへのアクセスにするようにしたので、全体の処理時間を短縮させ、効率的なデータ検索が可能となる。また、キャッシュに保持された検索結果は、時間の経過と共にデータベース側の内容と異なってくる可能性があるが、過去の結果には有効期限を付けて所定時間後に破棄するようにすれば、データの一貫性を維持した正確なデータ検索を行うことができる。   According to the present invention, instead of traversing a network unit that requires a long time to issue a query statement having the same content as a query statement issued in the past and to retrieve a search result, the high-speed cache is replaced. Since access is made, the entire processing time can be shortened, and efficient data retrieval becomes possible. Also, the search results held in the cache may differ from the contents on the database side as time passes. However, if past results are given an expiration date and discarded after a predetermined time, data It is possible to perform an accurate data search that maintains the consistency of data.

以下、本発明の一実施の形態について、図面を用いて詳細に説明する。   Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

図1は、この実施の形態に係る全体構成を示すブロック図である。図1において、このシステムは、1台のクライアント10とサーバ20とが、ネットワーク30を介して互いに接続されている。そして、サーバ20に設けたデータベース23に対してクライアント10から問い合せ文を送り、この問い合せ文に対応する検索結果をデータベース23からクライアント10が入手するデータ検索システムである。   FIG. 1 is a block diagram showing the overall configuration according to this embodiment. In FIG. 1, in this system, one client 10 and a server 20 are connected to each other via a network 30. In this data retrieval system, an inquiry sentence is sent from the client 10 to the database 23 provided in the server 20, and the client 10 obtains a retrieval result corresponding to the inquiry sentence from the database 23.

クライアント10は、ネットワーク部11、照会手段12、問合せ文・結果記録手段13、データ保管用のキャッシュ(以下、ローカルキャッシュとして説明する)14、アプリケーションインターフェイス15、クライアントアプリケーション16とを有する。   The client 10 includes a network unit 11, an inquiry unit 12, an inquiry sentence / result recording unit 13, a data storage cache (hereinafter described as a local cache) 14, an application interface 15, and a client application 16.

アプリケーションインターフェイス15は、データ要求元(問い合わせ元でもある)であるクライアントアプリケーション16に対して、統一したインターフェイスを提供するために配置されている。したがって、クライアントアプリケーション16からの問い合わせ要求を受け付け、照会手段12に送信する機能と、照会手段12から検索結果を取り出し、データ要求元であるクライアントアプリケーション16に返却する機能を持つ。   The application interface 15 is arranged to provide a unified interface to the client application 16 that is a data request source (also an inquiry source). Therefore, it has a function of receiving an inquiry request from the client application 16 and transmitting it to the inquiry means 12, and a function of taking out the search result from the inquiry means 12 and returning it to the client application 16 that is the data request source.

照会手段12は、アプリケーションインターフェイス15からの問い合わせ要求を受け付ける機能と、問い合わせ要求に含まれている問い合わせ文を、問い合わせ・結果記録手段13に照会する機能とを有する。そして、この照会により、問い合わせ文と内容が一致した(同様意味の)過去の問い合わせ文に対応する検索結果がローカルキャッシュ14に存在する場合は、この検索結果を取り出し、アプリケーションインターフェイス15に返却して要求元であるクライアントアプリケーション16に提供する機能を持っている。   The inquiry means 12 has a function of accepting an inquiry request from the application interface 15 and a function of inquiring the inquiry / result recording means 13 for an inquiry sentence included in the inquiry request. If there is a search result in the local cache 14 corresponding to a past inquiry sentence that has the same content as the inquiry sentence (same meaning) as a result of this inquiry, the search result is retrieved and returned to the application interface 15. It has a function to be provided to the client application 16 that is a request source.

また、照会手段12は、前記照会により、問い合わせ文が一致しなかった場合に、ネットワーク30を介して、問い合わせ文をサーバ20に送信する機能を有する。そして、ネットワーク30を介して、サーバ20から問い合わせ文に対する検索結果を受け取ると、問い合わせ・結果記録手段13により、この検索結果をローカルキャッシュ14に記録すると共に、この検索結果をアプリケーションインターフェイス15に返却して要求元であるクライアントアプリケーション16に提供する機能も持っている。   The inquiry unit 12 has a function of transmitting an inquiry sentence to the server 20 via the network 30 when the inquiry sentence does not match by the inquiry. When the search result for the query text is received from the server 20 via the network 30, the query / result recording unit 13 records the search result in the local cache 14 and returns the search result to the application interface 15. It also has a function to be provided to the client application 16 that is the request source.

問い合わせ・結果記録手段13は、上述のように、照会手段12からの照会要求を受付けると、ローカルキャッシュ14を探索し、一致した過去の問合せ文を抽出すると、対応付けられて記録されている検索結果を取り出す機能を有する。また、一致しなかった場合、問い合わせ文をローカルキャッシュ14に記録する機能をもつ。さらに、この後、照会手段12から送られてくる検索結果(サーバ20で検索されたデータ)を、直前に記録した問い合わせ文に対応付けてローカルキャッシュ14に記録する機能も持っている。   As described above, the inquiry / result recording unit 13 searches the local cache 14 when receiving the inquiry request from the inquiry unit 12 and extracts the matched past inquiry sentence, and searches that are recorded in association with each other. Has the function of retrieving the results. Further, if they do not match, it has a function of recording an inquiry sentence in the local cache 14. Further, the search result (data searched by the server 20) sent from the inquiry unit 12 is recorded in the local cache 14 in association with the inquiry sentence recorded immediately before.

ローカルキャッシュ14は、問い合わせ文とこれに対応した検索結果を記録保持するものである。これをメモリデバイス上に用意することは一つの例である。   The local cache 14 records and holds an inquiry sentence and a search result corresponding to the inquiry sentence. Preparing this on a memory device is an example.

ネットワーク部11は、自己のクライアント10とネットワーク30との間において、ネットワーク30に対する送受信を制御するものである。   The network unit 11 controls transmission / reception with respect to the network 30 between its own client 10 and the network 30.

一方、サーバ20は、ネットワーク部21、データベースシステム22及びデータベース23を備えている。   On the other hand, the server 20 includes a network unit 21, a database system 22, and a database 23.

ネットワーク部21は、自己のサーバ20とネットワーク30との間において、ネットワーク30に対する送受信を制御するものである。データベースシステム22は、ネットワーク部21に受信された問い合わせ文を解釈し、データベース23から該当するデータを抽出し、ネットワーク部21を介して、クライアント10に検索結果を返却する機能を持つ。データベース23には、データベースシステム22に必要な各種データ、すなわち、前記問い合わせ文に対応する検索結果が記録保持されている。   The network unit 21 controls transmission / reception with respect to the network 30 between its own server 20 and the network 30. The database system 22 has a function of interpreting a query sentence received by the network unit 21, extracting corresponding data from the database 23, and returning a search result to the client 10 via the network unit 21. The database 23 records and holds various data necessary for the database system 22, that is, search results corresponding to the inquiry sentence.

次に、作用を説明する。始に、この実施の形態におけるデータ検索の例として、例えば、プログラムで使用されているコード番号が何を表すのかを確認するための検索として説明する。したがって、データベース23には、図2で示すように、コード番号とこのコード番号が何を表すか(図の例では組織の名称)とを対応付けたコード表が記憶されている。   Next, the operation will be described. First, as an example of data search in this embodiment, for example, a search for confirming what a code number used in a program represents will be described. Therefore, as shown in FIG. 2, the database 23 stores a code table in which the code number is associated with what the code number represents (name of organization in the example in the figure).

図3のフローチャートにおいて、クライアント10では、データ要求元(問い合せ元)であるクライアントアプリケーション16から、アプリケーションインターフェイス15を介して問合せ文が入力されると、照会手段12は、問合せ文・結果記録部13を介してローカルキャッシュ14へ、問い合わせ文の照会を行う(ST1)。   In the flowchart of FIG. 3, in the client 10, when a query sentence is input via the application interface 15 from the client application 16 that is a data request source (inquiry source), the query unit 12 displays the query sentence / result recording unit 13. The inquiry is inquired to the local cache 14 via (ST1).

この問合せ文は、例えば、SQLによるもので、次のように作成される。   This inquiry sentence is based on, for example, SQL, and is created as follows.

「SELECT 名称 FROM コード表 WHERE コード値=“00”」
この問合せ文は、コード値“00”に対応する名称(図2の例では「本社」)をコード表から抽出することを意味している。
“SELECT name FROM code table WHERE code value =“ 00 ””
This query means that the name corresponding to the code value “00” (“head office” in the example of FIG. 2) is extracted from the code table.

照会手段12は、この照会により、問い合わせ文に一致する過去の問合せ文がローカルキャッシュ14に存在するか判定する(ST2)。問い合わせ文が一致した(同様意味の文が存在する)場合には、ローカルキャッシュ14には、過去の検索により対応する検索結果(この場合、名称「本社」)が保持されていると判断されるので、照会手段12は、ローカルキャッシュ14から問い合わせ文・結果記録手段13を通して、保持されている検索結果(名称「本社」)の取り出しを行う(ST3)。   The inquiry means 12 determines whether or not a past inquiry sentence matching the inquiry sentence exists in the local cache 14 by this inquiry (ST2). If the inquiry sentences match (similar meaning sentences exist), it is determined that the corresponding search result (in this case, the name “head office”) is held in the local cache 14 by the past search. Therefore, the inquiry unit 12 retrieves the stored search result (name “head office”) from the local cache 14 through the inquiry sentence / result recording unit 13 (ST3).

一方、ST2において、問い合わせ文が不一致(同様意味の文が存在しない)と判定された場合は、照会手段12はネットワーク部11によりネットワーク30を介してサーバ20に問い合わせ文を発行する(ST4)。サーバ20では、この問合せ文をネットワーク部21で受信すると、データベースシステム22はデータベース23を検索し、問い合わせ文に対応する検索結果(名称「本社」)を取り出し、この検索結果を、ネットワーク部21によりネットワーク30を介してクライアント10に返却する。   On the other hand, if it is determined in ST2 that the inquiry sentences do not match (similar sentence does not exist), the inquiry unit 12 issues an inquiry sentence to the server 20 via the network 30 by the network unit 11 (ST4). In the server 20, when the inquiry is received by the network unit 21, the database system 22 searches the database 23, retrieves a search result (name “head office”) corresponding to the inquiry, and the search result is obtained by the network unit 21. Return to the client 10 via the network 30.

サーバ20からネットワーク部11に返却された検索結果は、照会手段12が取り出す(ST5)。取り出した検索結果は再利用に備えて、照会手段12により、問い合わせ文・結果記録部13を通してローカルキャッシュ14に記録される(ST6)。さらに、照会手段12は、サーバ20から、或いはローカルキャッシュ14から取り出された検索結果を、アプリケーションインターフェイス15を介して、データ要求元であるクライアントアプリケーション16に返却し、提供する(ST7)。   The query unit 12 retrieves the search result returned from the server 20 to the network unit 11 (ST5). The retrieved search result is recorded in the local cache 14 by the inquiry means 12 through the inquiry sentence / result recording unit 13 in preparation for reuse (ST6). Further, the inquiry unit 12 returns the search result retrieved from the server 20 or the local cache 14 to the client application 16 that is the data request source via the application interface 15 and provides it (ST7).

このように、クライアント10では、データ要求元であるクライアントアプリケーション16からアプリケーションインターフェイス15を介して照会手段12に、サーバ20側のデータベース23に対する問い合せ文が入力されると、この問い合せ文と同様意味の過去の問い合せ文が及びこの過去の問い合せ文により入手した過去の検索結果がローカルキャッシュ14に保管されているかを、問合せ文・結果記録手段13を介して照会する。この照会により、保管されている場合は、過去の検索結果を取り出して問合せ元であるクライアントアプリケーション16側に提供し、保管されていない場合は、問い合せ文を、データベース23を有するサーバ20側に送信する。そして、この問い合せ文に対する検索結果をサーバ20側のデータベース23から入手すると、入手した検索結果を問合せ元であるクライアントアプリケーション16側に提供するとともに、前記問い合せ文と対応させて前記ローカルキャッシュ14に保管させている。   As described above, in the client 10, when an inquiry sentence to the database 23 on the server 20 side is input from the client application 16 that is a data request source to the inquiry means 12 through the application interface 15, the meaning of the inquiry sentence is the same. It is inquired via the inquiry sentence / result recording means 13 whether the past inquiry sentence and the past search result obtained by this past inquiry sentence are stored in the local cache 14. If it is stored by this inquiry, the past search result is extracted and provided to the client application 16 side that is the inquiry source, and if it is not stored, an inquiry sentence is transmitted to the server 20 side having the database 23. To do. When the search result for the query sentence is obtained from the database 23 on the server 20 side, the obtained search result is provided to the client application 16 side as the query source, and stored in the local cache 14 in correspondence with the query sentence. I am letting.

上記実施の形態によれば、クライアント10における検索処理にて発生した問い合わせ文の発行と検索結果の取り出しの全てがネットワーク30を介するのではなく、未問い合わせ文のみがネットワーク30によりサーバ20に問い合わされるので、時間的に高コストとなるデータがネットワークを往来する時間を低減させ、処理効率を向上させることができる。また、過去の問い合わせ文の照会を、問い合わせ文そのものをキーとして行うため、照会機能が簡素化され、類似した問い合わせ文が多く繰り返されるシステム程、その効果は向上する。   According to the above embodiment, not all of the issuance of query statements and retrieval of search results that occurred in the search process in the client 10 are made via the network 30, but only unqueried sentences are inquired to the server 20 by the network 30. Therefore, it is possible to reduce the time for data that is expensive in terms of time to travel through the network and to improve the processing efficiency. In addition, since past inquiry sentences are inquired using the inquiry sentence itself as a key, the inquiry function is simplified, and the effect is improved as the system repeats many similar inquiry sentences.

次に、図4で示す実施の形態を説明する。この実施の形態では、図1で示したサーバとクライアントとを同一の計算機10上で実現した例である。すなわち、図1の例では、サーバ10とクライアント20とを、それぞれ独立した別の計算機で実現し、これらの間を外部のネットワーク30で連繋していたが、図4では、同一の計算機10上にてこれら両機能を実現している。具体的には、クライアント側の照会手段12とサーバ側のデータベースシステム22とを、外部のネットワーク30を介さずに、ネットワーク部11を経由して直接的に連繋している。   Next, the embodiment shown in FIG. 4 will be described. In this embodiment, the server and client shown in FIG. 1 are realized on the same computer 10. That is, in the example of FIG. 1, the server 10 and the client 20 are realized by separate computers, and these are connected by the external network 30, but in FIG. 4, on the same computer 10 Both of these functions have been realized. Specifically, the client side inquiry unit 12 and the server side database system 22 are directly linked via the network unit 11 without going through the external network 30.

この場合、照会手段12は、クライアントアプリケーション16からの依頼に基き、ローカルキャッシュ14に存在しない問い合わせ文を、ネットワーク部11を経由してデータベースシステム22に直接的に送り、その検索結果をデータベースシステム22からネットワーク部11を経由して入手する。その他の機能は、図1で示したものと全て同じであり、説明は省略する。   In this case, based on a request from the client application 16, the inquiry unit 12 directly sends an inquiry statement that does not exist in the local cache 14 to the database system 22 via the network unit 11, and the search result is sent to the database system 22. Via the network unit 11. The other functions are all the same as those shown in FIG.

また、図4の実施形態の場合、ネットワーク部11は、図示しない他のクライアントからの問合せ文を外部のネットワーク30により受付け、データベースシステム22による検索結果を、ネットワーク30経由で他の図示しないクライアントに回答することもできる。   In the case of the embodiment of FIG. 4, the network unit 11 receives an inquiry sentence from another client (not shown) by the external network 30, and sends the search result by the database system 22 to another client (not shown) via the network 30. You can also answer.

次に、図5で示す実施の形態を説明する。この実施の形態では、図1の実施の形態における問い合せ文により入手した検索結果に対して有効期限を付し、この有効期限を過ぎた検索結果は破棄することによりデータの一貫性を向上させている。すなわち、データベースに保持されたデータは、内容が常に一定とは限らず、更新などにより変更される可能性がある。このため、長期間経過すると、データベースのデータとクライアントのキャッシュに保管されたデータとの食い違いが生じ、データの一貫性を保てない問題もある。   Next, the embodiment shown in FIG. 5 will be described. In this embodiment, an expiration date is attached to the search result obtained by the inquiry statement in the embodiment of FIG. 1, and the consistency of data is improved by discarding the search result after the expiration date. Yes. That is, the data held in the database is not always constant, and may be changed by updating or the like. For this reason, after a long period of time, there is a discrepancy between the data in the database and the data stored in the cache of the client, and there is a problem that the consistency of the data cannot be maintained.

このように、ローカルキャッシュに保持された検索結果は、時間の経過と共にデータベース側の内容と異なってくる可能性があるため、図5の実施の形態では、ローカルキャッシュに保持された検索結果に付された有効期間を超過した場合は、このデータを破棄することにより、系としてのデータの一貫性を向上させるものである。   As described above, the search result held in the local cache may be different from the contents on the database side as time passes. Therefore, in the embodiment of FIG. 5, the search result held in the local cache is attached to the search result. When the specified valid period is exceeded, this data is discarded to improve the consistency of data as a system.

なお、図5は、前述した図1の構成と共通する部分が多いので、共通する部分には関連する符号を付して説明を行う。   Note that FIG. 5 has many parts that are common to the configuration of FIG. 1 described above.

このシステムも、1台のクライアント40とサーバ20とが、ネットワーク30を介して互いに接続されており、サーバ20に設けたデータベース23に対してクライアント40から問い合せ文を送り、この問い合せ文に対応する検索結果をデータベース23からクライアント40が入手するデータ検索システムである。   In this system as well, one client 40 and server 20 are connected to each other via a network 30, and an inquiry sentence is sent from the client 40 to the database 23 provided in the server 20, and this inquiry sentence is dealt with. This is a data search system in which a client 40 obtains search results from a database 23.

クライアント40は、ネットワーク部41、照会手段42、問合せ文・結果記録手段43、データ保管用のキャッシュ(以下、ローカルキャッシュ)44、アプリケーションインターフェイス45、クライアントアプリケーション46を有する。   The client 40 includes a network unit 41, an inquiry unit 42, an inquiry sentence / result recording unit 43, a data storage cache (hereinafter referred to as a local cache) 44, an application interface 45, and a client application 46.

アプリケーションインターフェイス45及びクライアントアプリケーション46は、図1のものと同じ機能であり、アプリケーションインターフェイス45は、クライアントアプリケーション46からの問い合わせ要求を受け付け、照会手段42に送信する機能と、照会手段42から検索結果を取り出し、クライアントアプリケーション16に返却する機能を持つ。   The application interface 45 and the client application 46 have the same functions as those in FIG. 1. The application interface 45 accepts an inquiry request from the client application 46 and transmits it to the inquiry means 42, and the search result from the inquiry means 42. It has a function of taking out and returning it to the client application 16.

照会手段42は、アプリケーションインターフェイス45からの問い合わせ要求を受け付ける機能と、問い合わせ要求に含まれている問い合わせ文を、問い合わせ・結果記録手段43に照会する機能とを有する。そして、この照会により、問い合わせ文と内容が一致した(同様意味の)過去の問い合わせ文に対応する検索結果がローカルキャッシュ14に存在する場合はこの検索結果を取り出す機能を持っている。   The inquiry means 42 has a function of receiving an inquiry request from the application interface 45 and a function of inquiring the inquiry / result recording means 43 for an inquiry sentence included in the inquiry request. If the search result corresponding to the past inquiry sentence (which has the same meaning) matches the contents of the inquiry sentence exists in the local cache 14 as a result of this inquiry, the local cache 14 has a function of retrieving the search result.

ここで、検索結果には後述するように有効期限が付してあり、この有効期限が期限内の場合のみ、この検索結果をアプリケーションインターフェイス45に返却して、要求元であるクライアントアプリケーション46に提供する。   Here, an expiration date is attached to the search result as will be described later, and only when the expiration date is within the expiration date, the search result is returned to the application interface 45 and provided to the client application 46 that is the request source. To do.

また、照会手段42は、前記照会により、問い合わせ文が一致しなかった場合、及び一致してはいるが検索結果に付された有効期限を過ぎている場合は、ネットワーク30を介して、問い合わせ文をサーバ20に送信する機能を有する。そして、ネットワーク30を介して、サーバ20から問い合わせ文に対する検索結果を受け取ると、問い合わせ・結果記録手段43により、この検索結果を有効期限とともにローカルキャッシュ44に記録する。さらに、この検索結果をアプリケーションインターフェイス45に返却して要求元であるクライアントアプリケーション46に提供する機能を持っている。   Further, the inquiry means 42 sends an inquiry sentence via the network 30 when the inquiry sentence does not match due to the inquiry, and when it matches but the expiration date attached to the search result has passed. Is transmitted to the server 20. When a search result for the query text is received from the server 20 via the network 30, the query / result recording unit 43 records the search result together with the expiration date in the local cache 44. Further, it has a function of returning the search result to the application interface 45 and providing it to the client application 46 that is a request source.

問い合わせ・結果記録手段43は、照会手段42からの照会要求を受付けると、ローカルキャッシュ44を探索し、一致した過去の問合せ文を抽出すると、対応付けられて記録されている検索結果を有効期限とともに取り出す機能を有する。また、一致しなかった場合、問い合わせ文をローカルキャッシュ44に記録する機能をもつ。さらに、この後、照会手段42から送られてくる検索結果(サーバ20で検索されたデータ)及びその有効期限を、直前に記録した問い合わせ文に対応付けてローカルキャッシュ44に記録する機能ももつ。   When the inquiry / result recording unit 43 receives the inquiry request from the inquiry unit 42, the inquiry / result recording unit 43 searches the local cache 44 and extracts the matched past inquiry sentence. Then, the inquiry / result recording unit 43 displays the associated search result together with the expiration date. Has the function of taking out. Further, if they do not match, it has a function of recording an inquiry sentence in the local cache 44. Further, the search result (data searched by the server 20) sent from the inquiry means 42 and its expiration date are recorded in the local cache 44 in association with the inquiry sentence recorded immediately before.

ローカルキャッシュ44は、問い合わせ文とこれに対応した検索結果と有効期限を記録保持するものである。これをメモリデバイス上に用意することは一つの例である。   The local cache 44 records and holds an inquiry sentence, a search result corresponding to the inquiry sentence, and an expiration date. Preparing this on a memory device is an example.

ネットワーク部41は、自己のクライアント40とネットワーク30との間において、ネットワーク30に対する送受信を制御するものである。   The network unit 41 controls transmission / reception with respect to the network 30 between its own client 40 and the network 30.

一方、サーバ20は、ネットワーク部21、データベースシステム22及びデータベース23を備えている。   On the other hand, the server 20 includes a network unit 21, a database system 22, and a database 23.

ネットワーク部21は、自己のサーバ20とネットワーク30との間において、ネットワーク30に対する送受信を制御するものである。データベースシステム22は、ネットワーク部21に受信された問い合わせ文を解釈し、データベース23から該当するデータを抽出し、ネットワーク部21を介して、クライアント40に検索結果を返却する機能を持つ。データベース23には、データベースシステム22に必要な各種データ、すなわち、前記問い合わせ文に対応する検索結果が記録保持されている。また、この中には、有効期限テーブル24が含まれ、問い合わせ検索結果の有効期限が保持されている。   The network unit 21 controls transmission / reception with respect to the network 30 between its own server 20 and the network 30. The database system 22 has a function of interpreting an inquiry sentence received by the network unit 21, extracting corresponding data from the database 23, and returning a search result to the client 40 via the network unit 21. The database 23 records and holds various data necessary for the database system 22, that is, search results corresponding to the inquiry sentence. In addition, an expiration date table 24 is included therein, and the expiration date of the inquiry search result is held.

次に、作用を説明する。この実施の形態におけるデータベース23にも、図2で示した、コード番号とこのコード番号が何を表すか(図の例では組織の名称)とを対応付けたコード表と同等のものが記憶されているものとする。また、これらコード番号毎の名称には、図5で示した有効期限テーブル24により、有効期限が付してある。通常、図2で示した組織の名称などは余り変更されることはないが、商品などの名称は比較的頻繁に変更されることがあり、変更予定日を有効期限として、例えば、「9月30日までは有効」のように、各名称に、有効期限を付しておく。言い換えれば、有効期限日時までは、変更されないことを保証する意味で用いてもよい。   Next, the operation will be described. The database 23 in this embodiment also stores the equivalent of the code table shown in FIG. 2 that associates the code number with what the code number represents (name of organization in the example in the figure). It shall be. Further, the name for each code number is given an expiration date by the expiration date table 24 shown in FIG. Usually, the name of the organization shown in FIG. 2 is not changed so much, but the name of the product may be changed relatively frequently. For example, “September” Each term is given an expiration date, such as “Valid until 30 days”. In other words, it may be used to guarantee that it will not be changed until the expiration date.

図6のフローチャートにおいて、クライアント40では、データ問い合せ元であるクライアントアプリケーション46から、アプリケーションインターフェイス45を介して問合せ文が入力されると、照会手段42は、問合せ文・結果記録部43を介してローカルキャッシュ44へ、問い合わせ文の照会を行う(ST11)。   In the flowchart of FIG. 6, when the client 40 receives a query sentence from the client application 46 that is a data query source via the application interface 45, the query means 42 is connected locally via the query sentence / result recording unit 43. An inquiry is inquired to the cache 44 (ST11).

照会手段42は、この照会により、問い合わせ文に一致する過去の問合せ文がローカルキャッシュ44に存在するか判定する(ST12)。問い合わせ文が一致した(同意の文が存在する)場合には、ローカルキャッシュ44には、過去の検索により対応する結果が保持されていると判断されるので、この検索結果に付されている有効期限を参照し、期限内かを判定する(ST13)。有効期限以内であれば、ローカルキャッシュ44に有効な検索結果が保持されていると判断されるので、ローカルキャッシュ44から問い合わせ文・結果記録手段43を通して、保持されている有効な検索結果の取り出しを行う(ST14)。   The inquiry means 42 determines whether a past inquiry sentence matching the inquiry sentence exists in the local cache 44 by this inquiry (ST12). If the inquiry texts match (consent texts exist), it is determined that the corresponding result is retained in the local cache 44 by the past search. With reference to the time limit, it is determined whether it is within the time limit (ST13). If it is within the expiration date, it is determined that a valid search result is held in the local cache 44. Therefore, the held valid search result is extracted from the local cache 44 through the query / result recording means 43. Perform (ST14).

一方、ST12において、問い合わせ文が不一致(同意の文が存在しない)と判定された場合、又はST13において有効期限を越えている場合は、照会手段42はネットワーク部41によりネットワーク30を介してサーバ20に問い合わせ文と有効期限の問い合わせ文を発行する(ST15)。サーバ20では、この問合せ文をネットワーク部21で受信すると、データベースシステム22はデータベース23を検索し、問い合わせ文に対応する検索結果を、その有効期限とともに取り出し、この結果を、ネットワーク部21によりネットワーク30を介してクライアント40に返却する。   On the other hand, if it is determined in ST12 that the inquiry sentence does not match (no agreement sentence exists), or if the expiration date has expired in ST13, the inquiry means 42 is sent from the server 30 via the network 30 by the network unit 41. An inquiry statement and an expiration date inquiry statement are issued (ST15). In the server 20, when the query sentence is received by the network unit 21, the database system 22 searches the database 23, retrieves a search result corresponding to the query sentence together with its expiration date, and the network part 21 retrieves the result by the network 30. To the client 40 via

サーバ20からネットワーク部41に返却された検索結果は、照会手段42が取り出す(ST16)。取り出された検索結果は、その有効期限とともに、再利用に備えて、照会手段42により、問い合わせ文・結果記録部43を通してローカルキャッシュ44に上書き記録される(ST17)。したがって、有効期限を超過した検索結果のデータは自動的に破棄される。   The query means 42 retrieves the search results returned from the server 20 to the network unit 41 (ST16). The retrieved search result is overwritten and recorded in the local cache 44 by the inquiry means 42 through the inquiry sentence / result recording unit 43 in preparation for reuse, together with its expiration date (ST17). Therefore, search result data that has expired is automatically discarded.

さらに、照会手段42は、サーバ20から、或いはローカルキャッシュ44から取り出された検索結果を、アプリケーションインターフェイス45を介して、データ問い合わせ元であるクライアントアプリケーション46に返却し、提供する(ST18)。   Further, the inquiry means 42 returns the search result retrieved from the server 20 or the local cache 44 to the client application 46 that is the data inquiry source via the application interface 45 and provides it (ST18).

このように、クライアント40では、データ要求元であるクライアントアプリケーション46からアプリケーションインターフェイス45を介して照会手段42に、サーバ20側のデータベース23に対する問い合せ文が入力されると、この問い合せ文と同様意味の過去の問い合せ文が及びこの過去の問い合せ文により入手した過去の検索結果がローカルキャッシュ44に保管されているかを問合せ文・結果記録手段43を介して照会する。この照会により、保管されている場合は、過去の検索結果に付されている有効期限を参照して有効期限内であればこの過去の検索結果を問合せ元であるクライアントアプリケーション46側に提供する。これに対し、有効期限が過ぎている場合、又は保管されていない場合は、問い合せ文を、データベース23を有するサーバ20側に送信する。そして、この問い合せ文に対する検索結果をサーバ20側のデータベース23から入手すると、入手した検索結果を問合せ元であるクライアントアプリケーション46側に提供するとともに、前記問い合せ文と対応させて有効期限とともに前記ローカルキャッシュ44に保管させている。   As described above, in the client 40, when an inquiry sentence to the database 23 on the server 20 side is input from the client application 46 that is a data request source to the inquiry means 42 through the application interface 45, the meaning of the inquiry sentence is the same. It is inquired via the inquiry sentence / result recording means 43 whether the past inquiry sentence and the past search result obtained by this past inquiry sentence are stored in the local cache 44. If it is stored by this inquiry, the expiration date attached to the past search result is referred to, and if it is within the expiration date, this past search result is provided to the client application 46 side that is the inquiry source. On the other hand, when the expiration date has passed or it has not been stored, an inquiry sentence is transmitted to the server 20 side having the database 23. When the search result for the query sentence is obtained from the database 23 on the server 20 side, the obtained search result is provided to the client application 46 side as the query source, and the local cache is associated with the query sentence together with an expiration date. 44.

上述した図5の実施の形態によれば、図1の実施の形態と同様に、クライアント40における検索処理にて発生した問い合わせ文の発行と取り出された検索結果の全てがネットワーク30を介するのではないので、時間的に高コストとなるデータがネットワークを往来する時間を低減させ、処理効率を向上させることができる。また、過去の問い合わせ文の照会を、問い合わせ文そのものをキーとして行うため、照会機能が簡素化され、類似した問い合わせ文が多く繰り返されるシステム程、その効果は向上する。さらに、図5の実施の形態では、有効期限を使用することにより、ローカルキャッシュ44の陳腐化を低減させ、システムとしてのデータの一貫性を向上させることが可能となる。   According to the embodiment of FIG. 5 described above, as in the embodiment of FIG. 1, all of the issuance of query statements generated in the search process in the client 40 and the retrieved search results are not transmitted via the network 30. Therefore, it is possible to reduce the time for data that is expensive in time to travel through the network, and to improve the processing efficiency. In addition, since past inquiry sentences are inquired using the inquiry sentence itself as a key, the inquiry function is simplified, and the effect is improved as the system repeats many similar inquiry sentences. Further, in the embodiment of FIG. 5, by using the expiration date, it becomes possible to reduce the staleness of the local cache 44 and improve the consistency of data as a system.

次に、図7で示す実施の形態を説明する。この実施の形態では、図5で示したサーバとクライアントとを同一の計算機40上で実現した例である。すなわち、クライアント側の照会手段42とサーバ側のデータベースシステム22とを、外部のネットワーク30を介さずに、ネットワーク部41を経由して直接的に連繋している。   Next, the embodiment shown in FIG. 7 will be described. In this embodiment, the server and the client shown in FIG. 5 are realized on the same computer 40. That is, the client-side inquiry means 42 and the server-side database system 22 are directly connected via the network unit 41 without going through the external network 30.

この場合、照会手段42は、クライアントアプリケーション46からの依頼に基き、ローカルキャッシュ44に問い合わせ文が存在しない場合、又は存在していても検索結果の有効期限が超過している場合に、問い合わせ文を、ネットワーク部41を経由してデータベースシステム22に直接的に送り、その検索結果を、有効期限と共にデータベースシステム22からネットワーク部41を経由して入手する。その他の機能は、図5で示したものと全て同じであり、説明は省略する。   In this case, based on the request from the client application 46, the inquiry means 42 displays the inquiry sentence when the inquiry sentence does not exist in the local cache 44 or when the validity period of the search result has exceeded even if it exists. The data is directly sent to the database system 22 via the network unit 41, and the search result is obtained from the database system 22 via the network unit 41 together with the expiration date. The other functions are all the same as those shown in FIG.

また、図7の実施形態の場合、ネットワーク部41は、図示しない他のクライアントからの問合せ文を外部のネットワーク30により受付け、データベースシステム22による検索結果及びその有効期限を、ネットワーク30経由で他の図示しないクライアントに回答することもできる。   In the case of the embodiment of FIG. 7, the network unit 41 accepts an inquiry sentence from another client (not shown) by the external network 30, and retrieves the search result by the database system 22 and its expiration date via the network 30. It is possible to reply to a client (not shown).

本発明によるデータ検索システムの一実施の形態を示すブロック図である。It is a block diagram which shows one Embodiment of the data search system by this invention. 同上一実施の形態におけるデータベースに保存されたコード表を説明する図である。It is a figure explaining the code table preserve | saved in the database in one Embodiment same as the above. 同上一実施の形態の作用を説明するフローチャートである。It is a flowchart explaining the effect | action of one Embodiment same as the above. 図1で示したシステム構成を同一の計算機で実現した例を示すブロック図である。It is a block diagram which shows the example which implement | achieved the system configuration | structure shown in FIG. 1 with the same computer. 本発明の他の実施の形態を示すブロック図である。It is a block diagram which shows other embodiment of this invention. 同上他の実施の形態の作用を説明するフローチャートである。It is a flowchart explaining the effect | action of other embodiment same as the above. 図5で示したシステム構成を同一の計算機で実現した例を示すブロック図である。FIG. 6 is a block diagram showing an example in which the system configuration shown in FIG. 5 is realized by the same computer.

符号の説明Explanation of symbols

12 照会手段
14 データ保管用のキャッシュ
16 問い合わせ元であるクライアントアプリケーション
22 データベースシステム
23 データベース
12 Inquiry means 14 Cache for data storage 16 Client application as inquiry source 22 Database system 23 Database

Claims (6)

データベースに対して問い合せ文を送り、この問い合せ文に対応する検索結果をデータベースから入手するデータ検索方法であって、
前記問い合せ文及びこの問い合せ文により入手した検索結果をデータ保管用のキャッシュに保管しておき、
新たな問い合せ文を入力すると、前記キャッシュに前記新たな問い合せ文と同様意味の過去の問い合せ文及びこの問い合わせ文に対応する過去の検索結果が保管されているかを照会し、
保管されている場合は、この保管されている検索結果を取り出して問合せ元に提供し、保管されていない場合は、前記新たな問い合せ文をデータベースに送って検索結果を求める
ことを特徴とするデータ検索方法。
A data search method for sending an inquiry sentence to a database and obtaining a search result corresponding to the inquiry sentence from the database,
Store the inquiry sentence and the search result obtained by this inquiry sentence in a cache for data storage,
When a new inquiry sentence is input, it is inquired whether a past inquiry sentence having the same meaning as the new inquiry sentence and a past search result corresponding to the inquiry sentence are stored in the cache,
If stored, this stored search result is retrieved and provided to the query source. If not stored, the new query is sent to the database to obtain the search result. retrieval method.
データベースに対して問い合せ文を送り、この問い合せ文に対応する検索結果をデータベースから入手するデータ検索方法であって、
前記問い合せ文、この問い合せ文により入手した検索結果及びこの検索結果に付された有効期限をデータ保管用のキャッシュに保管しておき、
新たな問い合せ文を入力すると、前記キャッシュに前記新たな問い合せ文と同様意味の過去の問い合せ文及びそれに対応する過去の検索結果が保管されているかを照会し、
保管されている場合は、この保管されている検索結果が前記有効期限内かを判断して、前記有効期限内であればこの保管されている検索結果を問い合せ元に提供し、前記有効期限を過ぎている場合又は保管されていない場合は、前記新たな問い合せ文をデータベースに送って検索結果を求める
ことを特徴とするデータ検索方法。
A data search method for sending an inquiry sentence to a database and obtaining a search result corresponding to the inquiry sentence from the database,
The inquiry sentence, the search result obtained by this inquiry sentence, and the expiration date attached to the search result are stored in a cache for data storage,
When a new inquiry sentence is input, an inquiry is made as to whether a past inquiry sentence having the same meaning as the new inquiry sentence and a past search result corresponding thereto are stored in the cache,
If it is stored, it is determined whether the stored search result is within the expiration date, and if it is within the expiration date, the stored search result is provided to the inquiry source, and the expiration date is set. A data search method characterized in that if it has passed or has not been stored, the new query is sent to a database to obtain a search result.
データベースに対して問い合せ文を送り、この問い合せ文に対応する検索結果をデータベースから入手するデータ検索システムであって、
前記問い合わせ文及びこの問い合わせ文により入手した検索結果を保管するデータ保管用のキャッシュと、
前記データベースに対する問い合せ文が入力されると、この問い合せ文と同様意味の過去の問い合せ文及びこの過去の問い合せ文により入手した過去の検索結果が前記キャッシュに保管されているかを照会し、保管されている場合は、前記過去の検索結果を取り出して問合せ元に提供し、保管されていない場合は、前記問い合せ文を前記データベース側に送信し、この問い合せ文に対する検索結果を前記データベース側から入手すると、入手した検索結果を問合せ元に提供するとともに、前記問い合せ文と対応させて前記キャッシュに保管させる照会手段と、
を備えたことを特徴とするデータ検索システム。
A data search system that sends an inquiry sentence to a database and obtains a search result corresponding to the inquiry sentence from the database,
A cache for storing data that stores the query and search results obtained by the query;
When an inquiry sentence for the database is input, it is inquired whether a past inquiry sentence having the same meaning as the inquiry sentence and a past search result obtained by the past inquiry sentence are stored in the cache, and stored. If it is, the past search results are extracted and provided to the query source.If the search results are not stored, the query is sent to the database, and the search results for the query are obtained from the database. Inquiry means for providing the obtained search result to a query source and storing the obtained search result in the cache in correspondence with the query statement;
A data search system characterized by comprising:
データベースに対して問い合せ文を送り、この問い合せ文に対応する検索結果をデータベースから入手するデータ検索システムであって、
前記問い合わせ文及びこの問い合わせ文により入手した検索結果を保管するデータ保管用のキャッシュと、
前記データベースに対する問い合せ文が入力されると、この問い合せ文と同様意味の過去の問い合せ文及びこの過去の問い合せ文により入手した過去の検索結果が前記キャッシュに保管されているかを照会し、保管されている場合は、前記過去の検索結果に付されている有効期限を参照して有効期限内であればこの過去の検索結果を問い合せ元に提供し、この有効期限が過ぎている場合、又は保管されていない場合は、前記問い合せ文を前記データベース側に送信し、この問い合せ文に対する検索結果をデータベース側から入手すると、入手した検索結果を問い合せ元に提供するとともに、この入手した結果を前記問い合せ文と対応させて有効期限とともに前記キャッシュに保管させる照会手段と、
を備えたことを特徴とするデータ検索システム。
A data search system that sends an inquiry sentence to a database and obtains a search result corresponding to the inquiry sentence from the database,
A cache for storing data for storing the query and search results obtained by the query;
When an inquiry sentence for the database is input, it is inquired whether a past inquiry sentence having the same meaning as the inquiry sentence and a past search result obtained by the past inquiry sentence are stored in the cache, and stored. If it is within the expiration date with reference to the expiration date attached to the past search result, the past search result is provided to the inquiry source, and if this expiration date has passed or is stored If not, send the inquiry sentence to the database side, and when the search result for the inquiry sentence is obtained from the database side, the obtained search result is provided to the inquiry source, and the obtained result is referred to as the inquiry sentence. Inquiry means correspondingly stored in the cache together with an expiration date;
A data search system characterized by comprising:
問い合わせ文に対応して検索結果が保存されているデータベースを有し、前記問い合せ文を受信すると前記データベースを検索して対応する検索結果を出力するデータベースシステムと、
前記問い合わせ文及びこの問い合わせ文により入手した検索結果を保管するデータ保管用のキャッシュと、
前記データベースに対する問い合せ文が入力されると、この問い合せ文と同様意味の過去の問い合せ文及びこの過去の問い合せ文により前記データベースから入手した過去の検索結果が前記キャッシュに保管されているかを照会し、保管されている場合は、前記過去の検索結果を取り出して問い合せ元に提供し、保管されていない場合は、前記問合せ文を前記データベースシステムに送信し、この問い合せ文に対する検索結果を前記データベースシステムから入手すると、入手した検索結果を問い合せ元に提供するとともに、前記問い合せ文と対応させて前記キャッシュに保管させる照会手段と、
を備えたことを特徴とするデータ検索システム。
A database system that has a database in which search results are stored corresponding to a query, and that receives the query and searches the database and outputs a corresponding search result;
A cache for storing data that stores the query and search results obtained by the query;
When an inquiry sentence for the database is input, a past inquiry sentence having the same meaning as the inquiry sentence and a past search result obtained from the database by the past inquiry sentence are inquired about in the cache, If it is stored, the past search result is retrieved and provided to the inquiry source. If it is not stored, the query is sent to the database system, and the search result for the query is sent from the database system. When obtained, inquiry means for providing the obtained search result to the inquiry source, and storing it in the cache in correspondence with the inquiry sentence;
A data search system characterized by comprising:
問い合わせ文に対応して検索結果が保存されているデータベース及び前記検索結果に対する有効期限がそれぞれ設定された有効期限テーブルを有し、前記問い合せ文を受信すると前記データベースを検索して対応する検索結果を、前記有効期限を付して出力するデータベースシステムと、
前記問い合わせ文及びこの問い合わせ文により入手した検索結果を保管するデータ保管用のキャッシュと、
前記データベースに対する問い合せ文が入力されると、この問い合せ文と同様意味の過去の問い合せ文及びこの過去の問い合せ文により入手した過去の検索結果が前記キャッシュに保管されているかを照会し、保管されている場合は、前記過去の検索結果に付されている有効期限を参照して有効期限内であればこの過去の検索結果を問い合せ元に提供し、この有効期限が過ぎている場合、又は保管されていない場合は、前記問い合せ文を前記データベースシステムに送信し、この問い合せ文に対する検索結果を前記データベースシステムから入手すると、入手した検索結果を問い合せ元に提供するとともに、この入手した検索結果を前記問い合せ文と対応させて有効期限とともに前記キャッシュに保管させる照会手段と、
を備えたことを特徴とするデータ検索システム。
A database in which search results are stored corresponding to a query sentence, and an expiration date table in which expiration dates for the search results are respectively set. When the query sentence is received, the database is searched and the corresponding search results are displayed. A database system for outputting with the expiration date;
A cache for storing data for storing the query and search results obtained by the query;
When an inquiry sentence for the database is input, it is inquired whether a past inquiry sentence having the same meaning as the inquiry sentence and a past search result obtained by the past inquiry sentence are stored in the cache, and stored. If it is within the expiration date with reference to the expiration date attached to the past search result, the past search result is provided to the inquiry source, and if this expiration date has passed or is stored If not, send the inquiry sentence to the database system, and obtain the search result for the inquiry sentence from the database system, and provide the obtained search result to the inquiry source. Query means associated with a statement and stored in the cache with an expiration date;
A data search system characterized by comprising:
JP2005285252A 2005-09-29 2005-09-29 Data search method and system Withdrawn JP2007094884A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005285252A JP2007094884A (en) 2005-09-29 2005-09-29 Data search method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005285252A JP2007094884A (en) 2005-09-29 2005-09-29 Data search method and system

Publications (1)

Publication Number Publication Date
JP2007094884A true JP2007094884A (en) 2007-04-12

Family

ID=37980504

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005285252A Withdrawn JP2007094884A (en) 2005-09-29 2005-09-29 Data search method and system

Country Status (1)

Country Link
JP (1) JP2007094884A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1980349A2 (en) 2007-03-30 2008-10-15 Mitsubishi Materials Corporation Cutting insert
EP1980348A2 (en) 2007-03-30 2008-10-15 Mitsubishi Materials Corporation Cutting insert
JP2013511768A (en) * 2009-11-18 2013-04-04 クアルコム,インコーポレイテッド Method and system for managing electronic messages
KR101440359B1 (en) * 2014-02-05 2014-09-17 고혜경 OWL-S based Service Discovery Method and System
US9158817B2 (en) 2011-06-27 2015-10-13 International Business Machines Corporation Enhancing online querying service using client memorization
CN112507199A (en) * 2020-12-22 2021-03-16 北京百度网讯科技有限公司 Method and apparatus for optimizing a search system
CN114138840A (en) * 2021-12-08 2022-03-04 中国建设银行股份有限公司 Data query method, device, equipment and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1980349A2 (en) 2007-03-30 2008-10-15 Mitsubishi Materials Corporation Cutting insert
EP1980348A2 (en) 2007-03-30 2008-10-15 Mitsubishi Materials Corporation Cutting insert
JP2013511768A (en) * 2009-11-18 2013-04-04 クアルコム,インコーポレイテッド Method and system for managing electronic messages
US8713027B2 (en) 2009-11-18 2014-04-29 Qualcomm Incorporated Methods and systems for managing electronic messages
US9158817B2 (en) 2011-06-27 2015-10-13 International Business Machines Corporation Enhancing online querying service using client memorization
KR101440359B1 (en) * 2014-02-05 2014-09-17 고혜경 OWL-S based Service Discovery Method and System
CN112507199A (en) * 2020-12-22 2021-03-16 北京百度网讯科技有限公司 Method and apparatus for optimizing a search system
CN114138840A (en) * 2021-12-08 2022-03-04 中国建设银行股份有限公司 Data query method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
JP3262325B2 (en) Agent system and method for supporting construction of electronic mail service system
JP2007094884A (en) Data search method and system
US20080147819A1 (en) Method and system for message management
JP2009518757A (en) Method and system for maintaining up-to-date data of wireless devices
US20100115061A1 (en) Server system, server apparatus, program and method
CN111046041B (en) Data processing method and device, storage medium and processor
US10885036B2 (en) Obtaining incremental updates from a database using a partial query
US20070130118A1 (en) Method and apparatus for manipulating data within a remote database in a multiple tier environment
CN104199978A (en) System and method for realizing metadata cache and analysis based on NoSQL and method
CN110717073B (en) System and method for realizing flow query processing by combining business data in cloud flow platform
US20030014512A1 (en) Communication apparatus and structured document management apparatus
JP2003271809A (en) Profile managing server, managing device and product managing server
US7302492B1 (en) Method and apparatus for matching web service in applications using a data object exchange protocol
EP1217805A1 (en) Method and apparatus for replacing data transmission request expressions
JP3811615B2 (en) Information distribution system, apparatus and method, and recording medium
JP2000235514A (en) Method and system for retrieving information and recording medium recording information retrieval processing program
US20060294050A1 (en) Retrieving server-based help content
JP3465815B2 (en) Text filtering system
KR20180006518A (en) Automatically writing service system for sales material kit
JP2002169805A (en) Client-server type document retrieving device
JP3498798B2 (en) Text filtering method
JP3601869B2 (en) Machine translation system
JP2004185303A (en) Www site history retrieving device and method, and program
JP2003296441A5 (en)
JP5086998B2 (en) Long-term filing system including short-term metadata archive for searching filed data

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: 20081202