JP4251699B2 - Database search system - Google Patents

Database search system Download PDF

Info

Publication number
JP4251699B2
JP4251699B2 JP02661899A JP2661899A JP4251699B2 JP 4251699 B2 JP4251699 B2 JP 4251699B2 JP 02661899 A JP02661899 A JP 02661899A JP 2661899 A JP2661899 A JP 2661899A JP 4251699 B2 JP4251699 B2 JP 4251699B2
Authority
JP
Japan
Prior art keywords
data
database
request
stored
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.)
Expired - Fee Related
Application number
JP02661899A
Other languages
Japanese (ja)
Other versions
JP2000222272A (en
Inventor
秀樹 高杉
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP02661899A priority Critical patent/JP4251699B2/en
Publication of JP2000222272A publication Critical patent/JP2000222272A/en
Application granted granted Critical
Publication of JP4251699B2 publication Critical patent/JP4251699B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Description

【0001】
【発明の属する技術分野】
この発明は、ネットワーク環境において高速キャッシュを実現するデータベース検索システムに関するものである。
【0002】
【従来の技術】
図7は従来のデータベース検索システムの構成を示す図であり、図において、1はサービス要求を発信するクライアント、2はインターネット技術を利用したネットワーク5を経由してクライアント1からのサービス要求を受信するWebサーバである。3はデータベースサーバであり、Webサーバ2からのデータ転送要求を受信し、データを保有しているディスク4から該当するデータを検索し、ネットワーク5を経由してWebサーバ2に転送する。一般的には、Webサーバ2はネットワーク5上のサービス提供業者により保有されている。図7において、クライアント1,Webサーバ2,データベースサーバ3は、ネットワーク5上で複数存在するものとする。
【0003】
次に動作について説明する。
クライアント1は、ブラウザを用いて、ネットワーク5を経由しWebサーバ2に対してサービス要求を発信する。サービス要求を受信したWebサーバ2は、そのサービスを実現するために必要なデータを管理しているデータベースサーバ3を特定し、ネットワーク5を経由しデータの転送要求を発信する。
【0004】
データの転送要求を受信したデータベースサーバ3は、データを保有しているディスク4から該当するデータを抽出し、要求のあったWebサーバ2に、ネットワーク5を経由し、抽出したデータを転送する。Webサーバ2は、必要であれば取得したデータを加工し、ネットワーク5を経由し、サービス要求のあったクライアント1にサービスを提供する。
【0005】
【発明が解決しようとする課題】
従来のデータベース検索システムは以上のように構成されているので、ディスク4への低速度のインターフェースを介して検索しなければならず、ネットワーク5を経由し大量のデータをオンラインで検索する場合には、高速に検索できないという課題があった。
【0006】
上記のような課題を解決するものとして、従来は、データベースサーバ3が内蔵するデータキャッシュに、ディスク4から検索されたデータを格納しておき、Webサーバ2からデータの転送要求があった場合には、データキャッシュから該当するデータをWebサーバ2に転送するという方法が使用されている。しかし、データベースサーバ3において、データキャッシュを構成しているメモリが、データベースサーバ3内のCPUと別のLSI上に実装されており、高速化のためには、CPUとメモリ間のデータ幅、すなわちバス幅を増やす必要がある。すると、メモリとCPU間のバス長が長くなることと相まってクロストークが増加し、その対策のために、CPUのクロック周波数を下げる必要が生じて、結果的には処理が遅くなり、高速化が困難という課題があった。
【0007】
この発明は上記のような課題を解決するためになされたもので、ネットワーク環境において高速キャッシュを実現し、ネットワーク5上で高速にデータベースを検索できるデータベース検索システムを得ることを目的とする。
【0008】
【課題を解決するための手段】
この発明に係るデータベース検索システムは、ネットワークを経由し、クライアントからのサービス要求を受け、必要なデータを取得して上記クライアントからのサービスを提供するWebサーバと、上記Webサーバからのデータ転送要求を受けて、保有するデータベースからデータを検索し、上記Webサーバに転送するデータベースサーバとを備えたものにおいて、上記Webサーバが、上記データベースサーバから転送されたデータを格納するデータオブジェクトと、上記データオブジェクトに格納されたデータと上記データベースサーバが保有するデータとの相関をとるデータベースリファレンスと、上記データオブジェクトに上記サービス要求を実現するために必要なデータが格納されている場合、上記データオブジェクトからデータを取得して、上記クライアントに要求されたサービスを提供し、データオブジェクトに上記サービス要求を実現するために必要なデータが格納されていない場合、上記データベースリファレンスを参照して、上記データベースサーバに必要なデータの転送を要求し、上記必要なデータを取得してから、上記クライアントに要求されたサービスを提供する要求処理部とを備え、上記データベースサーバが、データベースから検索されたデータを格納するデータキャッシュと、上記データベースに保有されているデータと上記データキャッシュに格納されているデータと上記データオブジェクトに格納されたデータとの相関をとるオブジェクトリファレンスと、上記要求処理部からの必要なデータ転送の要求を受け、上記オブジェクトリファレンスを参照して、上記データキャッシュに必要なデータが格納されている場合、上記データキャッシュからデータを取得して上記要求処理部に転送し、上記データキャッシュに必要なデータが格納されていない場合、上記データベースからデータを取得して上記データキャッシュに格納すると共に、上記オブジェクトリファレンスを更新するデータベース管理部とを備え、Webサーバにおける上記要求処理部、上記データオブジェクト、上記データリファレンスを、1チップのシステムLSIに集積したものである。
【0013】
この発明に係るデータベース検索システムは、ネットワークを経由し、クライアントからのサービス要求を受け、必要なデータを取得して上記クライアントからのサービスを提供するWebサーバと、上記Webサーバからのデータ転送要求を受けて、保有するデータベースからデータを検索し、上記Webサーバに転送するデータベースサーバとを備えたデータベース検索システムにおいて、上記Webサーバが、上記データベースサーバから転送されたデータを格納するデータオブジェクトと、上記データオブジェクトに格納されたデータと上記データベースサーバが保有するデータとの相関をとるデータベースリファレンスと、上記データオブジェクトに上記サービス要求を実現するために必要なデータが格納されている場合、上記データオブジェクトからデータを取得して、上記クライアントに要求されたサービスを提供し、データオブジェクトに上記サービス要求を実現するために必要なデータが格納されていない場合、上記データベースリファレンスを参照して、上記データベースサーバに必要なデータの転送を要求し、上記必要なデータを取得してから、上記クライアントに要求されたサービスを提供する要求処理部とを備え、上記データベースサーバが、データベースから検索されたデータを格納するデータキャッシュと、上記データベースに保有されているデータと上記データキャッシュに格納されているデータと上記データオブジェクトに格納されたデータとの相関をとるオブジェクトリファレンスと、上記要求処理部からの必要なデータ転送の要求を受け、上記オブジェクトリファレンスを参照して、上記データキャッシュに必要なデータが格納されている場合、上記データキャッシュからデータを取得して上記要求処理部に転送し、上記データキャッシュに必要なデータが格納されていない場合、上記データベースからデータを取得して上記データキャッシュに格納すると共に、上記オブジェクトリファレンスを更新するデータベース管理部とを備え、上記データベースサーバにおける上記データベース管理部、上記データベース、上記データキャッシュ、上記オブジェクトリファレンスを、1チップのシステムLSIに集積したデータベースサーバにおけるデータベース管理部、データベース、データキャッシュ、オブジェクトリファレンスを、1チップのシステムLSIに集積したものである
【0014】
【発明の実施の形態】
以下、この発明の実施の一形態を説明する。
実施の形態1.
図1は実施の形態1によるデータベース検索システムの構成を示す図である。図において、クライアント1,ネットワーク5は、従来の図7の構成と同一のものである。20はWebサーバであり、ネットワーク5を経由してクライアント1からのサービス要求を受信し、クライアント1にサービスを提供する。30はデータベースサーバであり、Webサーバ20からのデータ転送要求を受信し、保有しているデータを検索し、ネットワーク5を経由してWebサーバ20に転送する。
【0015】
また、図1のWebサーバ20において、21は要求処理部であり、クライアント1からのサービス要求を受信し、必要であれば、データベースサーバ30からデータの転送を受けて、クライアント1にサービスを提供する。要求処理部21の機能は、図示されていないCPUとアプリケーションソフトウェアにより実現される。22はデータベースサーバ30から転送されたデータオブジェクトであり、RAM等に格納されている。
【0016】
さらに、図1のWebサーバ20において、23はデータオブジェクト22とデータベースサーバ30が保有するデータとを関連づけたデータベースリファレンスであり、RAM等に格納されている。
【0017】
さらに、図1のWebサーバ20において、要求処理部21,データオブジェクト22,データベースリファレンス23は、システムLSIとして、1チップのWebサーバチップ200の中に集積されている。
【0018】
さらに、図1のデータベースサーバ30において、31はデータベース管理部であり、Webサーバ20の要求処理部21からのデータ転送の要求を受け、該当するデータを取得して転送する。データベース管理部31の機能は、図示されていないCPUと、データベース管理システム等のソフトウェアにより実現される。32はサービスを提供するためのデータが1ギガバイトを越える大容量のRAM等に格納されたデータベースである。従来の図7におけるディスク4に格納されていたデータが、このデータベース32に格納されている。
【0019】
さらに、図1のデータベースサーバ30において、33はデータキャッシュであり、Webサーバ20からの転送要求を受け、データベース32から取得されたデータが格納されている。34はRAM等に格納されたオブジェクトリファレンスであり、データベース32、データキャッシュ33と、Webサーバ20が保有しているデータオブジェクト22の相関を取っている。
【0020】
さらに、図1のデータベースサーバ30において、データベース管理部31,データベース32,データキャッシュ33,オブジェクトリファレンス34は、システムLSIとして、1チップのデータベースサーバチップ300の中に集積されている。
【0021】
図2はデータベースリファレンス23が保有する情報を示す図である。図において、231はデータベース32が保有するデータのインデックスであり、232はそのデータを保有しているデータベースサーバのURL(Universal Resource Locator)情報であり、要求されたデータにアクセスするためのネットワーク5上におけるデータベースサーバ30のIP(Internet Protocol)アドレスが示されている。ここで、URLは、ネットワーク5上の各種情報リソース(データベース)にアクセスする手段と、リソースの名前の指定方法を定めた規格である。
【0022】
また、図2において、233はデータオブジェクト22への参照情報であり、データ格納されているデータオブジェクト22のアドレスが示されている。データベースリファレンス23は、図2に示す各情報をリスト形式で保有している。
【0023】
図3はオブジェクトリファレンス34が保有する情報を示す図である。図において、341はデータベース32への参照情報であり、データベース32中のデータのインデックスが示されている。342はデータキャッシュ33への参照情報であり、データキャッシュ33中のデータが格納されているアドレスが示されている。343はWebサーバ20のURL情報であり、ネットワーク5上のWebサーバ20のIPアドレスが示されている。オブジェクトリファレンス34は、図3に示す各情報をリスト形式で保有している。
【0024】
次に動作について説明する。
図4及び図5はデータベースの検索処理を示すフローチャートである。図4のステップST11において、Webサーバ20の要求処理部21は、クライアント1からのサービス要求を受信する。ステップST12において、要求処理部21はデータベースリファレンス23を参照し、ステップST13において、要求処理部21は、データオブジェクト22にクライアント1からのサービス要求を実現するためのデータが存在するかを判断する。
【0025】
上記ステップST13において、データオブジェクト22に、クライアント1からのサービス要求を実現するためのデータが存在する場合、ステップST14において、要求処理部21はデータオブジェクト22から該当するデータを取得する。ステップST15において、要求処理部21は、クライアント1からのサービス要求を実現するために、更にデータが必要であるかを確認し、必要であれば、ステップST12に戻って、ステップST12以降の処理を行う。上記ステップST15において、更にデータが必要でない場合には、ステップST16において、要求処理部21は、取得したデータにより、ネットワーク5を経由してクライアント1に要求されたサービスを提供する。
【0026】
上記ステップST13において、データオブジェクト22に、クライアント1からのサービス要求を実現するためのデータが存在しない場合、ステップST17において、要求処理部21は、データベースリファレンス23を参照し、そのデータを保有しているデータベースサーバ30のIPアドレスを取得して、必要なデータの転送をデータベースサーバ30に要求する。
【0027】
図5のステップST18において、データベースサーバ30のデータベース管理部31は、要求処理部21からのデータ転送要求を受信する。ステップST19において、データベース管理部31は、転送要求を受けたデータのインデックスからオブジェクトリファレンス34を参照し、データキャッシュ33に必要なデータが格納されているかを確認する。
【0028】
上記ステップST19において、データキャッシュ33に必要なデータが格納されている場合、ステップST20において、データベース管理部31は、データキャッシュ33から必要なデータを取得する。
【0029】
ステップST21において、データベース管理部31は、取得したデータをWebサーバ20の要求処理部21に転送する。ステップST22において、要求処理部21は、転送されたデータをデータオブジェクト22に格納し、図4のステップST14以降の処理を行う。
【0030】
上記ステップST19において、データキャッシュ33に必要なデータが格納されていない場合、ステップST23において、データベース管理部31は、データベース32から必要なデータを取得する。ステップST24において、データベース管理部31は、取得したデータをデータキャッシュ33に格納し、ステップST25において、データベース管理部31は、オブジェクトリファレンス34を更新する。すなわち、取得したデータのインデックス341に対応して、そのデータを格納したキャッシュアドレス342と要求のあったWebサーバ20のIPアドレス343を追加する。
【0031】
ステップST25におけるオブジェクトリファレンス34の更新処理後に、上記ステップ20以降の処理を行う。
【0032】
図6はデータベース32の更新処理を示すフローチャートである。ステップST31において、データベースサーバ30のデータベース管理部31は、オペレータからデータベース32の更新要求を受けると、ステップST32において、データベース管理部31は、データベース32における更新対象のデータをロックする。
【0033】
ステップST33において、データベース管理部31は、オブジェクトリファレンス34に、更新対象のデータのリファレンス(インデックス)が存在するかを確認し、更新対象のデータのリファレンス(インデックス)が存在しない場合、ステップST34において、データベース管理部31は、データベース32のデータを更新しロックを解除する。
【0034】
上記ステップST33において、更新対象のデータのリファレンス(インデックス)が存在する場合、ステップST35において、データベース管理部31は、データキャッシュ33の更新対象のデータをロックし、オペレータからのデータベース32の更新要求を、Webサーバ20に通知する。ステップST36において、Webサーバ20の要求処理部21は、データオブジェクト22の更新対象のデータロックする。
【0035】
ステップST37において、データベースサーバ30のデータベース管理部31は、データベース32のデータを更新してロックを解除し、ステップST38において、データベース管理部31は、データキャッシュ33のデータを更新してロックを解除する。ステップST39において、Webサーバ20の要求処理部21は、データオブジェクト22のデータを更新してロックを解除する。
【0036】
以上のように、この実施の形態1によれば、Webサーバ20にキャッシュ機能を持つデータオブジェクト22を備え、データベースリファレンス23とオブジェクトリファレンス34により、Webサーバ20とデータベースサーバ30が保有するデータの相関を取ることにより、ネットワーク環境において高速キャッシュを実現し、ネットワーク5上で高速にデータベースを検索できるという効果が得られる。
【0037】
また、Webサーバ20において、要求処理部21,データオブジェクト22,データベースリファレンス23が、システムLSIとして、1チップのWebサーバチップ200の中に集積されており、かつ、データベースサーバ30において、データベース管理部31,データベース32,データキャッシュ33,オブジェクトリファレンス34が、システムLSIとして、1チップのデータベースチップ300の中に集積されていることにより、従来のように、データキャッシュを構成しているメモリが、データベースサーバ3内のCPUと別のLSI上に実装されているのに比べ、メモリとCPU間の配線を短くすることができて、すなわち、図1における要求処理部21とデータオブジェクト22,データベースリファレンス23間、及びデータベース管理部31とデータベース32,データキャッシュ33,オブジェクトリファレンス34間の配線を短くすることができて、クロストークを減らすことができ、要求処理部21,データベース管理部31を実現するCPUのクロック周波数を下げる必要がなく、高速処理が行えるという効果が得られる。
【0038】
【発明の効果】
以上のように、この発明によれば、Webサーバにデータベースサーバから転送されたデータを格納するデータオブジェクトを備え、データベースリファレンスとオブジェクトリファレンスにより、Webサーバとデータベースサーバが保有するデータの相関を取ることにより、ネットワーク環境において高速キャッシュを実現し、ネットワーク上で高速にデータベースを検索できるという効果がある。
【0039】
この発明によれば、Webサーバにおける要求処理部、データオブジェクト、データリファレンスを、1チップのシステムLSIに集積することにより、配線を短くすることができて、クロストークを減らすことができ、要求処理部21を実現するCPUのクロック周波数を下げる必要がなく、高速処理が行えるという効果がある。
【0040】
この発明によれば、データベースサーバにおけるデータベース管理部、データベース、データキャッシュ、オブジェクトリファレンスを、1チップのシステムLSIに集積することにより、配線を短くすることができて、クロストークを減らすことができ、データベース管理部31を実現するCPUのクロック周波数を下げる必要がなく、高速処理が行えるという効果がある。
【図面の簡単な説明】
【図1】 この発明の実施の形態1によるデータベース検索システムの構成を示す図である。
【図2】 この発明の実施の形態1によるデータベースリファレンスが保有する情報を示す図である。
【図3】 この発明の実施の形態1によるオブジェクトリファレンスが保有する情報を示す図である。
【図4】 この発明の実施の形態1によるデータベースの検索処理を示すフローチャートである。
【図5】 この発明の実施の形態1によるデータベースの検索処理を示すフローチャートである。
【図6】 この発明の実施の形態1によるデータベースの更新処理を示すフローチャートである。
【図7】 従来のデータベース検索システムの構成を示す図である。
【符号の説明】
1 クライアント、5 ネットワーク、20 Webサーバ、21 要求処理部、22 データオブジェクト、23 データベースリファレンス、30 データベースサーバ、31 データベース管理部、32 データベース、33 データキャッシュ、34 オブジェクトリファレンス。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a database search system that realizes a high-speed cache in a network environment.
[0002]
[Prior art]
FIG. 7 is a diagram showing the configuration of a conventional database search system. In the figure, 1 is a client that transmits a service request, and 2 is a service request received from a client 1 via a network 5 using Internet technology. Web server. A database server 3 receives a data transfer request from the Web server 2, searches for the corresponding data from the disk 4 that holds the data, and transfers the data to the Web server 2 via the network 5. In general, the Web server 2 is held by a service provider on the network 5. In FIG. 7, it is assumed that a plurality of clients 1, Web servers 2, and database servers 3 exist on the network 5.
[0003]
Next, the operation will be described.
The client 1 sends a service request to the Web server 2 via the network 5 using a browser. Receiving the service request, the Web server 2 identifies the database server 3 that manages data necessary for realizing the service, and transmits a data transfer request via the network 5.
[0004]
Upon receiving the data transfer request, the database server 3 extracts the corresponding data from the disk 4 that holds the data, and transfers the extracted data to the Web server 2 that requested the request via the network 5. The Web server 2 processes the acquired data if necessary, and provides a service to the client 1 that has made a service request via the network 5.
[0005]
[Problems to be solved by the invention]
Since the conventional database search system is configured as described above, it must be searched through a low-speed interface to the disk 4, and when searching a large amount of data online via the network 5. There was a problem that it could not be searched at high speed.
[0006]
In order to solve the above problems, conventionally, when data retrieved from the disk 4 is stored in a data cache built in the database server 3 and a data transfer request is received from the Web server 2. Uses a method of transferring the corresponding data from the data cache to the Web server 2. However, in the database server 3, the memory constituting the data cache is mounted on a different LSI from the CPU in the database server 3, and in order to increase the speed, the data width between the CPU and the memory, that is, The bus width needs to be increased. As a result, the crosstalk increases with an increase in the bus length between the memory and the CPU, and it is necessary to lower the clock frequency of the CPU as a countermeasure. As a result, the processing is slowed and the speed is increased. There was a problem of difficulty.
[0007]
The present invention has been made to solve the above-described problems, and an object of the present invention is to provide a database search system that realizes a high-speed cache in a network environment and can search a database on the network 5 at high speed.
[0008]
[Means for Solving the Problems]
The database search system according to the present invention receives a service request from a client via a network, acquires necessary data and provides a service from the client, and sends a data transfer request from the Web server. And a database server that retrieves data from a stored database and transfers the data to the Web server, wherein the Web server stores the data transferred from the database server, and the data object If the data reference necessary to realize the service request is stored in the data object, the database reference that correlates the data stored in the database server and the data held by the database server, the data object If the data required for realizing the service request is not stored in the data object, the database server is referred to by referring to the database reference. A request processing unit for requesting transfer of necessary data, obtaining the necessary data, and providing the requested service to the client. The database server stores the data retrieved from the database. Data cache, data stored in the database, object reference that correlates data stored in the data cache and data stored in the data object, and necessary data from the request processing unit Upon receiving a transfer request, the above object When the necessary data is stored in the data cache, the data is acquired from the data cache and transferred to the request processing unit, and the necessary data is not stored in the data cache. A database management unit that obtains data from the database and stores the data in the data cache, and updates the object reference . The request processing unit, the data object, and the data reference in a Web server are stored in one chip. It is integrated in the system LSI .
[0013]
The database search system according to the present invention receives a service request from a client via a network, acquires necessary data and provides a service from the client, and sends a data transfer request from the Web server. In the database search system comprising: a database server that retrieves data from a stored database and transfers the data to the Web server, the Web server stores data transferred from the database server; and When the database reference that correlates the data stored in the data object and the data held by the database server and the data object stores data necessary to realize the service request, the data Data is obtained from the data object, the requested service is provided to the client, and if the data object does not contain the data necessary for realizing the service request, refer to the database reference, and A request processing unit that requests the database server to transfer necessary data, obtains the necessary data, and then provides the requested service to the client, and the database server retrieves the data retrieved from the database. A data cache that stores data, an object reference that correlates data stored in the database, data stored in the data cache, and data stored in the data object, and a request from the request processing unit Received a request for data transfer When the necessary data is stored in the data cache with reference to the object reference, the data is acquired from the data cache and transferred to the request processing unit, and the necessary data is stored in the data cache. A database management unit that obtains data from the database and stores the data in the data cache and updates the object reference, the database management unit in the database server, the database, the data cache, and the object A database management unit, a database, a data cache, and an object reference in a database server in which a reference is integrated in a one-chip system LSI are integrated in a one-chip system LSI. .
[0014]
DETAILED DESCRIPTION OF THE INVENTION
An embodiment of the present invention will be described below.
Embodiment 1 FIG.
FIG. 1 is a diagram showing a configuration of a database search system according to the first embodiment. In the figure, a client 1 and a network 5 are the same as the conventional configuration of FIG. A Web server 20 receives a service request from the client 1 via the network 5 and provides a service to the client 1. Reference numeral 30 denotes a database server, which receives a data transfer request from the Web server 20, searches for stored data, and transfers the data to the Web server 20 via the network 5.
[0015]
Further, in the Web server 20 of FIG. 1, reference numeral 21 denotes a request processing unit which receives a service request from the client 1 and, if necessary, receives data transfer from the database server 30 to provide the client 1 with a service. To do. The function of the request processing unit 21 is realized by a CPU and application software not shown. A data object 22 transferred from the database server 30 is stored in a RAM or the like.
[0016]
Further, in the Web server 20 of FIG. 1, reference numeral 23 denotes a database reference that associates the data object 22 with data held by the database server 30, and is stored in a RAM or the like.
[0017]
Further, in the Web server 20 of FIG. 1, the request processing unit 21, the data object 22, and the database reference 23 are integrated in a one-chip Web server chip 200 as a system LSI.
[0018]
Further, in the database server 30 of FIG. 1, reference numeral 31 denotes a database management unit, which receives a data transfer request from the request processing unit 21 of the Web server 20 and acquires and transfers the corresponding data. The functions of the database management unit 31 are realized by a CPU (not shown) and software such as a database management system. Reference numeral 32 denotes a database in which data for providing a service is stored in a large-capacity RAM exceeding 1 gigabyte. The data stored in the conventional disk 4 in FIG. 7 is stored in this database 32.
[0019]
Further, in the database server 30 of FIG. 1, reference numeral 33 denotes a data cache, which stores data acquired from the database 32 in response to a transfer request from the Web server 20. Reference numeral 34 denotes an object reference stored in a RAM or the like, which correlates the database 32, the data cache 33, and the data object 22 held by the Web server 20.
[0020]
Further, in the database server 30 of FIG. 1, a database management unit 31, a database 32, a data cache 33, and an object reference 34 are integrated as a system LSI in a one-chip database server chip 300.
[0021]
FIG. 2 is a diagram showing information held in the database reference 23. In the figure, reference numeral 231 denotes an index of data held by the database 32, and reference numeral 232 denotes URL (Universal Resource Locator) information of the database server holding the data, which is on the network 5 for accessing the requested data. The IP (Internet Protocol) address of the database server 30 in FIG. Here, the URL is a standard that defines means for accessing various information resources (database) on the network 5 and a method for specifying the name of the resource.
[0022]
In FIG. 2, reference numeral 233 denotes reference information to the data object 22, which indicates the address of the data object 22 in which data is stored. The database reference 23 holds each piece of information shown in FIG. 2 in a list format.
[0023]
FIG. 3 is a diagram showing information held by the object reference 34. In the figure, reference numeral 341 denotes reference information to the database 32, and an index of data in the database 32 is shown. Reference numeral 342 denotes reference information to the data cache 33, which indicates an address where data in the data cache 33 is stored. Reference numeral 343 denotes URL information of the Web server 20, which indicates the IP address of the Web server 20 on the network 5. The object reference 34 holds each piece of information shown in FIG. 3 in a list format.
[0024]
Next, the operation will be described.
4 and 5 are flowcharts showing database search processing. In step ST <b> 11 of FIG. 4, the request processing unit 21 of the Web server 20 receives a service request from the client 1. In step ST12, the request processing unit 21 refers to the database reference 23. In step ST13, the request processing unit 21 determines whether data for realizing a service request from the client 1 exists in the data object 22.
[0025]
In step ST13, when the data object 22 includes data for realizing a service request from the client 1, the request processing unit 21 acquires the corresponding data from the data object 22 in step ST14. In step ST15, the request processing unit 21 confirms whether more data is necessary to realize the service request from the client 1. If necessary, the request processing unit 21 returns to step ST12 and performs the processing after step ST12. Do. If no further data is required in step ST15, in step ST16, the request processing unit 21 provides the requested service to the client 1 via the network 5 using the acquired data.
[0026]
In step ST13, when the data object 22 does not contain data for realizing the service request from the client 1, in step ST17, the request processing unit 21 refers to the database reference 23 and holds the data. The database server 30 is requested to transfer necessary data.
[0027]
In step ST <b> 18 of FIG. 5, the database management unit 31 of the database server 30 receives the data transfer request from the request processing unit 21. In step ST19, the database management unit 31 refers to the object reference 34 from the index of the data for which the transfer request has been received, and confirms whether necessary data is stored in the data cache 33.
[0028]
If necessary data is stored in the data cache 33 in step ST19, the database management unit 31 acquires necessary data from the data cache 33 in step ST20.
[0029]
In step ST <b> 21, the database management unit 31 transfers the acquired data to the request processing unit 21 of the Web server 20. In step ST22, the request processing unit 21 stores the transferred data in the data object 22, and performs the processes after step ST14 in FIG.
[0030]
If the necessary data is not stored in the data cache 33 in step ST19, the database management unit 31 acquires necessary data from the database 32 in step ST23. In step ST24, the database management unit 31 stores the acquired data in the data cache 33. In step ST25, the database management unit 31 updates the object reference 34. That is, corresponding to the acquired data index 341, the cache address 342 storing the data and the IP address 343 of the Web server 20 that requested it are added.
[0031]
After the update processing of the object reference 34 in step ST25, the processing after step 20 is performed.
[0032]
FIG. 6 is a flowchart showing the update process of the database 32. In step ST31, when the database management unit 31 of the database server 30 receives an update request for the database 32 from the operator, the database management unit 31 locks data to be updated in the database 32 in step ST32.
[0033]
In step ST33, the database management unit 31 confirms whether the reference (index) of the update target data exists in the object reference 34. If the reference (index) of the update target data does not exist, in step ST34, The database management unit 31 updates the data in the database 32 and releases the lock.
[0034]
In step ST33, if there is a reference (index) of the data to be updated, in step ST35, the database management unit 31 locks the data to be updated in the data cache 33 and issues an update request for the database 32 from the operator. , Notify the Web server 20. In step ST36, the request processing unit 21 of the Web server 20 locks the data to be updated of the data object 22.
[0035]
In step ST37, the database management unit 31 of the database server 30 updates the data in the database 32 to release the lock. In step ST38, the database management unit 31 updates the data in the data cache 33 to release the lock. . In step ST39, the request processing unit 21 of the Web server 20 updates the data of the data object 22 and releases the lock.
[0036]
As described above, according to the first embodiment, the Web server 20 includes the data object 22 having a cache function, and the database reference 23 and the object reference 34 correlate the data held by the Web server 20 and the database server 30. As a result, it is possible to realize a high-speed cache in a network environment and to search a database on the network 5 at a high speed.
[0037]
In the Web server 20, the request processing unit 21, the data object 22, and the database reference 23 are integrated as a system LSI in the one-chip Web server chip 200, and the database server 30 has a database management unit. 31, the database 32, the data cache 33, and the object reference 34 are integrated as a system LSI in the one-chip database chip 300, so that the memory constituting the data cache is stored in the database as in the conventional case. The wiring between the memory and the CPU can be shortened as compared to the case where the CPU in the server 3 is mounted on a different LSI, that is, the request processing unit 21, the data object 22, and the database reference 23 in FIG. while In addition, the wiring between the database management unit 31 and the database 32, the data cache 33, and the object reference 34 can be shortened, crosstalk can be reduced, and the CPU clock for realizing the request processing unit 21 and the database management unit 31 can be reduced. There is no need to lower the frequency, and the effect of being able to perform high-speed processing is obtained.
[0038]
【The invention's effect】
As described above, according to the present invention, the Web server is provided with the data object for storing the data transferred from the database server, and the data held by the Web server and the database server is correlated by the database reference and the object reference. As a result, a high-speed cache is realized in the network environment, and the database can be searched at high speed on the network.
[0039]
According to the present invention, by integrating a request processing unit, a data object, and a data reference in a Web server in a one-chip system LSI, wiring can be shortened and crosstalk can be reduced. There is no need to lower the clock frequency of the CPU that realizes the unit 21, and there is an effect that high-speed processing can be performed.
[0040]
According to the present invention, by integrating the database management unit, database, data cache, and object reference in the database server in a one-chip system LSI, wiring can be shortened and crosstalk can be reduced. There is no need to lower the clock frequency of the CPU that implements the database management unit 31, and there is an effect that high-speed processing can be performed.
[Brief description of the drawings]
FIG. 1 is a diagram showing a configuration of a database search system according to Embodiment 1 of the present invention.
FIG. 2 is a diagram showing information held in a database reference according to the first embodiment of the present invention.
FIG. 3 is a diagram showing information held by an object reference according to the first embodiment of the present invention.
FIG. 4 is a flowchart showing database search processing according to Embodiment 1 of the present invention;
FIG. 5 is a flowchart showing database search processing according to Embodiment 1 of the present invention;
FIG. 6 is a flowchart showing database update processing according to Embodiment 1 of the present invention;
FIG. 7 is a diagram showing a configuration of a conventional database search system.
[Explanation of symbols]
1 client, 5 network, 20 web server, 21 request processing unit, 22 data object, 23 database reference, 30 database server, 31 database management unit, 32 database, 33 data cache, 34 object reference.

Claims (2)

ネットワークを経由し、クライアントからのサービス要求を受け、必要なデータを取得して上記クライアントからのサービスを提供するWebサーバと、
上記Webサーバからのデータ転送要求を受けて、保有するデータベースからデータを検索し、上記Webサーバに転送するデータベースサーバと
を備えたデータベース検索システムにおいて、
上記Webサーバが、
上記データベースサーバから転送されたデータを格納するデータオブジェクトと、
上記データオブジェクトに格納されたデータと上記データベースサーバが保有するデータとの相関をとるデータベースリファレンスと、
上記データオブジェクトに上記サービス要求を実現するために必要なデータが格納されている場合、上記データオブジェクトからデータを取得して、上記クライアントに要求されたサービスを提供し、データオブジェクトに上記サービス要求を実現するために必要なデータが格納されていない場合、上記データベースリファレンスを参照して、上記データベースサーバに必要なデータの転送を要求し、上記必要なデータを取得してから、上記クライアントに要求されたサービスを提供する要求処理部と
を備え、
上記データベースサーバが、
データベースから検索されたデータを格納するデータキャッシュと、
上記データベースに保有されているデータと上記データキャッシュに格納されているデータと上記データオブジェクトに格納されたデータとの相関をとるオブジェクトリファレンスと、
上記要求処理部からの必要なデータ転送の要求を受け、上記オブジェクトリファレンスを参照して、上記データキャッシュに必要なデータが格納されている場合、上記データキャッシュからデータを取得して上記要求処理部に転送し、上記データキャッシュに必要なデータが格納されていない場合、上記データベースからデータを取得して上記データキャッシュに格納すると共に、上記オブジェクトリファレンスを更新するデータベース管理部とを備え、
Webサーバにおける上記要求処理部、上記データオブジェクト、上記データリファレンスを、1チップのシステムLSIに集積したことを特徴とするデータベース検索システム
A web server that receives a service request from a client via a network, obtains necessary data, and provides a service from the client;
In a database search system comprising: a database server that receives a data transfer request from the Web server, searches data stored in the database, and transfers the data to the Web server;
The web server is
A data object for storing data transferred from the database server;
A database reference that correlates the data stored in the data object and the data held by the database server;
If the data object stores data necessary to realize the service request, the data object is obtained from the data object, the requested service is provided to the client, and the service request is sent to the data object. If the data required for implementation is not stored, refer to the database reference, request the database server to transfer the necessary data, acquire the necessary data, and then request the client. And a request processing unit for providing
The database server is
A data cache for storing data retrieved from the database;
An object reference that correlates the data held in the database, the data stored in the data cache, and the data stored in the data object;
When the required data transfer request is received from the request processing unit, and the necessary data is stored in the data cache with reference to the object reference, the data is acquired from the data cache and the request processing unit And when the necessary data is not stored in the data cache, the database management unit obtains data from the database and stores the data in the data cache, and updates the object reference .
A database search system, wherein the request processing unit, the data object, and the data reference in a Web server are integrated in a one-chip system LSI .
ネットワークを経由し、クライアントからのサービス要求を受け、必要なデータを取得して上記クライアントからのサービスを提供するWebサーバと、
上記Webサーバからのデータ転送要求を受けて、保有するデータベースからデータを検索し、上記Webサーバに転送するデータベースサーバと
を備えたデータベース検索システムにおいて、
上記Webサーバが、
上記データベースサーバから転送されたデータを格納するデータオブジェクトと、
上記データオブジェクトに格納されたデータと上記データベースサーバが保有するデータとの相関をとるデータベースリファレンスと、
上記データオブジェクトに上記サービス要求を実現するために必要なデータが格納されている場合、上記データオブジェクトからデータを取得して、上記クライアントに要求されたサービスを提供し、データオブジェクトに上記サービス要求を実現するために必要なデータが格納されていない場合、上記データベースリファレンスを参照して、上記データベースサーバに必要なデータの転送を要求し、上記必要なデータを取得してから、上記クライアントに要求されたサービスを提供する要求処理部と
を備え、
上記データベースサーバが、
データベースから検索されたデータを格納するデータキャッシュと、
上記データベースに保有されているデータと上記データキャッシュに格納されているデ ータと上記データオブジェクトに格納されたデータとの相関をとるオブジェクトリファレンスと、
上記要求処理部からの必要なデータ転送の要求を受け、上記オブジェクトリファレンスを参照して、上記データキャッシュに必要なデータが格納されている場合、上記データキャッシュからデータを取得して上記要求処理部に転送し、上記データキャッシュに必要なデータが格納されていない場合、上記データベースからデータを取得して上記データキャッシュに格納すると共に、上記オブジェクトリファレンスを更新するデータベース管理部とを備え、
上記データベースサーバにおける上記データベース管理部、上記データベース、上記データキャッシュ、上記オブジェクトリファレンスを、1チップのシステムLSIに集積したことを特徴とすデータベース検索システム。
A web server that receives a service request from a client via a network, obtains necessary data, and provides a service from the client;
A database server that receives a data transfer request from the Web server, retrieves data from a database held by the Web server, and transfers the data to the Web server;
In a database search system equipped with
The web server is
A data object for storing data transferred from the database server;
A database reference that correlates the data stored in the data object and the data held by the database server;
If the data object stores data necessary to realize the service request, the data object is obtained from the data object, the requested service is provided to the client, and the service request is sent to the data object. If the data required for implementation is not stored, refer to the database reference, request the database server to transfer the necessary data, acquire the necessary data, and then request the client. A request processing unit that provides
With
The database server is
A data cache for storing data retrieved from the database;
And object reference correlating the data stored in the data and the data object stored in the data and the data cache that is held in the database,
When the required data transfer request is received from the request processing unit, and the necessary data is stored in the data cache with reference to the object reference, the data is acquired from the data cache and the request processing unit And when the necessary data is not stored in the data cache, the database management unit obtains data from the database and stores the data in the data cache, and updates the object reference.
The database management unit in the database server, the database, the data cache, the object reference, 1 database search system that is characterized in that integrated in the chip system LSI of.
JP02661899A 1999-02-03 1999-02-03 Database search system Expired - Fee Related JP4251699B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP02661899A JP4251699B2 (en) 1999-02-03 1999-02-03 Database search system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP02661899A JP4251699B2 (en) 1999-02-03 1999-02-03 Database search system

Publications (2)

Publication Number Publication Date
JP2000222272A JP2000222272A (en) 2000-08-11
JP4251699B2 true JP4251699B2 (en) 2009-04-08

Family

ID=12198479

Family Applications (1)

Application Number Title Priority Date Filing Date
JP02661899A Expired - Fee Related JP4251699B2 (en) 1999-02-03 1999-02-03 Database search system

Country Status (1)

Country Link
JP (1) JP4251699B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002300306A (en) * 2001-03-30 2002-10-11 Tsubasa System Co Ltd Telephone number information distribution method, telephone number information distribution program, and telephone number information distribution system
KR20030016085A (en) * 2001-08-20 2003-02-26 주식회사 엔버전스 The operating method of data server
US20130132372A1 (en) * 2011-11-17 2013-05-23 Benefitfocus.Com Systems and methods for dynamic service integration

Also Published As

Publication number Publication date
JP2000222272A (en) 2000-08-11

Similar Documents

Publication Publication Date Title
US20050240574A1 (en) Pre-fetching resources based on a resource lookup query
US7590747B2 (en) Distributed storage cluster architecture
US7203731B1 (en) Dynamic replication of files in a network storage system
US7428540B1 (en) Network storage system
US7266555B1 (en) Methods and apparatus for accessing remote storage through use of a local device
US7222150B1 (en) Network server card and method for handling requests received via a network interface
US8447827B2 (en) Providing local access to managed content
US20010047400A1 (en) Methods and apparatus for off loading content servers through direct file transfer from a storage center to an end-user
US7281168B1 (en) Failover architecture for local devices that access remote storage
US20080189383A1 (en) Distributed cache between servers of a network
US20070055702A1 (en) Metadata offload for a file server cluster
JP2004500660A5 (en)
JP2001526814A (en) Distributed cache, prefetch, copy method and system
JP2002501254A (en) Access to content addressable data over a network
JPH07262074A (en) Cache management method, computer file system and cache device
WO2024124663A1 (en) Method and apparatus for supporting batch cdn cache refresh
WO2010025653A1 (en) Searching information method, system, device, and vertical search engine register method
JP4251699B2 (en) Database search system
US20080133609A1 (en) Object-based storage system for defferring elimination of shared file and method thereof
US7660876B2 (en) Electronic file management
KR100475668B1 (en) Apparatus and method of providing information for grid resources in grid network and computer readable recording medium of recording process thereof
CN109309711A (en) A kind of virtual cache sharing method and system
CN116866429A (en) Data access method and related device
WO2000077668A3 (en) A method for caching xml documents viewable on devices with different displays
KR100249799B1 (en) A system and method for session retrieval and information sharing using mask in session cache and global cache server

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060117

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20071113

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20071113

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20071113

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080804

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081104

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081202

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20081224

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090120

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120130

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130130

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130130

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees