JPH0447367A - Data base retrieval system - Google Patents

Data base retrieval system

Info

Publication number
JPH0447367A
JPH0447367A JP2084152A JP8415290A JPH0447367A JP H0447367 A JPH0447367 A JP H0447367A JP 2084152 A JP2084152 A JP 2084152A JP 8415290 A JP8415290 A JP 8415290A JP H0447367 A JPH0447367 A JP H0447367A
Authority
JP
Japan
Prior art keywords
search
data
retrieval
search condition
result storage
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
JP2084152A
Other languages
Japanese (ja)
Inventor
Michiko Katsuta
勝田 美智子
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2084152A priority Critical patent/JPH0447367A/en
Publication of JPH0447367A publication Critical patent/JPH0447367A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten the data base retrieval time by constituting a system so that the retrieval processing time is dependent upon the frequency in data update of a data base with respect to the data base retrieval processing. CONSTITUTION:A retrieval processing means 3 is started by a retrieval request from a user and searches a retrieval condition from a retrieval condition stack table 4 to get the designated retrieval condition and updates only data satisfying the gotten retrieval condition at the time of reading in data of a journal file 6 to update data in a retrieval result storage file 5. After the update of the retrieval result storage file 5, data in the retrieval result storage file 5 is transferred to the user as the retrieval result. Thus, the number of data updated in the period from preceding retrieval to next retrieval is normally smaller than that stored in the data base when the data base having a large number of data is frequently retrieved in the same condition, and therefore, the data base retrieval time is shortened.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータベース検索方式に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a database search method.

〔従来の技術〕[Conventional technology]

従来のデータベースの検索処理に於いて、ジャーナルフ
ァイルはデータベース障害の際の復旧の手段として用い
られていた。また頻繁に使用する検索条件、或は検索処
理手続きをスタックしておく機能はあるものの利用者か
ら検索要求がある都度、データベースのデータをアクセ
スし検索条件を満たすデータを得ている。
In conventional database search processing, journal files are used as a means of recovery in the event of a database failure. Furthermore, although there is a function to stack frequently used search conditions or search processing procedures, each time a user makes a search request, data in the database is accessed to obtain data that satisfies the search conditions.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のデータベース検索方式に於いては、デー
タベースに格納されているデータ件数に応じてデータベ
ースの検索処理に時開がかかるという欠点を有している
The above-described conventional database search method has the disadvantage that the database search process takes time depending on the number of data items stored in the database.

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

本発明のデータベース検索方式は、指定されたデータベ
ースに対し更新が行われる都度更新後のイメージを管理
するジャーナルファイルと、利用者の指定した検索条件
を管理する検索条件スタックテーブルと、前記検索条件
に従ってデータベースを検索した結果のデータをスタッ
クしておく検索結果格納ファイルと、検索条件登録手段
と、検索処理手段とを有し、 検索条件登録手段は、利用者からの検索条件登録要求に
より起動し、指定された検索条件を検索条件スタックテ
ーブルに登録するとともに、そのデータベースを検索し
て検索条件に合致したデータを検索結果格納ファイルに
格納し、 検索処理手段は、利用者からの検索要求により起動され
、検索条件スタックテーブルから検索条件をサーチして
指定の検索条件を入手し、ジャーナルファイル内のデー
タを読み込んで検索結果格納ファイル内のデータを更新
するとき入手した検索条件に合致するデータのみを更新
し、検索結果格納ファイルを更新し終えたならば検索結
果格納ファイルのデータを利用者に検索結果とし渡す。
The database search method of the present invention includes a journal file that manages an updated image each time a specified database is updated, a search condition stack table that manages search conditions specified by the user, and a search condition stack table that manages search conditions specified by the user. It has a search result storage file in which data of the results of searching the database is stacked, a search condition registration means, and a search processing means, and the search condition registration means is activated by a search condition registration request from a user, The specified search condition is registered in the search condition stack table, the database is searched, and data matching the search condition is stored in the search result storage file, and the search processing means is activated by a search request from the user. , When searching for search conditions from the search condition stack table to obtain the specified search conditions, reading the data in the journal file and updating the data in the search result storage file, only the data that matches the obtained search conditions are updated. However, once the search result storage file has been updated, the data in the search result storage file is passed to the user as the search result.

〔実施例〕〔Example〕

第1図は、本発明の一実施例の構成を示すブロック図で
ある。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

第1図を参照すると、本発明の一実施例は入出力装置1
、検索条件登録手段2、検索処理手段3、検索条件スタ
ックテーブル4、検索結果格納ファイル5、ジャーナル
ファイル6およびデータベース7から構成されている。
Referring to FIG. 1, one embodiment of the present invention includes an input/output device 1
, search condition registration means 2, search processing means 3, search condition stack table 4, search result storage file 5, journal file 6, and database 7.

第2図は、検索条件登録手段2の動作を示すフローチャ
ートである。第2図を参照すると、検索条件登録手段2
は、検索条件、検索条件識別子、検索データベース識別
名、検索結果格納ファイル名を受は取って検索条件スタ
ックテーブル4に格納しくステップ101)、現在の日
時を検索条件スタックテーブル4の最新検索日時に設定
する(ステップ102>、次に指定のデータベース7を
検索条件に従って検索し、検索条件に合致したデータを
検索結果格納ファイル5に格納しくステップ103)処
理を終了する。
FIG. 2 is a flowchart showing the operation of the search condition registration means 2. Referring to FIG. 2, search condition registration means 2
receives the search condition, search condition identifier, search database identifier, and search result storage file name and stores them in the search condition stack table 4 (Step 101), and sets the current date and time to the latest search date and time in the search condition stack table 4. settings (step 102>, then search the designated database 7 according to the search conditions, and store data matching the search conditions in the search result storage file 5 (step 103)) The process ends.

第3図は、検索処理手段3の動作を示すフローチャート
である。
FIG. 3 is a flowchart showing the operation of the search processing means 3.

第3図を参照すると、検索処理手段3は、先ず検索条件
識別名を受は取(ステップ201)す、検索条件スタッ
クテーブル4から最初の検索条件を1件取り出す(ステ
ップ202)。
Referring to FIG. 3, the search processing means 3 first receives a search condition identifier (step 201), and then extracts the first search condition from the search condition stack table 4 (step 202).

指定の検索条件識別名と、取り出した検索条件とを比較
しくステップ203) 、違う場合は、検索条件スタッ
クテーブル4に検索条件があるかチエツクしくステップ
204)、ある場合は、検索条件スタックテーブル4か
ら次の検索条件を1件取り出しくステップ205> 、
再度ステップ203の処理を行う。無い場合はエラーと
する。
Compare the specified search condition identifier with the retrieved search condition (step 203), and if they are different, check whether the search condition exists in the search condition stack table 4 (step 204); if there is, check the search condition stack table 4. Step 205 of retrieving the next search condition from
The process of step 203 is performed again. If it does not exist, an error will occur.

ステップ203で同じ場合は、検索条件スタックテーブ
ル4より、検索条件、検索データベース識別名、検索結
果格納ファイル名、最新検索日時を入手しくステップ2
06) 、ジャーナルファイル6を読み込む(ステップ
207)。
If they are the same in step 203, obtain the search conditions, search database identification name, search result storage file name, and latest search date and time from the search condition stack table 4.Step 2
06) Read journal file 6 (step 207).

読み込んだ更新データは検索データベースのもので更新
日時は最新検索日時以降かチエツクしくステップ208
) 、最新更新日時以降であった場合は、更新の種類は
追加かチエツクする(ステップ209)。
Check whether the updated data read is from the search database and the update date and time is after the latest search date and time.Step 208
), if it is after the latest update date and time, it is checked whether the update type is addition (step 209).

追加でない場合(すなわち削除または変更の場合)は、
検索結果格納ファイル5に対応するデータがあるかチエ
ツクしくステップ210)、有る場合は、そのデータを
検索結果格納ファイル5から削除する(ステップ211
)。
If it is not an addition (i.e. a deletion or modification), then
Check whether there is corresponding data in the search result storage file 5 (step 210), and if there is, delete that data from the search result storage file 5 (step 211).
).

さらに更新の種類が削除かチエツクしくステップ212
)、削除の場合は、ジャーナルファイルに次のデータが
あるかチエツクする(ステップ213)、有る場合は、
再度ステップ207より処理を行い、無い場合は、ジャ
ーナルファイル6のi&後の更新データの更新日時を検
索結果格納ファイル5の最新検索日時に設定した後(ス
テップ214)検索結果格納ファイル5のデータを出力
しくステップ215)、処理を終了する。
Furthermore, check whether the update type is deleted or not.Step 212
), in the case of deletion, check whether the following data exists in the journal file (step 213), if so,
Processing is performed again from step 207, and if there is no data, the update date and time of the updated data after i& of journal file 6 is set to the latest search date and time of search result storage file 5 (step 214), and then the data of search result storage file 5 is After outputting (step 215), the process ends.

ステップ208で最新更新日時で無がった場合ステップ
213の処理を行う、ステップ209で更新の種類が追
加の場合、更新データが検索条件と一致するかチエツク
しくステップ216)、致しない場合は、ステップ21
3の処理を行う。
If the latest update date and time are not found in step 208, proceed to step 213. If the update type is addition in step 209, check whether the updated data matches the search conditions (step 216); if not, proceed to step 213. Step 21
Perform step 3.

一致する場合は、更新データを検索結果格納ファイル5
に追加した後(ステップ217>、ステップ213の処
理を行う。ステップ212で更新の種類が削除で無い場
合(すなわち変更の場合)ステップ216の処理を行う
If there is a match, the updated data is stored in the search result storage file 5.
(Step 217>, the process of Step 213 is performed. If the type of update is not a deletion in Step 212 (that is, a change), the process of Step 216 is performed.

第4図は検索条件スタックテーブル4の内部構造図の一
例、第5図は検索結果格納ファイル5の内部構造図の一
例である。
FIG. 4 is an example of an internal structure diagram of the search condition stack table 4, and FIG. 5 is an example of an internal structure diagram of the search result storage file 5.

〔発明の効果〕〔Effect of the invention〕

以上の説明で明らかなように、本発明は、データベース
の検索処理において検索処理時間がデータベースに格納
されているデータ件数に依存するのではなく、データベ
ースに対するデータ更新数に依存する検索時間のかかる
構成とした。このため、データ件数の多いデータベース
に対し、同一の検索条件で頻繁に検索を行う場合、前回
の検索から次の検索までの間に更新されるデータ件数に
データベースに格納されているデータ件数よりも通常は
少ないので、本発明の方式はデータベース検索時間を従
来方式よりも短縮することが可能となる。
As is clear from the above description, the present invention provides a configuration in which the search processing time in a database search process does not depend on the number of data items stored in the database, but on the number of data updates to the database. And so. Therefore, if you frequently search a database with a large number of data items using the same search conditions, the number of data items updated between the previous search and the next search will exceed the number of data items stored in the database. Since the number is usually small, the method of the present invention can shorten the database search time compared to the conventional method.

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

第1図は、本発明の文体変換方式の一実施例の構成を示
すブロック図であり、第2図は第1図中の検索条件登録
手段2の動作を示すフローチャート、第3図は第1図中
の検索処理手段3の動作を示すフローチャート、第4図
は第1図中の検索条件スタックテーブル4の内部構造図
、第5図は第1図中の検索結果格納ファイル5の内部構
造図である。 1・・・入出力装置、2・・・検索条件登録手段、3・
・・検索処理手段、4・・・検索条件スタックテーブル
、5・・・検索結果格納ファイル、6・・・ジャーナル
ファイル、7・・・データベース。
FIG. 1 is a block diagram showing the configuration of an embodiment of the writing style conversion method of the present invention, FIG. 2 is a flowchart showing the operation of the search condition registration means 2 in FIG. 1, and FIG. A flowchart showing the operation of the search processing means 3 in the figure, FIG. 4 is an internal structure diagram of the search condition stack table 4 in FIG. 1, and FIG. 5 is an internal structure diagram of the search result storage file 5 in FIG. 1. It is. 1... Input/output device, 2... Search condition registration means, 3.
... Search processing means, 4... Search condition stack table, 5... Search result storage file, 6... Journal file, 7... Database.

Claims (1)

【特許請求の範囲】 指定されたデータベースに対し更新が行われる都度更新
後のイメージを管理するジャーナルファイルと、 利用者の指定した検索条件を管理する検索条件スタック
テーブルと、 前記検索条件に従ってデータベースを検索した結果のデ
ータをスタックしておく検索結果格納ファイルと、 検索条件登録手段と、 検索処理手段とを有し、 前記検索条件登録手段は、利用者からの検索条件登録要
求により起動し、指定された検索条件を前記検索条件ス
タックテーブルに登録するとともに、そのデータベース
を検索して検索条件に合致したデータを前記検索結果格
納ファイルに格納し、 前記検索処理手段は、利用者からの検索要求により起動
され、前記検索条件スタックテーブルから検索条件をサ
ーチして指定の検索条件を入手し、前記ジャーナルファ
イル内のデータを読み込んで前記検索結果格納ファイル
内のデータを更新するとき入手した検索条件に合致する
データのみを更新し、検索結果格納ファイルを更新し終
えたならば前記検索結果格納ファイルのデータを利用者
に検索結果とし渡すことを特徴とするデータベース検索
方式。
[Claims] A journal file for managing an updated image each time a specified database is updated; a search condition stack table for managing search conditions specified by a user; and a search condition stack table for managing a search condition specified by a user; It has a search result storage file in which data of search results is stacked, a search condition registration means, and a search processing means, and the search condition registration means is activated in response to a search condition registration request from a user and specifies the search condition. The search processing means registers the search conditions in the search condition stack table, searches the database, and stores data matching the search conditions in the search result storage file; is activated, searches for a search condition from the search condition stack table to obtain the specified search condition, reads data in the journal file, and matches the obtained search condition when updating data in the search result storage file. A database search method characterized in that only the data to be searched is updated, and when the search result storage file has been updated, the data in the search result storage file is passed to the user as the search result.
JP2084152A 1990-03-30 1990-03-30 Data base retrieval system Pending JPH0447367A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2084152A JPH0447367A (en) 1990-03-30 1990-03-30 Data base retrieval system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2084152A JPH0447367A (en) 1990-03-30 1990-03-30 Data base retrieval system

Publications (1)

Publication Number Publication Date
JPH0447367A true JPH0447367A (en) 1992-02-17

Family

ID=13822534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2084152A Pending JPH0447367A (en) 1990-03-30 1990-03-30 Data base retrieval system

Country Status (1)

Country Link
JP (1) JPH0447367A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06243170A (en) * 1993-02-16 1994-09-02 Fuji Xerox Co Ltd Retrieving device and retrieval result reutilizing method
JPH0934769A (en) * 1995-07-20 1997-02-07 Fuji Xerox Co Ltd File managing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06243170A (en) * 1993-02-16 1994-09-02 Fuji Xerox Co Ltd Retrieving device and retrieval result reutilizing method
JPH0934769A (en) * 1995-07-20 1997-02-07 Fuji Xerox Co Ltd File managing device

Similar Documents

Publication Publication Date Title
JPH0447367A (en) Data base retrieval system
JP2925042B2 (en) Information link generation method
JPH0844609A (en) Data backup method
JPH117445A (en) Integrated document management device
JPH0934758A (en) Relational data base access control system
CA2322603C (en) Optimizing updatable scrollable cursors in database systems
JPS62131349A (en) Data base processing system
JP2616686B2 (en) Database reorganization during business process
JP2740238B2 (en) File exclusive control unit
JP2003296349A (en) Data retrieval device and update method by server
JPH0635774A (en) Data base management system
JPH1173353A (en) Transaction retrieval processor based on specified time
JPH03251937A (en) Data base retrieving system
JP3008500B2 (en) Update record reading mechanism
JPH04137035A (en) Software design structure storage device
JP2643850B2 (en) File processing device
JPH03225558A (en) Data retrieving system
JPH10240744A (en) System for processing retrieval of range division chart and method therefor and recording medium for recording retrieval processing program
JPH0324646A (en) Information processor
JPH03276368A (en) Document storing/retrieving system
JPH0340070A (en) Data base retrieving device
JPH01154222A (en) Name control system for data base
JPH06314226A (en) Data update method
JPS63231527A (en) Time series retrieving system
JPH05165891A (en) Data registration/retrieval system of data base