JPH08314957A - Database system - Google Patents

Database system

Info

Publication number
JPH08314957A
JPH08314957A JP7119451A JP11945195A JPH08314957A JP H08314957 A JPH08314957 A JP H08314957A JP 7119451 A JP7119451 A JP 7119451A JP 11945195 A JP11945195 A JP 11945195A JP H08314957 A JPH08314957 A JP H08314957A
Authority
JP
Japan
Prior art keywords
database
data
column
record
search
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7119451A
Other languages
Japanese (ja)
Inventor
Taiji Ogasawara
大治 小笠原
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 JP7119451A priority Critical patent/JPH08314957A/en
Publication of JPH08314957A publication Critical patent/JPH08314957A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To provide a database system reducing a usage rate in various kinds of resources and speeding-up a retrieval processing in a whole system. CONSTITUTION: A data processor 4 is provided with a storage device 8 constructing a database 18, a transmitting part 10 and a receiving part 12 which exchange data through a network 2, a throw-in function part 14 compressing a received record at every column and registering it in the database 18 together with column position information and a retrieval function part 16 which compresses retrieval key data at the time of a coincidence retrieval so as to compare it with column data to be a retrieval object which being kept compressed, and expands only column data of the retrieval object in another case so as to compare it with retrieval key data and obtains a result set. The data processor 6 is provided with a column data expanding part 40 which divides and expands the record at every column based on the record and column position information received by a communication part 34 from the data processor 4 through the network 2 so as to give it to an application program.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数のデータ処理装置
からデータベースをアクセスするデータベースシステ
ム、特にデータベースシステムにおける記憶容量、CP
U消費量、ネットワーク転送量等のシステム資源の低使
用率化を図るデータベースシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database system for accessing a database from a plurality of data processing devices, particularly a storage capacity in the database system, CP.
The present invention relates to a database system for reducing the usage rate of system resources such as U consumption and network transfer.

【0002】[0002]

【従来の技術】現在において一般的に利用されているデ
ータベースに関係データベースがある。関係データベー
スとは、データを表形式(これを「テーブル」という)
で記憶装置にデータベースとして格納するものである。
テーブルは、複数個の行データ(これを「レコード」と
いう)により構成され、また各レコードは、複数個の列
データ(これを「カラム」という)により構成されてい
る。各ユーザは、データベースコマンドあるいはアプリ
ケーションプログラムにより関係データベースに対して
検索を行うが、検索は一致検索とそれ以外の検索とに大
別することができる。関係データベースの一致検索と
は、データベースに記憶されているテーブル内のレコー
ドのうち、検索キーデータで指定されたのと同一のカラ
ムデータを含むレコードのみを選択する検索であり、選
択されたレコードを一時記憶領域にいったん記憶する
(これを「リザルトセット」という)。そして、続いて
行われる検索に対しては、検索キーデータに該当するリ
ザルトセット内の一部又は全部のレコードを検索対象と
する。一方、関係データベースの一致検索以外の検索と
は、例えば大小関係の比較、範囲指定などでレコードを
選択する検索をいう。
2. Description of the Related Art There is a relational database as a database generally used at present. A relational database is a table format for data (this is called a "table")
It is stored as a database in the storage device.
The table is composed of a plurality of row data (referred to as "record"), and each record is composed of a plurality of column data (referred to as "column"). Each user searches the relational database by a database command or an application program, and the search can be roughly classified into a matching search and other searches. The match search of the relational database is a search that selects only the records that include the same column data as specified by the search key data from the records in the table stored in the database. Once stored in the temporary storage area (this is called "result set"). Then, for the subsequent search, some or all of the records in the result set corresponding to the search key data are the search target. On the other hand, the search other than the coincidence search of the relational database refers to a search for selecting records by comparison of magnitude relations and range designation.

【0003】データベースを有するデータベース側デー
タ処理装置とネットワークを介してデータベースにアク
セスを行う複数のアクセス側データ処理装置を含むデー
タベースシステムにおいては、アクセス側データ処理装
置からの要求によりデータベース側データ処理装置はデ
ータベース検索を行い、その検索結果をアクセス側デー
タ処理装置に送信する。
In a database system including a database-side data processing device having a database and a plurality of access-side data processing devices that access the database via a network, the database-side data processing device is requested by the access-side data processing device. A database search is performed and the search result is sent to the access side data processing device.

【0004】ところで、データベースシステムにおいて
システムの有する各種資源の使用率を軽減し、データベ
ースシステムとしての能力を向上させるための方法が従
来から提唱されている。
By the way, a method for reducing the usage rate of various resources possessed by the system in a database system and improving the ability of the database system has been conventionally proposed.

【0005】検索処理の高速化のための一つの方法とし
て、検索キーを用いる方法がある。これは、レコードを
構成する特定カラムにおけるカラムデータを全レコード
から取り出し、カラムデータとともにそのカラムデータ
を含むレコードの記憶位置を対にして異なる記憶領域に
格納しておく方法である。これにより、特定カラムによ
る検索要求の場合は、検索条件を満たした場合にのみテ
ーブル内のレコードにアクセスを行うため、大容量とな
るテーブルを含むデータベースへのアクセス回数が減少
する。従って、検索処理が高速化する。更に、検索キー
自体のサイズを減少させるため、検索キーの圧縮を行う
方法がある(特開昭62−131348号公報、特開平
1ー230126号公報、特開平3−209562号公
報)。
One method for speeding up the search process is to use a search key. This is a method in which the column data in a specific column that constitutes a record is extracted from all the records, and the column data and the storage positions of the record including the column data are paired and stored in different storage areas. As a result, in the case of a search request by a specific column, the record in the table is accessed only when the search condition is satisfied, so that the number of accesses to the database including the large capacity table is reduced. Therefore, the search process becomes faster. Further, in order to reduce the size of the search key itself, there is a method of compressing the search key (Japanese Patent Laid-Open Nos. 62-131348, 1-230126, and 3-209562).

【0006】また、データが使用する記憶領域を減少さ
せる方法としては、ファイルを圧縮する方式が数多く提
唱されている。
As a method of reducing the storage area used by data, many methods of compressing files have been proposed.

【0007】また、ネットワーク上のデータ転送時間
(量)を減少させる方法としては、データ送信前に送信
データを圧縮し、受信側においてデータを伸長するとい
う方法が提唱されている(特開平6−202929号公
報、特開平2−43652号公報、特開平6−6964
号公報)。
As a method for reducing the data transfer time (amount) on the network, a method has been proposed in which the transmission data is compressed before the data is transmitted and the data is decompressed on the receiving side (Japanese Patent Laid-Open No. 6-61). 202929, JP-A-2-43652, JP-A-6-6964
Issue).

【0008】[0008]

【発明が解決しようとする課題】しかしながら、従来に
おけるデータベースシステムにおいて検索キーを用いて
検索の高速化を図る方法は、検索キーのために別途記憶
領域を必要とする。より一層の高速化を図るために全カ
ラムを検索キーとしてしまうと、更に大容量の記憶領域
が必要となってしまう。
However, the conventional method of using the search key to speed up the search in the database system requires a separate storage area for the search key. If all columns are used as search keys in order to further increase the speed, a larger storage area will be required.

【0009】また、従来におけるファイルを圧縮して記
憶する方式は、直接データ検索を行うことはできず、検
索を行う前にいったんデータを伸長する必要があった。
そのため、伸長に要するCPU時間並びに伸長したデー
タを一時記憶するための大容量の記憶領域が必要となっ
てしまう。
Further, in the conventional method of compressing and storing a file, it is not possible to directly search for data, and it is necessary to decompress the data once before searching.
Therefore, a CPU time required for expansion and a large-capacity storage area for temporarily storing expanded data are required.

【0010】更に、従来におけるデータ送信前に送信デ
ータを圧縮する方法は、送信の度にデータを圧縮する必
要があるためCPU時間を余計に必要とするという問題
があった。
Further, the conventional method of compressing transmission data before data transmission has a problem that extra CPU time is required because it is necessary to compress the data every transmission.

【0011】本発明は以上のような問題を解決するため
になされたものであり、その目的は、システム全体にお
ける各種資源の使用率の低減化並びに検索処理の高速化
を図るデータベースシステムを提供することにある。
The present invention has been made to solve the above problems, and an object thereof is to provide a database system for reducing the usage rate of various resources in the entire system and for speeding up search processing. Especially.

【0012】[0012]

【課題を解決するための手段】以上のような目的を達成
するために、本発明におけるデータベースシステムは、
圧縮されたデータを記憶するデータベースを有するデー
タベース側データ処理装置と前記データベースにアクセ
スを行う1乃至複数のアクセス側データ処理装置とを含
むデータベースシステムにおいて、前記データベース側
データ処理装置は、レコード単位で受け取るデータをカ
ラム単位で圧縮しデータベースに投入していく投入機能
手段を有することを特徴とする。
In order to achieve the above objects, the database system according to the present invention comprises:
In a database system including a database-side data processing device having a database for storing compressed data and one or a plurality of access-side data processing devices that access the database, the database-side data processing device receives in record units It is characterized by having a loading function means for compressing data in column units and loading it into the database.

【0013】また、前記投入機能手段は、レコードをカ
ラム毎に圧縮するレコード圧縮部と、圧縮したレコード
及びカラム位置情報を前記データベースに登録するレコ
ード登録部と、を有することを特徴とする。
Further, the inputting function means includes a record compressing unit for compressing a record for each column, and a record registering unit for registering the compressed record and column position information in the database.

【0014】また、前記データベース側データ処理装置
は、前記データベースに対する一致検索の場合にカラム
を圧縮したままの状態でデータ検索を行う一致検索機能
手段を有することを特徴とする。
Further, the database side data processing device is characterized by having a match search function means for performing a data search in a state in which the columns are compressed in the case of a match search for the database.

【0015】また、前記一致検索機能手段は、検索キー
データを圧縮する検索キーデータ圧縮部と、圧縮した検
索キーデータと前記データベースの各カラムとを比較す
る圧縮データ比較部と、を有することを特徴とする。
Further, the coincidence search function means includes a search key data compression section for compressing the search key data, and a compressed data comparison section for comparing the compressed search key data with each column of the database. Characterize.

【0016】また、前記データベース側データ処理装置
は、前記データベースに対する一致検索以外の検索の場
合にカラム位置情報に基づいて検索対象となるカラムの
みを伸長してデータ検索を行う一致検索以外検索機能手
段を有することを特徴とする。
Further, the database side data processing device is a search function other than a match search which expands only the column to be searched based on the column position information and performs a data search in the case of a search other than the match search for the database. It is characterized by having.

【0017】また、前記一致検索以外検索機能手段は、
前記データベースに登録されているカラムを伸長するカ
ラムデータ伸長部と、検索キーデータを伸長された各カ
ラムと比較する伸長データ比較部と、を有することを特
徴とする。
The search function means other than the match search is
It is characterized by comprising a column data decompression unit for decompressing columns registered in the database and an decompression data comparison unit for comparing search key data with each decompressed column.

【0018】また、圧縮されたデータを記憶するデータ
ベースを有するデータベース側データ処理装置とネット
ワークを介して前記データベースにアクセスを行う1乃
至複数のアクセス側データ処理装置を含むデータベース
システムにおいて、前記データベース側データ処理装置
は、カラム毎に圧縮されたレコード及びそのレコードに
対応したカラム位置情報を前記アクセス側データ処理装
置に送信するデータ送信手段を有することを特徴とす
る。
In addition, in a database system including a database side data processing device having a database for storing compressed data and one to a plurality of access side data processing devices for accessing the database via a network, the database side data The processing device is characterized by having a data transmission means for transmitting a record compressed for each column and column position information corresponding to the record to the access side data processing device.

【0019】そして、圧縮されたデータを記憶するデー
タベースを有するデータベース側データ処理装置と前記
データベースにアクセスを行う1乃至複数のアクセス側
データ処理装置を含むデータベースシステムにおいて、
前記アクセス側データ処理装置は、前記データベース側
データ処理装置から受け取った圧縮されたままの状態の
レコード及びカラム位置情報に基づいて前記レコードを
カラム毎に分割し伸長するアクセス側カラムデータ伸長
手段を有し、前記レコードを元のレコードに復元するこ
とを特徴とする。
Then, in a database system including a database side data processing device having a database for storing compressed data and one or a plurality of access side data processing devices for accessing the database,
The access side data processing device has an access side column data decompression means for decompressing and decompressing the record for each column based on the record in the as-compressed state and the column position information received from the database side data processing device. Then, the record is restored to the original record.

【0020】[0020]

【作用】以上のような構成を有する本発明に係るデータ
ベースシステムにおいて、レコード登録部は、レコード
圧縮部が圧縮した新規なレコードをデータベースに登録
する。レコード圧縮部は、圧縮する際、レコード全体で
はなく各カラム毎に圧縮する。圧縮データ比較部は、一
致検索の場合、検索キーデータ圧縮部が圧縮した検索キ
ーデータとデータベースに記憶されているカラムとを圧
縮された状態のまま比較する。テーブル内のカラムを伸
長することなく検索するので、伸長するのにかかるCP
U時間が不要となる。
In the database system according to the present invention having the above-mentioned structure, the record registration section registers a new record compressed by the record compression section in the database. When compressing, the record compressing unit compresses not the entire record but each column. In the case of a match search, the compressed data comparison unit compares the search key data compressed by the search key data compression unit with the columns stored in the database in the compressed state. Because it searches without expanding the column in the table, it takes CP to expand
U time is unnecessary.

【0021】また、一致検索以外の検索の場合は、レコ
ードのうち検索対象となるカラムのみを伸長するので、
データベース間とのアクセス量がレコード単位の場合と
比較して少なくなりかつ高速化が図れる。また、検索条
件を満たしてリザルトセットに入れられたレコードは圧
縮されたままなので、リザルトセットが占める記憶領域
も減少する。
Further, in the case of a search other than the coincidence search, since only the column to be searched in the record is expanded,
The access amount between databases is smaller than that in the case of a record unit and the speed can be increased. Further, since the records that satisfy the search condition and are put into the result set remain compressed, the storage area occupied by the result set is also reduced.

【0022】また、本発明に係るデータ送信手段は、カ
ラム位置情報と共にリザルトセット内の圧縮されたまま
のレコードをアクセス側データ処理装置に送信するよう
にしたので、データを伸長する時間が不要となり、かつ
データ転送量も減少させることができる。
Further, since the data transmitting means according to the present invention transmits the record in the result set which has been compressed as well as the column position information to the access side data processing device, the time for decompressing the data becomes unnecessary. In addition, the data transfer amount can be reduced.

【0023】アクセス側データ処理装置におけるアクセ
ス側カラムデータ伸長手段は、データベース側データ処
理装置から送られてくるカラム位置情報に基づいて圧縮
されたまま受信したレコードをカラム毎に伸長すること
で、伸長したレコードを応用プログラムに渡すことがで
きる。
The access-side column data decompression means in the access-side data processing device decompresses the record received while being compressed based on the column position information sent from the database-side data processing device, for each column. The record can be passed to the application program.

【0024】[0024]

【実施例】以下、図面に基づいて、本発明の好適な実施
例を説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will be described below with reference to the drawings.

【0025】図1は、本実施例におけるデータベースシ
ステムの構成を示した図である。本システムは、ネット
ワーク2を介して接続されたデータベースを有するデー
タベース側データ処理装置4とデータベースにアクセス
を行うアクセス側データ処理装置6とで構成される。ネ
ットワーク2には、少なくとも1台以上のアクセス側デ
ータ処理装置6が接続されている。本実施例におけるそ
れぞれのアクセス側データ処理装置6は、同様の構成を
有しているため1台のみを図示する。なお、以降の説明
ではデータベース側データ処理装置4及びアクセス側デ
ータ処理装置6をそれぞれ単にデータ処理装置4、6と
称することにする。
FIG. 1 is a diagram showing the configuration of the database system in this embodiment. The present system includes a database side data processing device 4 having a database connected via a network 2 and an access side data processing device 6 for accessing the database. At least one access side data processing device 6 is connected to the network 2. Since each of the access side data processing devices 6 in this embodiment has the same configuration, only one device is illustrated. In the following description, the database side data processing device 4 and the access side data processing device 6 will be simply referred to as the data processing devices 4 and 6, respectively.

【0026】データ処理装置4は、データベースを構築
する記憶装置8、ネットワーク2を介してデータを送受
信する送信部10及び受信部12、レコード単位で受け
取るデータをカラム単位で圧縮し記憶装置8に投入して
いく投入機能手段としての投入機能部14、そしてデー
タ処理装置6からの要求によりデータベース検索を行い
一致検索機能手段及び一致検索以外検索機能手段として
機能する検索機能部16からなる構成に大別される。こ
のうち記憶装置8は、圧縮されたデータ及びカラム位置
情報を記憶するデータベース領域(以下、単に「データ
ベース」という)18とリザルトセットを記憶する一時
記憶領域20とから構成される。受信部12は、データ
ベース18に登録する新規のデータを受信したり、デー
タ処理装置6からのデータ検索要求を受け取るデータ受
信手段である。送信部10は、圧縮されたままのレコー
ド及びそのレコードに対応したカラム位置情報をデータ
処理装置6に送信するデータ送信手段である。投入機能
部14は、受信部12がレコード単位で受信したレコー
ドをカラム毎に圧縮するレコード圧縮部22と、レコー
ド圧縮部22がカラム毎に圧縮したレコードをテーブル
として生成し、またカラム位置情報を生成し、それらを
データベースに登録するレコード登録部24と、で構成
される。検索機能部16は、検索方法を判定する検索方
法判定部26と、受信部12を介してデータ処理装置6
から受信した検索キーデータを圧縮する検索キーデータ
圧縮部28と、データベース18に登録されているカラ
ムを伸長するカラムデータ伸長部30と、検索キーデー
タをカラムデータ伸長部30により伸長された各カラム
と比較する伸長データ比較部及び検索キーデータ圧縮部
28が圧縮した検索キーデータとデータベース18の各
カラムとを圧縮したまま比較する圧縮データ比較部とし
て機能するデータ比較部32とを有する。
The data processing device 4 compresses the data received in record units in column units into the storage device 8 that constructs a database, the transmission unit 10 and the reception unit 12 that transmits and receives data via the network 2, and inputs the data to the storage device 8. It is roughly divided into a configuration including an input function unit 14 as an input function unit, and a search function unit 16 that performs a database search according to a request from the data processing device 6 and that functions as a match search function unit and a search function unit other than the match search. To be done. Of these, the storage device 8 includes a database area (hereinafter, simply referred to as “database”) 18 that stores compressed data and column position information, and a temporary storage area 20 that stores a result set. The receiving unit 12 is a data receiving unit that receives new data registered in the database 18 and receives a data search request from the data processing device 6. The transmission unit 10 is a data transmission unit that transmits the compressed record and the column position information corresponding to the record to the data processing device 6. The input function unit 14 generates, as a table, a record compression unit 22 that compresses the record received by the reception unit 12 on a record basis for each column, and a record that the record compression unit 22 compresses for each column as a table, and also outputs column position information. A record registration unit 24 for generating and registering them in the database. The search function unit 16 includes a search method determination unit 26 that determines a search method and the data processing device 6 via the reception unit 12.
A search key data compression unit 28 that compresses the search key data received from the column data decompression unit 30 that decompresses the columns registered in the database 18, and each column that decompresses the search key data by the column data decompression unit 30. And a data comparison unit 32 that functions as a compressed data comparison unit that compares the search key data compressed by the search key data compression unit 28 with each column of the database 18 while being compressed.

【0027】一方、データ処理装置6は、ネットワーク
2を介してデータ処理装置4と送受信を行うための通信
部34と、データベースアクセスを行う応用プログラム
を実行する応用プログラム実行部36と、受け取ったレ
コードを伸長する伸長処理部38とから構成される。伸
長処理部38は、データ処理装置4から送られてきた圧
縮されたままの状態のレコード及びカラム位置情報に基
づいてそのレコードをカラム毎に分割し伸長するアクセ
ス側カラムデータ伸長手段としてのカラムデータ伸長部
40を有している。
On the other hand, the data processing device 6 communicates with the data processing device 4 via the network 2, a communication unit 34, an application program execution unit 36 for executing an application program for database access, and a received record. And a decompression processing unit 38 for decompressing. The decompression processing unit 38 is column data as an access-side column data decompression unit that decompresses the record in the compressed state sent from the data processing device 4 and the column position information based on the column position information. It has an extension 40.

【0028】なお、各データ処理装置4、6は、ネット
ワーク通信可能な通常のコンピュータにより実現され、
それぞれにCPU、メモリ、データやファイルを記憶す
る装置等を有している。
Each of the data processing devices 4 and 6 is realized by an ordinary computer capable of network communication,
Each has a CPU, a memory, a device for storing data and files, and the like.

【0029】前述したデータベース18には、複数のテ
ーブルが存在する。図1には、そのテーブル群のうちの
1つのテーブル42が示されており、このテーブル42
に名前、住所、年齢の3種類の情報で構成される5レコ
ードを格納した例を示している。更に、各レコードに対
応させて設けられたカラム情報保持部44には、各レコ
ードの各データが格納されているカラム位置情報が保持
されている。また、一時記憶領域20には、複数のリザ
ルトセットが存在するが、図1には、そのリザルトセッ
ト群のうちの1つのリザルトセット46が示されてお
り、リザルトセット46に記憶されている各レコードに
対応させて設けられたカラム情報保持部48には、各レ
コードの各データが格納されているカラム位置情報が保
持されている。
The database 18 described above has a plurality of tables. FIG. 1 shows one table 42 of the table group.
Shows an example in which 5 records composed of 3 types of information of name, address and age are stored. Further, the column information holding unit 44 provided corresponding to each record holds the column position information in which each data of each record is stored. Further, although a plurality of result sets exist in the temporary storage area 20, one result set 46 of the result set group is shown in FIG. 1, and each result set 46 is stored in each result set 46. The column information holding unit 48 provided corresponding to the records holds the column position information in which each data of each record is stored.

【0030】本実施例において特徴的なことは、データ
ベース18に登録するレコードをカラム毎に圧縮するこ
とである。つまり、データの圧縮/伸長をレコード単位
ではなくカラム単位に行うようにしたことで、データ検
索の方法によってはカラムを圧縮したまま比較できた
り、処理内容によってはデータの圧縮/伸長を行う必要
がなくなり、システム資源の使用率を低減させることが
できる。
A characteristic of this embodiment is that the records registered in the database 18 are compressed for each column. In other words, by performing data compression / expansion on a column-by-column basis rather than on a record-by-record basis, it is necessary to perform comparison while the column is compressed depending on the data retrieval method, or to compress / decompress data depending on the processing content. Therefore, the usage rate of system resources can be reduced.

【0031】図2は、本実施例における投入機能部14
の動作を説明するためのフローチャートであり、この図
を用いて受信したレコードをデータベース18に登録す
るまでの処理について説明する。
FIG. 2 is a block diagram of the input function unit 14 in this embodiment.
Is a flow chart for explaining the operation of the above, and the processing until the received record is registered in the database 18 will be explained using this figure.

【0032】投入機能部14は、受信部12が受信した
新規レコードをカラム単位に分割し(ステップ10
1)、分割したカラム単位にカラムデータを圧縮する
(ステップ102)。そして、圧縮した全カラムデータ
に基づいてレコード及びカラム位置情報を形成する(ス
テップ103)。なお、カラム位置情報とは、各レコー
ドを構成するカラムデータのそのレコード内における格
納位置を表す情報である。このカラム位置情報を用いる
ことで圧縮されたカラムデータを伸長時にレコード内に
おける元の格納位置に復元することができる。このよう
に、形成されたレコード及びカラム位置情報をデータベ
ース18に格納する(ステップ104)。格納するデー
タは圧縮されているので、記憶装置8へのデータ記憶領
域を減少させることができる。なお、レコードを追加す
る際にも上記と同様な手順で処理を行うことでデータベ
ース18に登録することができる。
The input function unit 14 divides the new record received by the receiving unit 12 into column units (step 10
1) The column data is compressed in units of divided columns (step 102). Then, records and column position information are formed based on all the compressed column data (step 103). The column position information is information indicating the storage position in each record of the column data forming each record. By using this column position information, the compressed column data can be restored to the original storage position in the record when decompressing. The record and column position information thus formed are stored in the database 18 (step 104). Since the data to be stored is compressed, the data storage area in the storage device 8 can be reduced. Note that when adding a record, it is possible to register it in the database 18 by performing a process in the same procedure as above.

【0033】図3は、本実施例における検索機能部16
の動作を説明するためのフローチャート、また図4は、
本実施例における送信部10の動作を説明するためのフ
ローチャートであり、これらの図を用いて本実施例にお
けるデータの検索/送信処理について説明する。
FIG. 3 shows the search function unit 16 in this embodiment.
4 is a flow chart for explaining the operation of FIG.
6 is a flowchart for explaining the operation of the transmission unit 10 in the present embodiment, and the data search / transmission processing in the present embodiment will be described using these figures.

【0034】検索機能部16において、受信部12を介
してデータ処理装置6からのデータ検索要求を受信する
と、まず検索方法判定部26は、データベース18への
検索要求を分析し、検索方法が一致検索か否かを判定す
る(ステップ201)。一致検索の場合、検索要求に含
まれる検索キーデータを圧縮し(ステップ202)、指
定されたテーブルの先頭レコードから最終レコードまで
レコード単位に各レコードの検索対象となるカラムデー
タを読み込む(ステップ203、204)。検索条件が
満足する、つまりこの処理においては各カラムデータと
検索キーデータとを比較することで両者が一致するか否
かを調べ(ステップ205)、一致するようであれば該
当するレコードとそのレコードに対応するカラム位置情
報をリザルトセットに追加していく(ステップ20
6)。上記比較処理や追加処理は、取り扱うデータを圧
縮したまま行う。
When the search function unit 16 receives a data search request from the data processing device 6 via the reception unit 12, the search method determination unit 26 first analyzes the search request to the database 18 and the search methods match. It is determined whether it is a search (step 201). In the case of matching search, the search key data included in the search request is compressed (step 202), and the column data to be searched for in each record is read in record units from the first record to the last record of the specified table (step 203, 204). The search condition is satisfied, that is, in this processing, it is checked by comparing each column data and the search key data whether or not they match (step 205). If they match, the corresponding record and its record Column position information corresponding to is added to the result set (step 20
6). The comparison process and the addition process are performed while the data to be handled is compressed.

【0035】一方、検索方法が一致検索以外の検索の場
合、指定されたテーブルの先頭レコードから最終レコー
ドまでレコード単位に各レコードの検索対象となるカラ
ムデータを読み込む(ステップ211、212)。そし
て、読み込んだカラムデータに対してのみカラムデータ
伸長部30において伸長を行い(ステップ213)、圧
縮されていない検索キーデータと伸長されたカラムデー
タとを用いて検索条件が満足するか否かを調べ(ステッ
プ214)、満足するようであれば該当するレコードと
そのレコードに対応するカラム位置情報をリザルトセッ
トに追加していく(ステップ215)。なお、リザルト
セットには伸長を行う前の圧縮された状態のレコードが
一時記憶される。この処理においては、検索対象となる
カラムデータのみが伸長の対象となるが、本実施例にお
いてはカラム単位に圧縮を施しているので、このような
処理が可能となる。
On the other hand, when the search method is a search other than the coincidence search, the column data to be searched for in each record from the first record to the last record of the designated table is read (steps 211 and 212). Then, the column data decompression unit 30 decompresses only the read column data (step 213) and determines whether or not the search condition is satisfied by using the uncompressed search key data and the decompressed column data. If it is satisfied (step 214), the record and column position information corresponding to the record are added to the result set if satisfied (step 215). It should be noted that the records in the compressed state before decompression are temporarily stored in the result set. In this process, only the column data to be searched is subject to decompression, but since this embodiment compresses in column units, such a process is possible.

【0036】以上のようにリザルトセットに一時記憶さ
れたレコード及びカラム位置情報は、送信部10におい
てネットワーク2に送出され(ステップ301、30
2)、検索要求元のデータ処理装置6に送信される。
The record and column position information temporarily stored in the result set as described above are transmitted to the network 2 by the transmitting unit 10 (steps 301 and 30).
2) It is transmitted to the data processing device 6 that is the search request source.

【0037】図5は、本実施例におけるデータ処理装置
6の伸長処理部38の動作を説明するためのフローチャ
ートであり、この図を用いてデータ処理装置6側におけ
る処理について説明する。
FIG. 5 is a flow chart for explaining the operation of the decompression processing unit 38 of the data processing device 6 in this embodiment, and the processing on the data processing device 6 side will be explained using this figure.

【0038】検索要求を発行したデータ処理装置6にお
ける伸長処理部38において、通信部34を介してレコ
ード及びカラム位置情報を受信すると(ステップ40
1、402)、カラム位置情報に基づいて受信したレコ
ードをカラム毎に分割する(ステップ403)。カラム
全てに対して分割が終了すると、全カラムに対してカラ
ムデータを伸長する(ステップ404)。カラム位置情
報に基づいて伸長されたカラムデータによりレコードを
形成することで元のレコードに復元する(ステップ40
5)。そして、復元したレコードを検索要求発行元の応
用プログラムに渡す(ステップ406)。このように、
最終的に検索要求に該当したレコードを応用プログラム
に渡すことができるわけであるが、データベース18を
有するデータ処理装置4からデータベースアクセス側の
データ処理装置6に送信されるデータは、圧縮されたま
まの状態で行われるため、データ転送量を減少させるこ
とができると共に転送時間を短縮することができる。
When the decompression processing unit 38 in the data processing device 6 which issued the search request receives the record and column position information via the communication unit 34 (step 40).
1, 402), the received record is divided for each column based on the column position information (step 403). When the division is completed for all columns, the column data is expanded for all columns (step 404). The original record is restored by forming a record with the column data expanded based on the column position information (step 40).
5). Then, the restored record is passed to the application program that issued the search request (step 406). in this way,
Finally, the record corresponding to the search request can be passed to the application program, but the data transmitted from the data processing device 4 having the database 18 to the data processing device 6 on the database access side remains compressed. Since it is performed in this state, the data transfer amount can be reduced and the transfer time can be shortened.

【0039】なお、上記実施例では、データ処理装置4
を、データベース18を有し他のデータ処理装置6から
のデータアクセスに対する処理を行うデータベース側の
データ処理装置として説明したが、データ処理装置4に
アクセス側データ処理装置6の機能を持たせてもよい。
In the above embodiment, the data processing device 4
Has been described as a data processing device on the database side having the database 18 and performing a process for data access from another data processing device 6, however, even if the data processing device 4 has the function of the access side data processing device 6. Good.

【0040】[0040]

【発明の効果】請求項1、2記載の発明によれば、レコ
ードをカラム単位で圧縮してデータベースに格納するよ
うにしたので、テーブルが占める記憶領域を減少させる
ことが可能となる。
According to the first and second aspects of the present invention, since the record is compressed in the column unit and stored in the database, the storage area occupied by the table can be reduced.

【0041】請求項3、4記載の発明によれば、取り扱
うレコードをカラム単位に圧縮しているので、一致検索
の場合は、検索キーデータを圧縮することで圧縮した検
索キーデータと圧縮されたままの検索対象となるカラム
データとを比較することができる。このため、カラムデ
ータを伸長するための処理が不要となるため、その分C
PUを解放することが可能となる。
According to the third and fourth aspects of the invention, since the record to be handled is compressed in column units, in the case of a match search, the search key data is compressed by compressing the search key data. It is possible to compare the column data that is the search target as it is. For this reason, the processing for decompressing the column data becomes unnecessary, and C
It becomes possible to release the PU.

【0042】請求項5、6記載の発明によれば、カラム
単位にデータを圧縮しているので、一致検索以外の検索
の場合は、検索対象となるカラムデータのみを伸長し、
これと検索キーデータとを比較することになるので、レ
コード単位に伸長する場合と比較してデータベースへの
アクセス量が大幅に削減でき、またデータを圧縮/伸長
するデータ量も大幅に削減することが可能となる。従っ
て、検索処理にかかる時間を大幅に短縮することがで
き、その分CPUを解放することが可能となる。
According to the fifth and sixth aspects of the invention, since the data is compressed in column units, in the case of a search other than the match search, only the column data to be searched is expanded,
Since this will be compared with the search key data, the amount of access to the database can be significantly reduced compared to the case of decompressing in record units, and the amount of data for compressing / decompressing data can also be greatly reduced. Is possible. Therefore, the time required for the search process can be significantly reduced, and the CPU can be released accordingly.

【0043】また、検索条件を満足して一時的に記憶さ
れるリザルトセットは、圧縮されたままなので、リザル
トセットが占める記憶領域を減少させることが可能とな
る。
Further, since the result set that satisfies the search condition and is temporarily stored is still compressed, it is possible to reduce the storage area occupied by the result set.

【0044】請求項7記載の発明によれば、カラム位置
情報を付加して圧縮されたままのレコードをそのままネ
ットワーク送信するようしたので、データ転送量を減少
させることが可能となる。また、データベース側データ
処理装置において送信時に圧縮/伸長する処理が不要と
なる。
According to the seventh aspect of the invention, since the record that has been compressed by adding the column position information is directly transmitted to the network, the data transfer amount can be reduced. In addition, the data processing device on the database side does not require a process of compressing / expanding at the time of transmission.

【0045】請求項8記載の発明によれば、データベー
スへの検索要求をしたデータ処理装置側にデータを伸長
するアクセス側カラムデータ伸長手段を設けたので、圧
縮されたレコードを受信したときにそのレコードを伸長
して検索要求元の応用プログラムに渡すことが可能とな
る。
According to the invention described in claim 8, since the access side column data decompressing means for decompressing the data is provided on the side of the data processing device which has issued the search request to the database, when the compressed record is received, It is possible to decompress the record and pass it to the application program of the search request source.

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

【図1】 本発明に係るデータベースシステムの構成の
一実施例を示した図である。
FIG. 1 is a diagram showing an example of a configuration of a database system according to the present invention.

【図2】 本実施例における投入機能部の動作を説明す
るためのフローチャートである。
FIG. 2 is a flowchart for explaining the operation of a closing function unit in the present embodiment.

【図3】 本実施例における検索機能部の動作を説明す
るためのフローチャートである。
FIG. 3 is a flowchart for explaining the operation of a search function unit in this embodiment.

【図4】 本実施例における送信部の動作を説明するた
めのフローチャートである。
FIG. 4 is a flowchart for explaining the operation of the transmission unit in this embodiment.

【図5】 本実施例における伸長処理部の動作を説明す
るためのフローチャートである。
FIG. 5 is a flowchart for explaining the operation of a decompression processing unit in this embodiment.

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

2 ネットワーク、4、6 データ処理装置、8 記憶
装置、10 送信部、12 受信部、14 投入機能
部、16 検索機能部、18 データベース、20 一
時記憶領域、22 レコード圧縮部、24 レコード登
録部、26 検索方法判定部、28 検索キーデータ圧
縮部、30、40 カラムデータ伸長部、32 データ
比較部、34 通信部、36 応用プログラム実行部、
38 伸長処理部、42 テーブル、44、48 カラ
ム情報保持部、46 リザルトセット。
2 network, 4 and 6 data processing device, 8 storage device, 10 transmission unit, 12 reception unit, 14 input function unit, 16 search function unit, 18 database, 20 temporary storage area, 22 record compression unit, 24 record registration unit, 26 search method determination unit, 28 search key data compression unit, 30, 40 column data decompression unit, 32 data comparison unit, 34 communication unit, 36 application program execution unit,
38 expansion processing unit, 42 table, 44, 48 column information holding unit, 46 result set.

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 圧縮されたデータを記憶するデータベー
スを有するデータベース側データ処理装置と前記データ
ベースにアクセスを行う1乃至複数のアクセス側データ
処理装置とを含むデータベースシステムにおいて、 前記データベース側データ処理装置は、レコード単位で
受け取るデータをカラム単位で圧縮しデータベースに投
入していく投入機能手段を有することを特徴とするデー
タベースシステム。
1. A database system including a database side data processing device having a database for storing compressed data, and one to a plurality of access side data processing devices for accessing the database, wherein the database side data processing device is A database system characterized by having input function means for compressing data received in record units in column units and inputting it into a database.
【請求項2】 請求項1記載のデータベースシステムに
おいて、 前記投入機能手段は、 レコードをカラム毎に圧縮するレコード圧縮部と、 圧縮したレコード及びカラム位置情報を前記データベー
スに登録するレコード登録部と、 を有することを特徴とするデータベースシステム。
2. The database system according to claim 1, wherein the input function unit includes a record compression unit that compresses a record for each column, and a record registration unit that registers the compressed record and column position information in the database. A database system comprising:
【請求項3】 請求項1記載のデータベースシステムに
おいて、 前記データベース側データ処理装置は、前記データベー
スに対する一致検索の場合にカラムを圧縮したままの状
態でデータ検索を行う一致検索機能手段を有することを
特徴とするデータベースシステム。
3. The database system according to claim 1, wherein the data processing device on the database side has a match search function means for performing a data search in a state where columns are compressed in the case of a match search for the database. Characteristic database system.
【請求項4】 請求項3記載のデータベースシステムに
おいて、 前記一致検索機能手段は、 検索キーデータを圧縮する検索キーデータ圧縮部と、 圧縮した検索キーデータと前記データベースの各カラム
とを比較する圧縮データ比較部と、 を有することを特徴とするデータベースシステム。
4. The database system according to claim 3, wherein the matching search function means is a search key data compression unit for compressing search key data, and a compression for comparing the compressed search key data with each column of the database. A database system comprising: a data comparison unit.
【請求項5】 請求項1記載のデータベースシステムに
おいて、 前記データベース側データ処理装置は、前記データベー
スに対する一致検索以外の検索の場合にカラム位置情報
に基づいて検索対象となるカラムのみを伸長してデータ
検索を行う一致検索以外検索機能手段を有することを特
徴とするデータベースシステム。
5. The database system according to claim 1, wherein the data processing device on the database side expands only a column to be searched based on column position information in the case of a search other than a match search for the database, and expands the data. A database system having a search function means other than a match search for performing a search.
【請求項6】 請求項5記載のデータベースシステムに
おいて、 前記一致検索以外検索機能手段は、 前記データベースに登録されているカラムを伸長するカ
ラムデータ伸長部と、 検索キーデータを伸長された各カラムと比較する伸長デ
ータ比較部と、 を有することを特徴とするデータベースシステム。
6. The database system according to claim 5, wherein the search function means other than the match search includes a column data expansion unit for expanding the columns registered in the database, and each column expanded with the search key data. A decompressed data comparison unit for comparison, and a database system.
【請求項7】 圧縮されたデータを記憶するデータベー
スを有するデータベース側データ処理装置とネットワー
クを介して前記データベースにアクセスを行う1乃至複
数のアクセス側データ処理装置を含むデータベースシス
テムにおいて、 前記データベース側データ処理装置は、カラム毎に圧縮
されたレコード及びそのレコードに対応したカラム位置
情報を前記アクセス側データ処理装置に送信するデータ
送信手段を有することを特徴とするデータベースシステ
ム。
7. A database system including a database-side data processing device having a database for storing compressed data, and one or a plurality of access-side data processing devices for accessing the database via a network, wherein the database-side data The database system, wherein the processing device has a data transmission means for transmitting a record compressed for each column and column position information corresponding to the record to the access side data processing device.
【請求項8】 圧縮されたデータを記憶するデータベー
スを有するデータベース側データ処理装置と前記データ
ベースにアクセスを行う1乃至複数のアクセス側データ
処理装置を含むデータベースシステムにおいて、 前記アクセス側データ処理装置は、前記データベース側
データ処理装置から受け取った圧縮されたままの状態の
レコード及びカラム位置情報に基づいて前記レコードを
カラム毎に分割し伸長するアクセス側カラムデータ伸長
手段を有し、前記レコードを元のレコードに復元するこ
とを特徴とするデータベースシステム。
8. A database system including a database side data processing device having a database for storing compressed data, and one to a plurality of access side data processing devices for accessing the database, wherein the access side data processing device comprises: It has an access side column data decompression means for decompressing and decompressing the record for each column based on the record in the as-compressed state and column position information received from the data processing device on the database side, and the record is the original record. A database system characterized by being restored to.
JP7119451A 1995-05-18 1995-05-18 Database system Pending JPH08314957A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7119451A JPH08314957A (en) 1995-05-18 1995-05-18 Database system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7119451A JPH08314957A (en) 1995-05-18 1995-05-18 Database system

