JP2001282829A - Device for and method of retrieval of database - Google Patents

Device for and method of retrieval of database

Info

Publication number
JP2001282829A
JP2001282829A JP2000090146A JP2000090146A JP2001282829A JP 2001282829 A JP2001282829 A JP 2001282829A JP 2000090146 A JP2000090146 A JP 2000090146A JP 2000090146 A JP2000090146 A JP 2000090146A JP 2001282829 A JP2001282829 A JP 2001282829A
Authority
JP
Japan
Prior art keywords
search
data
data item
computer
database
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.)
Granted
Application number
JP2000090146A
Other languages
Japanese (ja)
Other versions
JP3289003B2 (en
Inventor
Shigeo Sato
重雄 佐藤
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 JP2000090146A priority Critical patent/JP3289003B2/en
Publication of JP2001282829A publication Critical patent/JP2001282829A/en
Application granted granted Critical
Publication of JP3289003B2 publication Critical patent/JP3289003B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To decrease feed of data transfer about a device and method for retrieval of data in distributed database system which is distributed into plural computers. SOLUTION: A locus of database control 11 in a computer 1 sends a retrieved document that data item is converted into data item identifier function, A locus of database control 11 in a computer 2 converts data value contained in results of retrieval to data item identifier at a locus of generating data identifier 15, and sends a reply to a computer 1, A locus of database control 11 in a computer 1 generates a result of retrieval by converting data item identifier to data value at a locus of data item value restoration 14.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、複数の計算機にデ
ータが分散して存在する分散データベースシステムのデ
ータ検索方法及び装置に関し、データ転送量を削減する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data retrieval method and apparatus for a distributed database system in which data is distributed among a plurality of computers, and to reduce the data transfer amount.

【0002】[0002]

【従来の技術】図10は、従来の分散データベースシス
テムでのデータ検索装置の構成を示す図である。従来の
分散データベースシステムでは、計算機1上のユーザプ
ログラム10から、データベース制御システム19に対
して、データベース問合せ言語であるSQL文30aが
発行されると、データベース制御システム19は、デー
タベース定義情報16aを参照し、発行されたSQL文
から、データが存在する計算機2で実行可能なSQL文
40を生成し、そのSQL文40を、データが存在する
計算機2に送信する。
2. Description of the Related Art FIG. 10 is a diagram showing a configuration of a data search device in a conventional distributed database system. In the conventional distributed database system, when an SQL statement 30a, which is a database query language, is issued from the user program 10 on the computer 1 to the database control system 19, the database control system 19 refers to the database definition information 16a. Then, from the issued SQL statement, an SQL statement 40 executable by the computer 2 having the data is generated, and the SQL statement 40 is transmitted to the computer 2 having the data.

【0003】この場合、SQL文30aに指定されてい
るデータが複数の計算機に分散して格納されている場合
は、計算機1は、それぞれの計算機上のデータを検索す
るSQL文を生成し、各計算機に送信する。
In this case, if the data specified in the SQL statement 30a is distributed and stored in a plurality of computers, the computer 1 generates an SQL statement for searching data on each computer, and Send to computer.

【0004】計算機2上のデータベース制御システム1
9は、データ18aに対して、SQL文40に従って検
索を実行し、その検索結果41を計算機1に送信する。
A database control system 1 on a computer 2
9 executes a search on the data 18a according to the SQL sentence 40, and transmits the search result 41 to the computer 1.

【0005】計算機1は、発行したSQL文に対するデ
ータベース検索結果をすべての計算機から受信し、それ
を集めた最終結果39aをユーザプログラム10に返
す。
The computer 1 receives the database search result for the issued SQL statement from all the computers, and returns a final result 39a of the collected data to the user program 10.

【0006】このように、複数の計算機にデータが存在
し、その計算機がネットワークで接続されている分散デ
ータベースシステムでは、計算機間で送受信するデータ
量が多くなると、データ転送に時間を要し、全体として
のレスポンスが低下するという問題がある。
As described above, in a distributed database system in which data exists in a plurality of computers and the computers are connected via a network, when the amount of data transmitted and received between the computers increases, it takes time for data transfer, and There is a problem that the response is reduced.

【0007】この問題を解決する手段として、特開平6
−301578では、SQL文を送信するのではなく、
送信IDを送信することにより、計算機間のデータ送信
量を少なくする方法が開示されている。以下、特開平6
−301578での動作について、図面を参照しながら
簡単に説明する。
As means for solving this problem, Japanese Patent Laid-Open No.
At -301578, instead of sending an SQL statement,
A method of transmitting a transmission ID to reduce the amount of data transmitted between computers is disclosed. Hereinafter, JP-A-6
The operation at −301578 will be briefly described with reference to the drawings.

【0008】図11は、特開平6−301578のデー
タ検索装置の構成図である。データ検索装置は、データ
ベース操作言語(以下、DMLという。)によってデー
タベースのアクセスを行う応用プログラム101、変換
表104、クライアントDML変換手段105、及びク
ライアントDML格納手段106を有するクライアント
システム102と、DML実行手段107、データベー
ス108、DML格納ファイル109、サーバDML変
換手段110、及びサーバDML格納手段111を有す
るサーバ103とから構成される。
FIG. 11 is a block diagram of a data search apparatus disclosed in Japanese Patent Laid-Open No. 6-301578. The data search apparatus includes a client system 102 having an application program 101 for accessing a database in a database operation language (hereinafter, referred to as DML), a conversion table 104, a client DML conversion unit 105, and a client DML storage unit 106, and a DML execution. The server 103 includes a unit 107, a database 108, a DML storage file 109, a server DML conversion unit 110, and a server DML storage unit 111.

【0009】クライアントシステム102は、応用プロ
グラム101からDMLが発行される都度、プログラム
名とDMLとユニークに作成した送信IDとを対応付け
た変換表104を作成しておき、DMLが発行されると
変換表104を参照してDMLと送信IDの内、その長
さが短い方をサーバ103に送信する。
[0009] Each time a DML is issued from the application program 101, the client system 102 creates a conversion table 104 that associates the program name with the DML and a uniquely created transmission ID. With reference to the conversion table 104, the shorter one of the DML and the transmission ID is transmitted to the server 103.

【0010】サーバ103は、送信IDとDMLの対応
レコードをDML格納ファイル109に格納しておき、
送信IDを受信すると、サーバDML変換手段110は
DML格納ファイル109を参照してDMLに変換し、
データベース108にアクセスしてDMLを実行し、結
果をクライアントシステムに返却する。
[0010] The server 103 stores the correspondence record between the transmission ID and the DML in the DML storage file 109,
Upon receiving the transmission ID, the server DML conversion means 110 converts the data into DML with reference to the DML storage file 109,
The DML is accessed by accessing the database 108, and the result is returned to the client system.

【0011】以上のように、特開平6−301578で
は、DMLと送信IDのいずれか短い方をサーバに送信
することにより、分散データベースシステムでの計算機
間のデータ転送量を削減することを可能としている。
As described above, Japanese Patent Laid-Open No. Hei 6-301578 discloses that the shorter of the DML and the transmission ID is transmitted to the server, thereby reducing the data transfer amount between computers in the distributed database system. I have.

【0012】しかしながら、上記のような方法では、デ
ータベース検索結果はそのまま送信されるため、データ
ベース検索結果のデータ量が多い場合は、このデータ転
送に時間を要し、システム全体としてのレスポンスを改
善することはできない。このような具体例を以下に示
す。
However, in the above-described method, since the database search result is transmitted as it is, when the data amount of the database search result is large, it takes time to transfer the data, and the response of the entire system is improved. It is not possible. Such a specific example is shown below.

【0013】図10において、ユーザプログラム10か
ら発行されるSQL文が、図12に示す商品毎の売上合
計金額を集計するものであり、SQL文中に記述されて
いる売上明細表1の構造が図13に示すものである場
合、データベースを検索した結果、計算機2から計算機
1に返される内容は図14に示す形式となり、商品コー
ドの値とそれに対応する売上合計金額が、商品コードの
種類の数だけ返される。
In FIG. 10, the SQL statement issued from the user program 10 is for summing up the total sales amount for each product shown in FIG. 12, and the structure of the sales statement 1 described in the SQL statement is shown in FIG. 13, the contents returned from the computer 2 to the computer 1 as a result of searching the database are in the format shown in FIG. 14, and the value of the product code and the corresponding total sales amount are the number of types of the product code. Only returned.

【0014】そのため、商品コードの種類が多い場合に
は、計算機間のデータ転送量が多くなり、このデータ転
送に時間を要することになる。
Therefore, when there are many types of product codes, the amount of data transferred between computers increases, and this data transfer takes time.

【0015】[0015]

【発明が解決しようとする課題】本発明は、上記課題に
鑑み、データベース検索結果をネットワークを介して他
の計算機に送信する際に、そのデータ量を削減して、シ
ステムとしてのレスポンスを向上させることを目的とす
る。
SUMMARY OF THE INVENTION In view of the above-mentioned problems, the present invention improves the response as a system by reducing the data amount when transmitting a database search result to another computer via a network. The purpose is to:

【0016】[0016]

【課題を解決するための手段】この発明に係るデータベ
ース検索装置は、データ項目に含まれるデータ値を記憶
するデータベースを有する検索実行側計算機と、検索実
行計算機と接続し、検索を要求する検索要求側計算機と
からなるデータベース検索装置であって、上記検索要求
側計算機は、データ項目を指定して、データ項目に含ま
れるデータ値を含む検索結果を要求する検索要求を入力
する検索要求入力部と、入力した検索要求に基づいて、
データ項目を特定し、特定したデータ項目に含まれるデ
ータ値をデータ項目値識別子に変換することを要求する
データ項目識別子関数を含む検索文を生成する検索文生
成部と、生成した検索文を送信する検索文送信部とを有
し、上記検索実行側計算機は、上記検索文を受信する検
索文受信部と、受信した検索文に含まれるデータ識別子
関数で特定したデータ項目に含まれるデータ値を、デー
タベースから検索し、検索したデータ値を含む検索結果
を取得する検索実行部と、取得した検索結果に含まれる
データ値を、データ項目識別子に変換するデータ値変換
部と、変換したデータ項目識別子を含む検索結果を送信
する検索結果送信部とを有し、上記検索要求側計算機
は、更に、上記検索結果を受信する検索結果受信部と、
受信した検索結果に含まれるデータ項目識別子を、デー
タ値に変換するデータ項目識別子変換部と、変換したデ
ータ値を含む検索結果を出力する検索結果出力部とを有
することを特徴とする。
A database search device according to the present invention includes a search execution computer having a database for storing data values included in data items, and a search request for connecting to the search execution computer and requesting a search. A search request input unit for specifying a data item and inputting a search request requesting a search result including a data value included in the data item. , Based on the search request entered,
A search statement generation unit that specifies a data item, generates a search statement including a data item identifier function that requests to convert a data value included in the specified data item into a data item value identifier, and transmits the generated search statement A search sentence receiving unit for receiving the search sentence, and a data value included in the data item specified by the data identifier function included in the received search sentence. A search execution unit that searches a database and obtains a search result including the searched data value, a data value conversion unit that converts a data value included in the obtained search result into a data item identifier, and a converted data item identifier And a search result transmitting unit that transmits a search result, wherein the search requesting computer further comprises: a search result receiving unit that receives the search result;
It is characterized by having a data item identifier conversion unit for converting a data item identifier included in the received search result into a data value, and a search result output unit for outputting a search result including the converted data value.

【0017】上記データ項目識別子は、上記データ値よ
りもデータサイズが小さいことを特徴とする。
[0017] The data item identifier is characterized in that the data size is smaller than the data value.

【0018】上記検索要求側計算機と、上記検索実行側
計算機は、ネットワークを介して接続し、上記検索文生
成部は、検索要求で指定したデータ項目に基づいて、上
記検索実行側計算機を特定し、上記検索文送信部は、特
定した上記検索実行側計算機に、上記検索文を送信する
ことを特徴とする。
The search requesting computer and the search execution computer are connected via a network, and the search statement generation unit specifies the search execution computer based on the data item specified in the search request. The search text transmitting unit transmits the search text to the specified search execution computer.

【0019】上記データ値変換部は、データ値を管理す
る階層的構造を記憶する検索実行側分類情報記憶部を有
し、上記階層的構造に基づいて、上記データ値を、上記
データ項目識別子に変換し、上記データ項目識別子変換
部は、上記検索実行側分類情報記憶部で記憶する階層的
構造と同一の階層的構造を記憶する検索要求側分類情報
記憶部を有し、上記同一の階層的構造に基づいて、上記
データ項目識別子を、上記データ値に変換することを特
徴とする。
The data value conversion unit has a search execution side classification information storage unit that stores a hierarchical structure for managing data values, and stores the data value in the data item identifier based on the hierarchical structure. The data item identifier conversion unit has a search request side classification information storage unit that stores the same hierarchical structure as the hierarchical structure stored in the search execution side classification information storage unit. The method is characterized in that the data item identifier is converted into the data value based on a structure.

【0020】この発明に係るデータベース検索方法は、
データ項目に含まれるデータ値を記憶するデータベース
を有する検索実行側計算機と、検索実行計算機と接続
し、検索を要求する検索要求側計算機とからなるデータ
ベース検索装置を用いたデータベース検索方法であっ
て、上記検索要求側計算機が、検索を要求する工程は、
データ項目を指定して、データ項目に含まれるデータ値
を含む検索結果を要求する検索要求を入力する検索要求
入力工程と、入力した検索要求に基づいて、データ項目
を特定し、特定したデータ項目に含まれるデータ値をデ
ータ項目値識別子に変換することを要求するデータ項目
識別子関数を含む検索文を生成する検索文生成工程と、
生成した検索文を送信する検索文送信工程とを有し、上
記検索実行側計算機が、検索を実行する工程は、上記検
索文を受信する検索文受信工程と、受信した検索文に含
まれるデータ識別子関数で特定したデータ項目に含まれ
るデータ値を、データベースから検索し、検索したデー
タ値を含む検索結果を取得する検索実行工程と、取得し
た検索結果に含まれるデータ値を、データ項目識別子に
変換するデータ値変換工程と、変換したデータ項目識別
子を含む検索結果を送信する検索結果送信工程とを有
し、上記検索要求側計算機が、検索結果を取得する工程
は、上記検索結果を受信する検索結果受信工程と、受信
した検索結果に含まれるデータ項目識別子を、データ値
に変換するデータ項目識別子変換工程と、変換したデー
タ値を含む検索結果を出力する検索結果出力工程とを有
することを特徴とする。
[0020] The database search method according to the present invention comprises:
A database search method using a database search device including a search execution computer having a database for storing data values included in data items and a search requesting computer connected to the search execution computer and requesting a search, The step in which the search requesting computer requests a search,
A search request inputting step of specifying a data item and inputting a search request requesting a search result including a data value included in the data item; and specifying the data item based on the input search request, and specifying the specified data item. A search statement generating step of generating a search statement including a data item identifier function requesting to convert a data value included in the data item value identifier into a data item value identifier;
A search sentence transmitting step of transmitting the generated search sentence, wherein the step of executing a search by the search execution side computer includes a search sentence receiving step of receiving the search sentence, and data included in the received search sentence A search step for retrieving a data value included in the data item specified by the identifier function from the database and obtaining a search result including the searched data value, and a data value included in the obtained search result as a data item identifier. A data value converting step of converting, and a search result transmitting step of transmitting a search result including the converted data item identifier, wherein the search requesting computer acquires the search result, the step of receiving the search result A search result receiving step, a data item identifier conversion step of converting a data item identifier included in the received search result into a data value, and a search result including the converted data value And having a search result output step of outputting.

【0021】[0021]

【発明の実施の形態】実施の形態1.本発明の実施例に
ついて図面を参照して説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiment 1 Embodiments of the present invention will be described with reference to the drawings.

【0022】図1は、本発明における分散データベース
システムのデータ検索装置の構成例を示す図である。デ
ータ検索装置は、計算機1、計算機2の2台の計算機で
構成される。計算機1は、ユーザプログラム10、デー
タベース制御部11、問合せ解析部12、識別子関数生
成部13、データ項目値復元部14、データベース定義
情報16a、分類情報17から構成され、計算機2は、
データベース制御部11、問合せ解析部12、データ識
別子生成部15、データベース定義情報16b、分類情
報17、データ18aから構成される。
FIG. 1 is a diagram showing an example of the configuration of a data retrieval device of a distributed database system according to the present invention. The data search device includes two computers, a computer 1 and a computer 2. The computer 1 includes a user program 10, a database control unit 11, a query analysis unit 12, an identifier function generation unit 13, a data item value restoring unit 14, a database definition information 16a, and a classification information 17.
It comprises a database control unit 11, a query analysis unit 12, a data identifier generation unit 15, database definition information 16b, classification information 17, and data 18a.

【0023】ここで、分類情報17とは、取り得る要素
の種類があらかじめ分かっている有限個のデータ項目に
対して、その分類を定義した情報であり、1以上の階層
レベルを持った構造のデータ値を扱うものである。例え
ば、売上明細表に含まれる商品コードは、取り得る値が
決まっているため分類情報として定義できる。商品コー
ドの場合は、後述する図5のように商品中分類を上位レ
ベルとして定義することもできる。
Here, the classification information 17 is information that defines the classification of a finite number of data items whose types of possible elements are known in advance, and has a structure having one or more hierarchical levels. It handles data values. For example, a product code included in a sales statement can be defined as classification information because possible values are determined. In the case of a product code, the in-product category can be defined as a higher level as shown in FIG. 5 described later.

【0024】次に、動作について説明する。計算機1上
でユーザプログラム10がSQL文30aを発行する
と、データベース制御部11は、発行されたSQL文を
問合せ解析部12に渡す。
Next, the operation will be described. When the user program 10 issues an SQL statement 30 a on the computer 1, the database control unit 11 passes the issued SQL statement to the query analysis unit 12.

【0025】問合せ解析部12では、渡されたSQL文
30aを解析し、データベース定義情報16aを参照
し、SQL文に記述されているデータが計算機1上に存
在しない場合は、SQL文30aから、データが存在す
る計算機上で実行可能な検索文を生成する。これは、計
算機1上のデータベース定義情報16aでデータが存在
する計算機2上のデータ名と異なる名前を付けることを
可能とするためである。ここで生成した検索文31a
は、識別子関数生成部13に渡される。
The query analysis unit 12 analyzes the passed SQL statement 30a and refers to the database definition information 16a. If the data described in the SQL statement does not exist on the computer 1, the query statement 30a Generate a search statement that can be executed on the computer where the data exists. This is because the database definition information 16a on the computer 1 makes it possible to assign a name different from the data name on the computer 2 where the data exists. The search sentence 31a generated here
Is passed to the identifier function generator 13.

【0026】識別子関数生成部13では、分類情報17
を参照し、渡された検索文中の選択項目に分類情報とし
て定義されているデータ項目が存在すれば、そのデータ
項目を用いたデータ項目識別子関数を生成し、検索文中
のデータ項目を前記データ項目識別子関数で置き替え、
置換後の検索文32aを、再びデータベース制御部11
に戻す。
In the identifier function generating unit 13, the classification information 17
, And if there is a data item defined as classification information in the selection item in the passed search sentence, a data item identifier function using the data item is generated, and the data item in the search sentence is replaced with the data item Replaced by an identifier function,
The search sentence 32a after the replacement is transmitted to the database control unit 11 again.
Return to

【0027】データベース制御部11は、前記データ項
目識別子関数を含んだ検索文32aを、データが存在す
る計算機2に送信する。
The database control unit 11 transmits a search statement 32a including the data item identifier function to the computer 2 where the data exists.

【0028】検索文を受信した計算機2は、問合せ解析
部12で、データベース定義情報16bを参照し、検索
文32aの解析を行う。
The computer 2 that has received the search sentence analyzes the search sentence 32a by referring to the database definition information 16b in the query analysis unit 12.

【0029】この場合、データ18aは、計算機2上に
存在するので、データベース制御部11は、問合せ解析
部12での解析結果33aを用いてデータ検索処理を実
行する。
In this case, since the data 18a exists on the computer 2, the database control unit 11 executes a data search process using the analysis result 33a from the query analysis unit 12.

【0030】データ項目識別子関数34については、デ
ータ識別子生成部15が、分類情報17を参照し、デー
タ項目識別子35を生成してデータベース制御部11に
返す。
For the data item identifier function 34, the data identifier generation unit 15 generates a data item identifier 35 with reference to the classification information 17 and returns it to the database control unit 11.

【0031】計算機2は、送信された検索文32aの結
果として、データ項目識別子を含んだ結果36aを計算
機1に送信する。
The computer 2 transmits a result 36a including the data item identifier to the computer 1 as a result of the transmitted search sentence 32a.

【0032】計算機1では、検索文の結果に含まれるデ
ータ項目識別子37については、データ項目値復元部1
4が、分類情報17を参照し、データ項目値38に復元
し、計算機2から戻された結果36aのデータ項目識別
子を実際のデータ項目値38に置き換えた最終的なデー
タベース検索結果39aをユーザプログラム10に返
す。
In the computer 1, for the data item identifier 37 included in the result of the search statement, the data item value restoring unit 1
4 refers to the classification information 17, restores to the data item value 38, and replaces the data item identifier of the result 36 a returned from the computer 2 with the actual data item value 38 and outputs the final database search result 39 a to the user program. Return to 10.

【0033】ここで、データ項目識別子について説明す
る。データ項目識別子は、階層レベル番号とレベル内の
通番を用いて表現する値であり、この表現により階層構
造内のすべての値を一意に識別することができる。図2
は、データの階層構造を示す図である。更に大きな構造
を想定し、最下層レベルの値の種類が10万種類程度、
階層レベル数が10程度とすると、階層レベル番号に4
Bit、レベル内通番に20Bit設ければすべての値
を一意に識別することが可能となるため、ここでは、デ
ータ項目識別子は24Bit(3Byte)の値をと
る。
Here, the data item identifier will be described. The data item identifier is a value expressed using a hierarchy level number and a serial number in the level, and all the values in the hierarchical structure can be uniquely identified by this expression. FIG.
FIG. 3 is a diagram showing a hierarchical structure of data. Assuming a larger structure, there are about 100,000 kinds of values at the lowest level,
If the number of hierarchy levels is about 10, 4
If 20 bits are provided for Bit and the serial number within the level, all values can be uniquely identified. Therefore, the data item identifier takes a value of 24 bits (3 bytes) here.

【0034】図2の50cのデータ項目に対するデータ
項目識別子は、16進表示で0x002と表現され、5
1bのデータ項目に対するデータ項目識別子は、16進
表示で0x101と表現される。
The data item identifier for the data item 50c in FIG. 2 is expressed as 0x002 in hexadecimal notation, and
The data item identifier for the data item 1b is expressed as 0x101 in hexadecimal notation.

【0035】具体例を用いて説明する。図3は、本実施
例で、ユーザプログラムから発行されるSQL文を示す
図である。このSQL文は、「売上明細表1」から売上
合計金額の集計を行うものである。図4は、「売上明細
表1」の構造を示す図である。前記売上明細表1のデー
タ項目の内、「商品コード」に対して分類情報が定義さ
れているとする。図5は、分類情報の構造を示す図であ
る。
A description will be given using a specific example. FIG. 3 is a diagram showing an SQL statement issued from the user program in the present embodiment. This SQL statement is for totalizing the total sales amount from “sales statement table 1”. FIG. 4 is a diagram showing the structure of “sales statement table 1”. It is assumed that classification information is defined for “product code” in the data items of the sales statement table 1. FIG. 5 is a diagram showing the structure of the classification information.

【0036】図6は、計算機1から計算機2に送信され
る検索文の例を示す図である。ここで、「DimID
(商品コード)」は、データ項目「商品コード」に対す
るデータ項目識別子を返すことを要求するデータ項目識
別子関数を表す。
FIG. 6 is a diagram showing an example of a search sentence transmitted from the computer 1 to the computer 2. Here, "DimID
“(Product code)” represents a data item identifier function that requests to return a data item identifier for the data item “Product code”.

【0037】図7は、図6の検索文を計算機2で実行し
た結果、計算機2から計算機1に送信される検索結果を
示す図である。
FIG. 7 is a diagram showing a search result transmitted from the computer 2 to the computer 1 as a result of executing the search sentence of FIG.

【0038】商品コードのようなコード体系は、一般に
各桁毎に固有の意味を持たせている場合が多いため、商
品コードを表現する桁数で表現可能な全ての値が商品コ
ードとして用いられている訳ではない。例えば、商品コ
ードとして10桁(10Byte)の文字列が与えられ
ている場合でも、実際に使用されている商品コードの種
類は、それよりもずっと少ない10万個程度の場合も考
えられる。
Since a code system such as a product code generally has a unique meaning for each digit in many cases, all values that can be represented by the number of digits representing the product code are used as the product code. Not necessarily. For example, even when a character string of 10 digits (10 Bytes) is given as a product code, the type of the product code actually used may be about 100,000, which is much smaller.

【0039】一方、10万種類の値は3Byteで表現
可能である。そのため、商品コードの替わりにデータ項
目識別子として3Byteのデータを生成すれば、商品
コード1件当り7Byteのデータ転送量の削減が可能
となる。商品コード10万種類では、700,000B
yte、即ちほぼ684Kbyteのデータ転送量の削
減が可能となる。
On the other hand, 100,000 kinds of values can be expressed in 3 bytes. Therefore, if data of 3 bytes is generated as a data item identifier instead of the product code, the data transfer amount of 7 bytes per product code can be reduced. 700,000B for 100,000 kinds of product codes
yte, that is, a data transfer amount of about 684 Kbytes can be reduced.

【0040】実施の形態2.図8は、計算機1、計算機
3、計算機4、計算機5の4台の計算機から構成される
分散データベースシステムのデータ検索装置の構成図で
ある。
Embodiment 2 FIG. 8 is a configuration diagram of a data search device of a distributed database system including four computers, a computer 1, a computer 3, a computer 4, and a computer 5.

【0041】図9は、実施の形態2において、ユーザプ
ログラム10から発行されるSQL文の例を示す図であ
る。SQL文中に含まれる「売上明細表2」の構造は図
15に示したものであり、データは、計算機3、計算機
4、計算機5の3台に分散して格納されている。
FIG. 9 is a diagram showing an example of an SQL statement issued from the user program 10 in the second embodiment. The structure of “sales statement table 2” included in the SQL statement is as shown in FIG. 15, and the data is distributed and stored in three computers 3, 4 and 5.

【0042】図9で示すSQL文は、売上金額の合計が
1000000円以上の商品を求めるものであるため、
計算機3、計算機4、計算機5の3台それぞれから商品
コードとその売上金額合計値を、商品コードの種類の件
数だけ計算機1に送信し、計算機1で3台の計算機から
受信した結果を合わせて売上金額の合計が100000
0円以上か否かを判断する必要がある。
The SQL statement shown in FIG. 9 is for obtaining a product whose total sales amount is 100,000 yen or more.
The product code and the total sales amount of each of the three computers 3, 4, and 5 are transmitted to the computer 1 by the number of types of the product code, and the computer 1 combines the results received from the three computers. Total sales amount is 100,000
It is necessary to judge whether it is 0 yen or more.

【0043】本実施例では、計算機1では、3台それぞ
れの計算機で実行可能な検索文31b,31c,31d
を生成し、更に、商品コードをデータ項目識別子関数に
変換した検索文32b,32c,32dを3台の計算機
3,4,5にそれぞれ送信する。3台の計算機では、並
列にデータベース検索を実行し、データ項目識別子を含
んだ検索結果36b,36c,36dを計算機1に送信
する。
In the present embodiment, in the computer 1, the search statements 31b, 31c, 31d executable by each of the three computers
Are generated, and the search sentences 32b, 32c, and 32d obtained by converting the product codes into the data item identifier functions are transmitted to the three computers 3, 4, and 5, respectively. The three computers execute a database search in parallel, and transmit the search results 36b, 36c, and 36d including the data item identifier to the computer 1.

【0044】本実施例では、商品コードが10万種類あ
る場合には、3台で約2Mbyteのデータ転送量を削
減することが可能となる。
In this embodiment, when there are 100,000 kinds of product codes, it is possible to reduce the data transfer amount of about 2 Mbytes with three units.

【0045】[0045]

【発明の効果】以上説明しているように、データベース
検索結果において、データ項目識別子を生成して返すと
いう本発明の分散データベースシステムでは、データ項
目の種類が多数の場合、またデータが複数の計算機に分
散して格納されている場合に、計算機間のデータ転送量
を削減することが可能となり、システムのレスポンスを
向上させるという効果を有している。
As described above, in the distributed database system according to the present invention in which a data item identifier is generated and returned in a database search result, when there are many types of data items, and when a plurality of computers When the data is stored in a distributed manner, the amount of data transferred between the computers can be reduced, and the response of the system is improved.

【0046】また、複数の計算機にデータが分散してい
る場合、それぞれの計算機で実行した結果をまとめる処
理を最後に実施する必要があるが、各計算機で実行した
結果は、データ項目識別子の順に生成されているため、
最後の集計処理の負荷も改善されるという効果を有して
いる。
When data is distributed to a plurality of computers, it is necessary to finally execute the process of summarizing the results executed by each computer. The results executed by each computer are sorted in the order of the data item identifier. Because it has been generated,
This has the effect that the load of the final tallying process is also improved.

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

【図1】 本発明における分散データベースシステムの
データ検索装置の構成例を示す図である。
FIG. 1 is a diagram illustrating a configuration example of a data search device of a distributed database system according to the present invention.

【図2】 データの階層構造を示す図である。FIG. 2 is a diagram showing a hierarchical structure of data.

【図3】 ユーザプログラムから発行されるSQL文を
示す図である。
FIG. 3 is a diagram showing an SQL statement issued from a user program.

【図4】 「売上明細表1」の構造を示す図である。FIG. 4 is a diagram showing a structure of “sales statement table 1”.

【図5】 分類情報の構造を示す図である。FIG. 5 is a diagram showing a structure of classification information.

【図6】 計算機1から計算機2に送信される検索文の
例を示す図である。
FIG. 6 is a diagram showing an example of a search sentence transmitted from the computer 1 to the computer 2.

【図7】 図6の検索文を計算機2で実行した結果、計
算機2から計算機1に送信される検索結果を示す図であ
る。
FIG. 7 is a diagram showing a search result transmitted from the computer 2 to the computer 1 as a result of executing the search sentence of FIG.

【図8】 計算機1、計算機3、計算機4、計算機5の
4台の計算機から構成される分散データベースシステム
のデータ検索装置の構成図である。
FIG. 8 is a configuration diagram of a data retrieval device of a distributed database system including four computers, a computer 1, a computer 3, a computer 4, and a computer 5.

【図9】 実施の形態2においてユーザプログラムから
発行されるSQL文の例を示す図である。
FIG. 9 is a diagram showing an example of an SQL statement issued from a user program in the second embodiment.

【図10】 従来の分散データベースシステムでのデー
タ検索装置の構成を示す図である。
FIG. 10 is a diagram showing a configuration of a data search device in a conventional distributed database system.

【図11】 特開平6−301578のデータ検索装置
の構成図である。
FIG. 11 is a configuration diagram of a data search device disclosed in JP-A-6-301578.

【図12】 ユーザプログラムから発行されるSQL文
を示す図である。
FIG. 12 is a diagram showing an SQL statement issued from a user program.

【図13】 「売上明細表1」の構造を示す図である。FIG. 13 is a diagram showing a structure of “sales statement table 1”.

【図14】 従来技術における検索結果を示す図であ
る。
FIG. 14 is a diagram showing search results according to the related art.

【図15】 「売上明細表2」の構造を示す図である。FIG. 15 is a diagram showing a structure of “sales statement table 2”.

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

1,2,3,4,5 計算機、10 ユーザプログラ
ム、11 データベース制御部、12 問合せ解析部、
13 識別子関数生成部、14 データ項目値復元部、
15 データ識別子生成部、16a,16b,16c,
16d,16eデータベース定義情報、17 分類情
報、18a,18b,18c,18d データ、19
データベース制御システム、30a,30b SQL
文、31a,31b,31c,31d 生成されたSQ
L文、32a,32b,32c,32d データ項目識
別子関数を含んだ検索文、33a,33b,33c,3
3d検索文の解析結果、34 データ項目識別子関数、
35 データ項目識別子、36a,36b,36c,3
6d データ項目識別子を含んだ検索結果、37 デー
タ項目識別子、38 データ項目値、39a,39b
検索結果、40 SQL文、41 データ検索結果、5
0a,50b,50c,50d,50e,50f,50
g,50h 分類情報の第1階層レベルの項目、51
a,51b,51c 分類情報の第2階層レベルの項
目、52a 分類情報の第3階層レベルの項目、101
応用プログラム、102 クライアントシステム、1
03 サーバ、104 変換表、105 クライアント
DML変換手段、106 クライアントDML格納手
段、107 DML実行手段、108 データベース、
109DML格納ファイル、110 サーバDML変換
手段、111 サーバDML格納手段、112 DM
L、113 DMLまたは送信ID。
1, 2, 3, 4, 5 computer, 10 user program, 11 database control unit, 12 query analysis unit,
13 identifier function generating unit, 14 data item value restoring unit,
15 data identifier generation units, 16a, 16b, 16c,
16d, 16e database definition information, 17 classification information, 18a, 18b, 18c, 18d data, 19
Database control system, 30a, 30b SQL
Statement, 31a, 31b, 31c, 31d Generated SQ
L sentence, 32a, 32b, 32c, 32d Search sentence including data item identifier function, 33a, 33b, 33c, 3
3d search statement analysis result, 34 data item identifier function,
35 data item identifiers, 36a, 36b, 36c, 3
6d Search results including data item identifiers, 37 data item identifiers, 38 data item values, 39a, 39b
Search results, 40 SQL sentences, 41 Data search results, 5
0a, 50b, 50c, 50d, 50e, 50f, 50
g, 50h First hierarchical level item of classification information, 51
a, 51b, 51c items of the second hierarchy level of the classification information, 52a items of the third hierarchy level of the classification information, 101
Application program, 102 client system, 1
03 server, 104 conversion table, 105 client DML conversion means, 106 client DML storage means, 107 DML execution means, 108 database,
109 DML storage file, 110 server DML conversion means, 111 server DML storage means, 112 DM
L, 113 DML or transmission ID.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 データ項目に含まれるデータ値を記憶す
るデータベースを有する検索実行側計算機と、検索実行
計算機と接続し、検索を要求する検索要求側計算機とか
らなるデータベース検索装置であって、 上記検索要求側計算機は、 データ項目を指定して、データ項目に含まれるデータ値
を含む検索結果を要求する検索要求を入力する検索要求
入力部と、 入力した検索要求に基づいて、データ項目を特定し、特
定したデータ項目に含まれるデータ値をデータ項目値識
別子に変換することを要求するデータ項目識別子関数を
含む検索文を生成する検索文生成部と、 生成した検索文を送信する検索文送信部とを有し、 上記検索実行側計算機は、 上記検索文を受信する検索文受信部と、 受信した検索文に含まれるデータ識別子関数で特定した
データ項目に含まれるデータ値を、データベースから検
索し、検索したデータ値を含む検索結果を取得する検索
実行部と、 取得した検索結果に含まれるデータ値を、データ項目識
別子に変換するデータ値変換部と、 変換したデータ項目識別子を含む検索結果を送信する検
索結果送信部とを有し、 上記検索要求側計算機は、更に、 上記検索結果を受信する検索結果受信部と、 受信した検索結果に含まれるデータ項目識別子を、デー
タ値に変換するデータ項目識別子変換部と、 変換したデータ値を含む検索結果を出力する検索結果出
力部とを有することを特徴とするデータベース検索装
置。
1. A database search device comprising: a search execution computer having a database for storing data values included in data items; and a search requesting computer connected to the search execution computer and requesting a search. The search requesting computer specifies a data item and specifies a data item based on the input search request, and a search request input unit for inputting a search request for a search result including a data value included in the data item. And a search statement generation unit for generating a search statement including a data item identifier function for requesting to convert a data value included in the specified data item into a data item value identifier, and transmitting a search statement for transmitting the generated search statement A search statement receiving unit for receiving the search statement, and a data identifier function included in the received search statement. A search execution unit that searches a database for data values included in data items and obtains search results including the searched data values, and a data value that converts data values included in the obtained search results into data item identifiers A search unit that transmits a search result including the converted data item identifier; the search requesting computer further includes a search result receiving unit that receives the search result; and a received search result. A data item identifier conversion unit for converting a data item identifier included in the data item into a data value, and a search result output unit for outputting a search result including the converted data value.
【請求項2】 上記データ項目識別子は、上記データ値
よりもデータサイズが小さいことを特徴とする請求項1
記載のデータベース検索装置。
2. The data item identifier according to claim 1, wherein the data size is smaller than the data value.
Database search device as described.
【請求項3】 上記検索要求側計算機と、上記検索実行
側計算機は、ネットワークを介して接続し、 上記検索文生成部は、検索要求で指定したデータ項目に
基づいて、上記検索実行側計算機を特定し、 上記検索文送信部は、特定した上記検索実行側計算機
に、上記検索文を送信することを特徴とする請求項1記
載のデータベース検索装置。
3. The search requesting computer and the search execution side computer are connected via a network, and the search statement generation unit controls the search execution side computer based on a data item specified by a search request. 2. The database search device according to claim 1, wherein the search text transmitting unit transmits the search text to the specified search execution computer.
【請求項4】 上記データ値変換部は、データ値を管理
する階層的構造を記憶する検索実行側分類情報記憶部を
有し、上記階層的構造に基づいて、上記データ値を、上
記データ項目識別子に変換し、 上記データ項目識別子変換部は、上記検索実行側分類情
報記憶部で記憶する階層的構造と同一の階層的構造を記
憶する検索要求側分類情報記憶部を有し、上記同一の階
層的構造に基づいて、上記データ項目識別子を、上記デ
ータ値に変換することを特徴とする請求項1記載のデー
タベース検索装置。
4. The data value conversion unit includes a search execution side classification information storage unit that stores a hierarchical structure for managing data values, and stores the data value based on the hierarchical structure. The data item identifier conversion unit has a search request side classification information storage unit that stores the same hierarchical structure as the hierarchical structure stored in the search execution side classification information storage unit. 2. The database search device according to claim 1, wherein the data item identifier is converted into the data value based on a hierarchical structure.
【請求項5】 データ項目に含まれるデータ値を記憶す
るデータベースを有する検索実行側計算機と、検索実行
計算機と接続し、検索を要求する検索要求側計算機とか
らなるデータベース検索装置を用いたデータベース検索
方法であって、 上記検索要求側計算機が、検索を要求する工程は、 データ項目を指定して、データ項目に含まれるデータ値
を含む検索結果を要求する検索要求を入力する検索要求
入力工程と、 入力した検索要求に基づいて、データ項目を特定し、特
定したデータ項目に含まれるデータ値をデータ項目値識
別子に変換することを要求するデータ項目識別子関数を
含む検索文を生成する検索文生成工程と、 生成した検索文を送信する検索文送信工程とを有し、 上記検索実行側計算機が、検索を実行する工程は、 上記検索文を受信する検索文受信工程と、 受信した検索文に含まれるデータ識別子関数で特定した
データ項目に含まれるデータ値を、データベースから検
索し、検索したデータ値を含む検索結果を取得する検索
実行工程と、 取得した検索結果に含まれるデータ値を、データ項目識
別子に変換するデータ値変換工程と、 変換したデータ項目識別子を含む検索結果を送信する検
索結果送信工程とを有し、 上記検索要求側計算機が、検索結果を取得する工程は、 上記検索結果を受信する検索結果受信工程と、 受信した検索結果に含まれるデータ項目識別子を、デー
タ値に変換するデータ項目識別子変換工程と、 変換したデータ値を含む検索結果を出力する検索結果出
力工程とを有することを特徴とするデータベース検索方
法。
5. A database search using a database search device including a search execution computer having a database for storing data values included in data items, and a search requesting computer connected to the search execution computer and requesting a search. The method, wherein the step of requesting a search by the search requesting computer comprises: a search request inputting step of inputting a search request specifying a data item and requesting a search result including a data value included in the data item. Generating a search statement including a data item identifier function for requesting to specify a data item based on an input search request and to convert a data value included in the specified data item into a data item value identifier; A search sentence transmitting step of transmitting the generated search sentence, wherein the step of performing a search by the search execution computer comprises: And a search execution step of searching the database for a data value included in the data item specified by the data identifier function included in the received search sentence, and obtaining a search result including the searched data value A data value conversion step of converting a data value included in the obtained search result into a data item identifier; and a search result transmission step of transmitting a search result including the converted data item identifier. A step in which the computer obtains the search result includes: a search result receiving step of receiving the search result; a data item identifier converting step of converting a data item identifier included in the received search result into a data value; A search result output step of outputting a search result including a value.
JP2000090146A 2000-03-29 2000-03-29 Database search device and database search method Expired - Fee Related JP3289003B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000090146A JP3289003B2 (en) 2000-03-29 2000-03-29 Database search device and database search method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000090146A JP3289003B2 (en) 2000-03-29 2000-03-29 Database search device and database search method

Publications (2)

Publication Number Publication Date
JP2001282829A true JP2001282829A (en) 2001-10-12
JP3289003B2 JP3289003B2 (en) 2002-06-04

Family

ID=18605794

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000090146A Expired - Fee Related JP3289003B2 (en) 2000-03-29 2000-03-29 Database search device and database search method

Country Status (1)

Country Link
JP (1) JP3289003B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101413987B1 (en) 2012-10-02 2014-07-01 (주)이스트소프트 Electronic device including mind-map user interface, and method for manipulating mind-map using the same

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5157259A (en) * 1974-11-15 1976-05-19 Casio Computer Co Ltd
JPS62107336A (en) * 1985-11-06 1987-05-18 Hitachi Ltd Control method for hierarchy type data base
JPH0264770A (en) * 1988-08-31 1990-03-05 Nec Corp Data compression-restoring system with dictionary
JPH02190946A (en) * 1989-01-19 1990-07-26 Nec Corp Keyword control system
JPH05257774A (en) * 1992-03-10 1993-10-08 Fujitsu Ltd Information retrieving device compressing/storing index record number
JPH06301578A (en) * 1993-04-15 1994-10-28 Hokkaido Nippon Denki Software Kk Distributed database control system
JPH06348569A (en) * 1993-06-14 1994-12-22 Nec Corp Data base system
JPH07253918A (en) * 1994-03-15 1995-10-03 Fujitsu Ltd Decentralized data base access system
JPH0865768A (en) * 1994-08-23 1996-03-08 Hitachi Ltd Plant time series data retrieval system
JPH08179980A (en) * 1994-12-26 1996-07-12 Hitachi Ltd Distributed data base system
JPH09321633A (en) * 1996-05-30 1997-12-12 Nippon Telegr & Teleph Corp <Ntt> Information address conversion method, information address converter and information retrieval system
JPH1049539A (en) * 1996-07-31 1998-02-20 Matsushita Electric Ind Co Ltd Data base management system
JPH10177583A (en) * 1996-12-13 1998-06-30 Kokusai Electric Co Ltd Database device
JPH11259513A (en) * 1998-03-12 1999-09-24 Hitachi Ltd Data base system
JP2000057155A (en) * 1998-08-07 2000-02-25 Mitsubishi Electric Corp Information retrieving device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5157259A (en) * 1974-11-15 1976-05-19 Casio Computer Co Ltd
JPS62107336A (en) * 1985-11-06 1987-05-18 Hitachi Ltd Control method for hierarchy type data base
JPH0264770A (en) * 1988-08-31 1990-03-05 Nec Corp Data compression-restoring system with dictionary
JPH02190946A (en) * 1989-01-19 1990-07-26 Nec Corp Keyword control system
JPH05257774A (en) * 1992-03-10 1993-10-08 Fujitsu Ltd Information retrieving device compressing/storing index record number
JPH06301578A (en) * 1993-04-15 1994-10-28 Hokkaido Nippon Denki Software Kk Distributed database control system
JPH06348569A (en) * 1993-06-14 1994-12-22 Nec Corp Data base system
JPH07253918A (en) * 1994-03-15 1995-10-03 Fujitsu Ltd Decentralized data base access system
JPH0865768A (en) * 1994-08-23 1996-03-08 Hitachi Ltd Plant time series data retrieval system
JPH08179980A (en) * 1994-12-26 1996-07-12 Hitachi Ltd Distributed data base system
JPH09321633A (en) * 1996-05-30 1997-12-12 Nippon Telegr & Teleph Corp <Ntt> Information address conversion method, information address converter and information retrieval system
JPH1049539A (en) * 1996-07-31 1998-02-20 Matsushita Electric Ind Co Ltd Data base management system
JPH10177583A (en) * 1996-12-13 1998-06-30 Kokusai Electric Co Ltd Database device
JPH11259513A (en) * 1998-03-12 1999-09-24 Hitachi Ltd Data base system
JP2000057155A (en) * 1998-08-07 2000-02-25 Mitsubishi Electric Corp Information retrieving device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101413987B1 (en) 2012-10-02 2014-07-01 (주)이스트소프트 Electronic device including mind-map user interface, and method for manipulating mind-map using the same

Also Published As

Publication number Publication date
JP3289003B2 (en) 2002-06-04

Similar Documents

Publication Publication Date Title
US20180101621A1 (en) Identifier vocabulary data access method and system
US9396283B2 (en) System for accessing a relational database using semantic queries
US7039622B2 (en) Computer-implemented knowledge repository interface system and method
US6728758B2 (en) Agent for performing process using service list, message distribution method using service list, and storage medium storing program for realizing agent
US8719252B2 (en) Accessing relational databases as resource description framework databases
US7690000B2 (en) Metadata journal for information technology systems
US8484379B2 (en) Method and system for transferring information
US7406477B2 (en) Database system with methodology for automated determination and selection of optimal indexes
US6886016B2 (en) Method and system for supporting multivalue attributes in a database system
JP5600736B2 (en) Database management method and system
CN100555286C (en) During transmitting the byte serial data, carry out the formative method and system of dynamic data
US20060212879A1 (en) System and method for retrieving and analyzing data from a variety of different sources
US20040049495A1 (en) System and method for automatically generating general queries
CN102918531A (en) Systems and methods for providing multilingual support for data used with a business intelligence server
WO2003060764A1 (en) Information search system
US20080059429A1 (en) Integrated search processing method and device
US20080114802A1 (en) Method and apparatus for moving data from an extensible markup language format to normalized format
JP3289003B2 (en) Database search device and database search method
US20230394015A1 (en) LIST-BASED DATA STORAGE FOR DATA SEARCHPeter
JP2001092844A (en) Method and device for transforming inquiry to different kinds of information sources and storing medium storing program for transforming inquiry to different kinds of information sources
JP5031416B2 (en) Search method and search device
JP2013033333A (en) Business process/business rule execution system, business process/business rule execution method and program
JP2013033352A (en) Program creation device, and method and program thereof
US20020040289A1 (en) Method and system for retrieving information, and computer product
EP3764243A1 (en) An industrial information identification and retrieval system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020305

LAPS Cancellation because of no payment of annual fees