JPH04145579A - Content retrieving device - Google Patents

Content retrieving device

Info

Publication number
JPH04145579A
JPH04145579A JP2268612A JP26861290A JPH04145579A JP H04145579 A JPH04145579 A JP H04145579A JP 2268612 A JP2268612 A JP 2268612A JP 26861290 A JP26861290 A JP 26861290A JP H04145579 A JPH04145579 A JP H04145579A
Authority
JP
Japan
Prior art keywords
page
record
search
records
search conditions
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
JP2268612A
Other languages
Japanese (ja)
Other versions
JPH0833900B2 (en
Inventor
Haruo Hayamizu
速水 治夫
Toshio Nakamura
敏夫 中村
Ichiro Itakura
板倉 一郎
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.)
NTT Inc
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2268612A priority Critical patent/JPH0833900B2/en
Publication of JPH04145579A publication Critical patent/JPH04145579A/en
Publication of JPH0833900B2 publication Critical patent/JPH0833900B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、データベースのデータ群を操作するデータ処
理装置に関し、特に、データベースにおけるインデック
スが付けられていないカラムに対する検索条件付き更新
処理を高速に行う内容検索装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data processing device for manipulating data groups in a database, and in particular, to a data processing device for manipulating a data group in a database, and in particular for speeding up update processing with search conditions for columns that are not indexed in a database. The present invention relates to a content search device.