Publications (1)

Publication Number Publication Date
JPH08314957A true JPH08314957A (en) 1996-11-29

Family

ID=14761720

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7119451A Pending JPH08314957A (en) 1995-05-18 1995-05-18 Database system

Country Status (1)

Country Link
JP (1) JPH08314957A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000305822A (en) * 1999-04-26 2000-11-02 Denso Corp Device for database management and device for database extraction, and method for database management and method for database extraction
JP2001101041A (en) * 1999-09-29 2001-04-13 Mitsubishi Electric Corp Device and method for managing data
JP2009080833A (en) * 2000-11-30 2009-04-16 Coppereye Ltd Database
JP2010026884A (en) * 2008-07-23 2010-02-04 Hitachi Ltd Data management method involving data compression processing
JP2011530234A (en) * 2008-07-31 2011-12-15 マイクロソフト コーポレーション Efficient column-based data encoding for large-scale data storage
JP2015035207A (en) * 2013-07-08 2015-02-19 株式会社エクサ Compression data processing program and compression data editing program
WO2015145647A1 (en) * 2014-03-27 2015-10-01 株式会社日立製作所 Storage device, data processing method, and storage system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000305822A (en) * 1999-04-26 2000-11-02 Denso Corp Device for database management and device for database extraction, and method for database management and method for database extraction
US6947944B1 (en) 1999-04-26 2005-09-20 Denso Corporation Database managing apparatus and database record retrieving apparatus
JP2001101041A (en) * 1999-09-29 2001-04-13 Mitsubishi Electric Corp Device and method for managing data
US6725225B1 (en) 1999-09-29 2004-04-20 Mitsubishi Denki Kabushiki Kaisha Data management apparatus and method for efficiently generating a blocked transposed file and converting that file using a stored compression method
JP2009080833A (en) * 2000-11-30 2009-04-16 Coppereye Ltd Database
JP2010026884A (en) * 2008-07-23 2010-02-04 Hitachi Ltd Data management method involving data compression processing
JP2011530234A (en) * 2008-07-31 2011-12-15 マイクロソフト コーポレーション Efficient column-based data encoding for large-scale data storage
JP2015035207A (en) * 2013-07-08 2015-02-19 株式会社エクサ Compression data processing program and compression data editing program
WO2015145647A1 (en) * 2014-03-27 2015-10-01 株式会社日立製作所 Storage device, data processing method, and storage system

Similar Documents

Publication Publication Date Title
US5745904A (en) Buffered table user index
US5317727A (en) Method apparatus for determining prefetch operating for a data base
JP4866495B2 (en) Method and apparatus for executing combined queries in a database system
JPH11120203A (en) Method for combining data base and device for retrieving document from data base
US11221999B2 (en) Database key compression
US20020016935A1 (en) Method and apparatus for scanning records
CN111817722A (en) Data compression method and device and computer equipment
JP2000305822A (en) Device for database management and device for database extraction, and method for database management and method for database extraction
JP3022378B2 (en) Search method for database system composed of different programming languages
JPH08314957A (en) Database system
US5918231A (en) Object-oriented database management system with improved usage efficiency of main memory
JPH04340163A (en) Keyword retrieval system
JPH02297670A (en) Data base retrieving system
JPH06139280A (en) File management system
JPH0552536B2 (en)
JPH0728836A (en) Data base retrieving method and data base system using this method
JPH02116936A (en) Reorganizing system
JPH0877044A (en) Data base controller
JP2000322291A (en) Method and device for expanding compressed data
JPH1185585A (en) Method and device for complete memory resident index
JP2502262B2 (en) Network database access method
JP2002149450A (en) Method and device for managing database
JP2938047B1 (en) Data buffering system
JPH06161843A (en) Relational data base managing system
JPH08328924A (en) Index updating system