[従来技術〕 データベースの検索条件付き更新処理は、指定された検
索条件に合致するレコードの特定カラムのデータを更新
する処理であるが、従来の検索条件付き更新処理を図を
用いて説明する。
[Prior Art] A database update process with search conditions is a process of updating data in a specific column of a record that matches a specified search condition. The conventional update process with search conditions will be explained with reference to the drawings.

第3図は、従来の検索条件付き更新処理を説明するため
の図で、説明上、データベースはm個のレコードをN個
のページに分けて格納する形式を採るものとする。各ペ
ージ(1回の入出力命令で読み出したりあるいは書き出
しだすする固定長の物理レコード)31は、複数のレコ
ード32からなり、各レコード32はデータを蓄える第
1カラム33、第2カラム34、レコード番号を蓄える
第3カラム35から構成されている。
FIG. 3 is a diagram for explaining conventional update processing with search conditions. For the sake of explanation, it is assumed that the database has a format in which m records are stored divided into N pages. Each page (a fixed-length physical record that is read or written by one input/output command) 31 consists of a plurality of records 32, and each record 32 stores data in a first column 33, a second column 34, and a record. It consists of a third column 35 for storing numbers.

このようなデータベースにおいて、第1カラム33の値
が5″のレコードの第2カラム34に値“4nを加える
という、検索条件付き更新処理を具体例として以下説明
する。ただし、第1カラム33にはインデックスが付い
ていないものとす従って、第1カラム33の値が5″の
レコードを見つけ出すために、図示しないファイル記憶
装置から全てのページを順に、図示しない本体装置上の
メモリ作業域に読み込み、読み込まれたページ内の各レ
コードの検索条件(第1カラム33の値=“5”)を判
定し、条件が一致するレコードの第2カラム34を更新
処理する。
In such a database, a specific example of update processing with a search condition will be described below, in which the value "4n" is added to the second column 34 of a record whose first column 33 has a value of 5". However, it is assumed that the first column 33 does not have an index. Therefore, in order to find the record with the value 5'' in the first column 33, all pages are sequentially searched from the file storage device (not shown) in the main unit (not shown). The search condition for each record in the read page is determined (the value of the first column 33 = "5"), and the second column 34 of the record that matches the condition is updated.

すなわち、第3図の例では、第1ページには検索条件に
該当するレコードが無いので、検索終了時点でそのペー
ジを作業域から破棄する。第2ページには検索条件に該
当するレコードが有るので、作業域で該レコードを更新
処理し、更新された第2ページを作業域に保存する。同
様に、第N−1ページには検索条件に該当するレコード
が無いので、検索終了時点でそのページを作業域から破
棄し、第Nページには検索条件に該当するレコードが有
るので、作業域で該レコードを更新処理し、更新された
第Nページを作業域に保存する。このようにして全ての
ページに対する上記処理が終了すると、作業域にある更
新された全ページをファイル記憶装置に格納する。
That is, in the example of FIG. 3, since there is no record matching the search conditions on the first page, that page is discarded from the work area at the time the search ends. Since the second page has a record that meets the search conditions, the record is updated in the work area, and the updated second page is saved in the work area. Similarly, since there are no records that match the search conditions on the N-1st page, that page is discarded from the work area at the end of the search, and since there are records that match the search conditions on the N-th page, the page is discarded from the work area. The record is updated and the updated Nth page is saved in the work area. When the above processing for all pages is completed in this way, all updated pages in the work area are stored in the file storage device.

〔発明が解決しようとする課M〕[Problem M that the invention seeks to solve]

上記した検索手法では、前述したようにファイル記憶装
置から全てのページを順にメモリに読み込んで検索処理
しているため、高速に処理することができない。
In the above-mentioned search method, all pages are sequentially read from the file storage device into the memory and search processing is performed as described above, and therefore, high-speed processing cannot be performed.

そこで、検索処理を高速化する技術として、本体装置か
らの指令に基づいてファイル記憶装置の複数ページを連
続して読みだし、ページ内のレコード群から指定された
検索条件に合致するレコード群を選択して本体装置へ転
送する内容検索装置を用いて、インデックスが付けられ
ていないカラムの検索条件判定を高速化する技術が知ら
れている。
Therefore, as a technology to speed up the search process, multiple pages of the file storage device are successively read based on commands from the main unit, and records that match the specified search conditions are selected from the records within the page. There is a known technique for speeding up the determination of search conditions for columns that are not indexed using a content search device that transfers the content to the main unit.

第4図は、内容検索装置を備えたシステム構成図で、4
1は内容検索装置、42は本体装置、43は本体装置上
のデータベース管理システム、44はメモリ作業域、4
5はファイル記憶装置である。内容検索装置41は、本
体装置42からの指令に基づいてファイル記憶装置45
の複数ページを連続して読みだし、ページ内のレコード
群から −指定された検索条件に合致するレコード群を
選別して本体装置!42へ転送する。このような検索条
件合致レコード群50を第5因に示し、レコード51は
ページ番号2中のレコードであり、レコード52はペー
ジ番号N中のレコードである。すなわち、従来の内容検
索装置41は、検索条件合致レコード群をブロック化し
、1つのページに構成して本体装置42に転送する。デ
ータベース管理システム43は、転送された検索条件合
致レコードのユニークキー(この例では第3カラムのレ
コード番号)をインデックスにしてファイル記憶装置4
5を検索し、該当するレコードが格納されているページ
をメモリ作業域44に読み込み、検索条件合致レコード
の第2カラムを更新する。全ての検索条件合致レコード
を格納しているページの更新が終了すると、作業域44
にある更新された全ページをファイル記憶装置45に書
き出す。
Figure 4 is a system configuration diagram equipped with a content search device.
1 is a content search device, 42 is a main unit, 43 is a database management system on the main unit, 44 is a memory work area, 4
5 is a file storage device. The content search device 41 searches the file storage device 45 based on instructions from the main device 42.
Continuously reads multiple pages of the page and selects records that match the specified search conditions from the records within the page. Transfer to 42. Such a search condition matching record group 50 is shown as a fifth factor, where record 51 is a record in page number 2, and record 52 is a record in page number N. That is, the conventional content search device 41 blocks a group of records matching the search conditions, configures the blocks into one page, and transfers the block to the main device 42 . The database management system 43 uses the unique key (in this example, the record number in the third column) of the transferred search condition matching record as an index to store the file storage device 4.
5 is searched, the page storing the corresponding record is read into the memory work area 44, and the second column of the record matching the search condition is updated. When the page that stores all the records matching the search conditions has been updated, the work area 44
All updated pages in the file are written to the file storage device 45.

内容検索装置を用いることによって、全ページにわたる
レコードの検索条件判定処理が高速化されるので、イン
デックスが付けられていないカラムに対する検索条件付
き更新処理全体が高速化される。
By using the content search device, the search condition determination process for records across all pages is sped up, so the entire update process with search conditions for columns that are not indexed is sped up.

しかしながら、上記した従来の処理方式では、検索条件
が指定されたカラムによる検索に加えて、本来ならば必
要のないユニークキーによる検索を行わなければならず
、また更新の対象となるページを2度、ファイル記憶装
置から読みださなければならず、そのために高速化が妨
げられるという問題があった。
However, in the conventional processing method described above, in addition to searching by columns with specified search conditions, it is necessary to search by unique keys, which are not normally necessary, and the page to be updated must be searched twice. , the data must be read from the file storage device, which poses a problem in that speeding up is hindered.

本発明の目的は、インデックスが付けられていないカラ
ムに対する検索条件付き更新処理をより一層高速化した
内容検索装置を提供することにある。
An object of the present invention is to provide a content search device that further speeds up update processing with search conditions for columns that are not indexed.

〔課題を解決するための手段〕[Means to solve the problem]

前記目的を達成するために、本発明では、本体装置から
の指令によってファイル記憶装置に格納された複数のペ
ージを連続して読みだし、各ページのレコード群から指
定された検索条件に合致するレコード群を選択して前記
本体装置へ転送する内容検索装置において、前記検索条
件に合致するレコードを含むページと、前記検索条件に
合致するレコードを指示する情報と、該ページのページ
番号を指示する情報とを前記本体装置に転送する手段を
備えたことを特徴としている。
In order to achieve the above object, the present invention sequentially reads a plurality of pages stored in a file storage device in response to a command from a main unit, and extracts records that match specified search conditions from a group of records on each page. In a content search device that selects a group and transfers it to the main device, information indicating a page including a record matching the search condition, information indicating a record matching the search condition, and information indicating a page number of the page. The present invention is characterized by comprising means for transmitting the information to the main body device.

〔作 用〕[For production]

前述した手段によれば、本体装置の作業域上で直ちに検
索条件が合致したレコードの更新処理を行うことができ
、インデックスが付けられていないカラムに対する検索
条件付き更新処理をより高速化できる。
According to the above-described means, it is possible to immediately update a record that matches a search condition on the work area of the main device, and it is possible to speed up update processing with a search condition for columns that are not indexed.

[実施例] 以下、本発明の一実施例を図面を用いて具体的に説明す
る。
[Example] Hereinafter, an example of the present invention will be specifically described using the drawings.

第1図は、本発明の一実施例の構成図であり、本発明の
内容検索装置1と、本体装置2と、ファイル記憶装置3
との相互の接続関係は従来のものと同様である。
FIG. 1 is a block diagram of an embodiment of the present invention, which includes a content search device 1, a main device 2, and a file storage device 3 of the present invention.
The mutual connection relationship with the conventional one is the same as that of the conventional one.

本発明の内容検索装置lは、ファイル記憶装置3とのイ
ンターフェースを制御するファイル制御部11と、ファ
イル記憶装置3から読みだされたページを格納する、2
面で構成された入力バッファ12と、検索条件を判定す
る検索器13と、検索器13を制御し、検索条件合致レ
コードのレコードIDを取り出す検索制御部14と、検
索条件合致レコードのレコードIDからなる第2の報告
情報を格納する、2面構成の第2報告情報バツフア15
と、入力バッファ12中の検索条件該当レコードを含む
ページ群からなる第1の報告情報と、前記第2の報告情
報を本体装置2に転送制御するチャネル制御部16から
構成されている。
The content search device 1 of the present invention includes a file control unit 11 that controls an interface with the file storage device 3, and 2 that stores pages read from the file storage device 3.
an input buffer 12 configured with a screen, a search device 13 that determines search conditions, a search control unit 14 that controls the search device 13 and extracts record IDs of records that match the search conditions, and A two-page second report information buffer 15 stores second report information
, first report information consisting of a group of pages including records matching the search conditions in the input buffer 12 , and a channel control unit 16 that controls the transfer of the second report information to the main unit 2 .

第2図は、第1の報告情報21と、第2の報告情報22
の具体例を示す図である。第1の報告情報21は、検索
条件合致レコードが存在したページからなり、第3図の
例に従えば、ページ番号が一2番とN番のページ群で構
成される。第2の報告情報22は、検索条件合致レコー
ドのレコード■Dであり、このレコードIDは、本体装
置2に転送されたページ群の中から検索条件合致レコー
ドを認識するための情報と更新終了後のページをファイ
ル記憶装置3に書き出すための情報がらなっている。
FIG. 2 shows first report information 21 and second report information 22.
It is a figure showing a specific example. The first report information 21 is made up of pages in which records matching the search conditions exist, and according to the example of FIG. 3, it is made up of a group of pages with page numbers 12 and N. The second report information 22 is a record D of a record matching the search conditions, and this record ID is the information for recognizing the records matching the search conditions from among the pages transferred to the main device 2. The page contains information for writing the page to the file storage device 3.

すなわち、具体的には、レコードIDはページ番号とペ
ージ内レコード番号および相対ページ番号の組から構成
されている。ここで、ページ内レコード番号は前記ペー
ジ内の検索条件合致レコードを認識するために使用され
る番号で、例えばページ番号Nのページ内レコード番号
2とはNページ内の2番目のレコードが検索条件合致レ
コードであることを示している。相対ページ番号は作業
域上で内容検索装置1が本体装置2に転送した各ページ
を認識するために使用される番号で、例えばページ番号
2における相対ページ番号1とは、ページ番号2のペー
ジが第1#目のページであり、ページ番号Nのページが
第2番目のページであることを示している。そして、後
述するようにデータベース管理システムは、相対ページ
番号が小さく、該相対ページ番号内でページ内レコード
番号が小さい順にレコードの更新処理を行う。
That is, specifically, the record ID is composed of a set of a page number, an intra-page record number, and a relative page number. Here, the in-page record number is a number used to recognize the record that matches the search condition in the page. For example, in-page record number 2 of page number N means that the second record in page N is the number that matches the search condition. Indicates that it is a matching record. The relative page number is a number used to recognize each page transferred from the content search device 1 to the main device 2 on the work area.For example, relative page number 1 in page number 2 means that the page with page number 2 is This is the first #th page, indicating that the page with page number N is the second page. Then, as will be described later, the database management system performs record update processing in the order of the smallest relative page number and the smallest intra-page record number within the relative page number.

また、ページ番号は、作業域上で更新処理が終了したペ
ージをファイル記憶装置3に書き出す時に使用する。
Further, the page number is used when writing the page for which update processing has been completed in the work area to the file storage device 3.

以上のように構成された本発明の詳細な説明すると、フ
ァイル制御部11は、ファイル記憶装置3から連続的に
ページを読みだして、入力バッファ12の2面に交互に
格納する(入力バッファ12の1面の容量はNページ分
)。検索111#IWT14と検索器13は、入力バッ
ファ12中の各レコードについて検索条件を判定し、第
2図のような検索条件合致レコードのレコードIDを生
成して、第2報告情報バツフア15に格納する。入ガバ
ッファ12の1面の全レコードの検索が終了すると、チ
ャネル制御部16は入力バッファ12中の検索条件合致
レコードが存在したページ(第1の報告情報21)と第
2報告情報バツフア15中の第2の報告情報22を本体
装置2へ転送する。
To explain in detail the present invention configured as above, the file control unit 11 continuously reads pages from the file storage device 3 and stores them alternately on two sides of the input buffer 12 (input buffer 12 The capacity of one side is N pages). The search 111#IWT 14 and the search device 13 determine search conditions for each record in the input buffer 12, generate record IDs of records that match the search conditions as shown in FIG. 2, and store them in the second report information buffer 15. do. When the search for all the records on the first side of the input buffer 12 is completed, the channel control unit 16 searches the page (first report information 21) in which the record matching the search condition exists in the input buffer 12 and the page in the second report information buffer 15. The second report information 22 is transferred to the main device 2.

本体装置上のデータベース管理システム4は、第1の報
告情報21であるページ中の検索条件合致レコードを、
第2の報告情報22であるレコードIDに基づいて順次
、すなわち相対ページ番号が小さくて、該相対ページ番
号内でページ内レコード番号が小さい順に検出し、検出
されたレコードの第2カラムを作業域5上で更新処理す
る。作業域5上で全ての更新対象ページの更新が終了す
ると、更新されたページを第2の報告情報22のページ
番号に基き、チャネル制御n16およびファイル制御部
11を介してファイル記憶装置3に書きだされる。
The database management system 4 on the main device stores records that match the search conditions in the page, which is the first report information 21.
Based on the record ID which is the second report information 22, it is detected sequentially, that is, in order of the smallest relative page number and the record number within the page within the relative page number, and the second column of the detected record is stored in the work area. Update processing is performed on 5. When all update target pages have been updated on the work area 5, the updated pages are written to the file storage device 3 via the channel control n16 and the file control unit 11 based on the page number of the second report information 22. issued.

続いて、入力バッファ12の残りの1面分の全レコード
の検索を前述したと同様に行い、これと同時に先に検索
された入力バッファ12の1面には、ファイル記憶装置
3から連続的にNページが格納される。
Subsequently, all records for the remaining side of the input buffer 12 are searched in the same manner as described above, and at the same time, the first side of the input buffer 12 searched earlier is continuously searched from the file storage device 3. N pages are stored.

このように、本発明の第1、第2の報告情報を用いるこ
とによって1本体装置の作業域上で直ちに検索条件が合
致したレコードの更新処理を行うことができる。
In this way, by using the first and second report information of the present invention, it is possible to immediately update a record that matches the search condition in the work area of one main body device.

なお、本体装置上のデータベース管理システムの処理方
式とデータベースの構成は、上記実施例に限定されるも
のではない。
Note that the processing method of the database management system on the main body device and the configuration of the database are not limited to the above embodiments.

[発明の効果] 以上、説明したように、本発明によれば、検索条件合致
レコードを本体装置に転送するときに、検索条件合致レ
コードが存在するページと、検索条件合致レコードを認
識するための情報と、該ページのページ番号を示す情報
を本体装置に転送しているので、従来のようにインデッ
クスの参照や更新対象レコードを含むページを再度ファ
イル記憶装置から読み込むことなく、直ちに更新対象レ
コードの更新処理を行うことができる。この結果、イン
デックスが付けられていないカラムに対する検索条件付
き更新処理をよりいっそう高速化することができる。
[Effects of the Invention] As described above, according to the present invention, when a record matching the search conditions is transferred to the main device, the page on which the record matching the search conditions exists and the process for recognizing the record matching the search conditions are provided. Since the information and the information indicating the page number of the page are transferred to the main unit, the record to be updated can be immediately updated without referring to the index or re-reading the page containing the record to be updated from the file storage device as in the past. Update processing can be performed. As a result, it is possible to further speed up update processing with search conditions for columns that are not indexed.

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

第1図は本発明の一実施例の構成図、第2図は本発明の
第1の報告情報と、第2の報告情報を示す図、第3図は
従来の検索条件付き更新処理を説明するための図、第4
図は従来の内容検索装置を備えたシステム構成図、第5
図は従来の検索条件合致レコード群を示す図である。 1・・・内容検索装置、  2−・・本体装置、3・・
ファイル記#装置、 11・・ファイル制御部、  12・・・入力バッファ
、13・・・検索器、  14・・・検索制御部、15
・・・第2報告情報バツフア、 16・・・チャネル制御部。 第4図 第5図
Fig. 1 is a block diagram of an embodiment of the present invention, Fig. 2 is a diagram showing first report information and second report information of the present invention, and Fig. 3 explains conventional update processing with search conditions. Figure 4 for
Figure 5 is a system configuration diagram equipped with a conventional content search device.
The figure is a diagram showing a conventional search condition matching record group. 1...Content search device, 2-...Main device, 3...
File writing device, 11... File control unit, 12... Input buffer, 13... Search device, 14... Search control unit, 15
...Second report information buffer, 16...Channel control unit. Figure 4 Figure 5

Claims (1)

【特許請求の範囲】[Claims] (1)本体装置からの指令によってファイル記憶装置に
格納された複数のページを連続して読みだし、各ページ
のレコード群から指定された検索条件に合致するレコー
ド群を選択して前記本体装置へ転送する内容検索装置に
おいて、前記検索条件に合致するレコードを含むページ
と、前記検索条件に合致するレコードを指示する情報と
、該ページのページ番号を指示する情報とを前記本体装
置に転送する手段を備えたことを特徴とする内容検索装
置。
(1) Continuously read multiple pages stored in the file storage device according to a command from the main unit, select a group of records that match the specified search conditions from the record group of each page, and send the selected records to the main unit. In the content search device to be transferred, means for transferring a page including a record matching the search condition, information indicating a record matching the search condition, and information indicating a page number of the page to the main device. A content search device comprising:
JP2268612A 1990-10-06 1990-10-06 Content retrieval device Expired - Fee Related JPH0833900B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2268612A JPH0833900B2 (en) 1990-10-06 1990-10-06 Content retrieval device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2268612A JPH0833900B2 (en) 1990-10-06 1990-10-06 Content retrieval device

Publications (2)

Publication Number Publication Date
JPH04145579A true JPH04145579A (en) 1992-05-19
JPH0833900B2 JPH0833900B2 (en) 1996-03-29

Family

ID=17460964

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2268612A Expired - Fee Related JPH0833900B2 (en) 1990-10-06 1990-10-06 Content retrieval device

Country Status (1)

Country Link
JP (1) JPH0833900B2 (en)

Also Published As

Publication number Publication date
JPH0833900B2 (en) 1996-03-29

Similar Documents

Publication Publication Date Title
JPS63121179A (en) Staging method
JPH04145579A (en) Content retrieving device
US5119492A (en) Information retrieval apparatus with separate retrieval conditions and updatable key registers
JPS6057849U (en) information retrieval device
JP2573577B2 (en) File access device
JP2570853B2 (en) Database processing system
JPH07101382B2 (en) Margin processing device
JPS61292779A (en) Control method for retrieving data
JPS63253431A (en) Retrieving system for data base of inverted structure
JPH03225412A (en) File data read system
JPH0664599B2 (en) Document file search device
JP2747009B2 (en) Record addition method for indexed sequential files
JPH01166232A (en) data recovery method
JPH04314144A (en) Dara block accesssing system for sequential file
JPH02127742A (en) Idle area retrieving system
JPH0145648B2 (en)
JPH03168868A (en) Index word control device
JPS63197166A (en) electronic filing system
JPH05120064A (en) Trace acquisition system
JPS62109172A (en) Image data search system
JPH0432964A (en) Filing system
JPH02307136A (en) File controller
JPS6278638A (en) File recording and control system
JPS6355650A (en) System for retrieving record of virtual disk device
JPH0291725A (en) Merging processing system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees