JPH0254370A - Index loading system - Google Patents

Index loading system

Info

Publication number
JPH0254370A
JPH0254370A JP63205789A JP20578988A JPH0254370A JP H0254370 A JPH0254370 A JP H0254370A JP 63205789 A JP63205789 A JP 63205789A JP 20578988 A JP20578988 A JP 20578988A JP H0254370 A JPH0254370 A JP H0254370A
Authority
JP
Japan
Prior art keywords
index
main memory
resident
memory device
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
JP63205789A
Other languages
Japanese (ja)
Inventor
Keiichi Sugawara
菅原 啓一
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 JP63205789A priority Critical patent/JPH0254370A/en
Publication of JPH0254370A publication Critical patent/JPH0254370A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To shorten data retrieving time without pressing a main memory device by loading partly a non-resident index into the main memory device. CONSTITUTION:An initialization means 1 starts when the data base service is started. Thus an index loading means 5 starts to read a higher rank index out of an auxiliary memory 6 as a resident index to store the index in a main memory device 10. Then a lower rank index is retrieved after reception of a retrieving request of a data base. Then the means 5 starts to reads a necessary index out of the memory 6 and then stores a lower rank index and the lowest rank index into a non-resident index control means 4. In this case, the lower rank index stored in the device 10 and used to the preceding process is returned. Thus only the higher rank indexes used frequently and limited lower rank indexes are stored in the device 10. As a result, the data retrieving time is shortened.

Description

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

特にデータの検索に際してインデックスのロードを高速
に行う方式に関する。
In particular, it relates to a method for quickly loading indexes when searching for data.

〔概要〕〔overview〕

本発明はサービス開始時に上位のインデックスを主メモ
リ装置にロードし、検索要求ごとに下位のインデックス
を補助記憶装置から主メモリ装置にロードするインデッ
クスロード方式において、従来のインデックスのロード
方式に加えて、非常駐インデックスの一部を初期条件設
定時に主メモリ装置に常駐インデックスとしてロードし
ておくことにより、 主メモリ装置を圧迫することなく、データの検索時間を
短縮するようにしたものである。
In addition to the conventional index loading method, the present invention uses an index loading method in which the upper index is loaded into the main memory device at the start of a service, and the lower index is loaded from the auxiliary storage device to the main memory device for each search request. By loading a part of the non-resident index into the main memory device as a resident index when setting initial conditions, data search time is shortened without putting pressure on the main memory device.

〔従来の技術〕[Conventional technology]

データベースにおいては、データのインデックスが階層
構造を成し、かつ、データベースに登録されるデータが
多いほど階層のレベルが深くなっている。
In a database, data indexes form a hierarchical structure, and the more data that is registered in the database, the deeper the hierarchical level becomes.

従来、この種のインデックスのロード方式においては階
層構造を成しているインデックスのうち、上位のインデ
ックスはサービス開始時に補助記憶装置から主メモリ装
置にロードし、下位のインデックスは検索要求ごとに補
助記憶装置から主メモリ装置にロードしている。
Conventionally, in this type of index loading method, among the hierarchically structured indexes, the upper index is loaded from the auxiliary storage to the main memory at the start of the service, and the lower index is loaded from the auxiliary storage for each search request. loading from the device into the main memory device.

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

上述した従来のインデックスのロード方式は、データを
検索する都度、下位のインデックスを補助記憶装置から
主メモリ装置にロードするため、例えば同じデータの検
索要求が連続しているような場合、同一のインデックス
をロードしようとして補助記憶装置への無駄なアクセス
を行ってしまい、結果としてデータの検索が遅くなる。
The conventional index loading method described above loads the lower index from the auxiliary storage to the main memory each time data is searched. This results in unnecessary access to auxiliary storage when attempting to load the data, resulting in slower data retrieval.

また、データベースが大きいほどインデックスも増加す
るため、すべてのインデックスを主メモリ装置にロード
しようとすると主メモリ装置を圧迫してしまう問題があ
る。
Furthermore, since the larger the database, the larger the number of indexes, there is a problem in that loading all the indexes into the main memory device will overwhelm the main memory device.

本発明はこのような問題を解決するもので、主メモリ装
置を圧迫することなくデータの検索時間を短縮すること
ができる方式を提供することを目的とする。
The present invention is intended to solve these problems, and it is an object of the present invention to provide a method that can shorten data retrieval time without burdening the main memory device.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、補助記憶装置および主メモリ装置を備え、階
層構造のインデックスの上位インデックスを上記補助記
憶装置から上記主メモリ装置にロードし、下位のインデ
ックスを検索要求ごとに上記補助記憶装置から上記主メ
モリ装置にロードする手段を含むインデックスのロード
方式において、データベース・サービス開始時に初期条
件を設定する初期設定手段と、この初期設定手段の制御
により上位インデックスを上記主メモリ装置に記憶させ
る常駐インデックス制御手段と、利用者からデータの検
索要求を受、け付けたときに検索条件にしたがって上記
常駐インデックスを検索するインデックス検索手段と、
このインデックス検索手段の制御により必要となった下
位インデックスを上記主メモリ装置に追加して記憶きせ
る非常駐インデックス制御手段とを備えたことを特徴と
する。
The present invention includes an auxiliary storage device and a main memory device, loads an upper index of a hierarchically structured index from the auxiliary storage device to the main memory device, and loads a lower index from the auxiliary storage device to the main memory device for each search request. In an index loading method including means for loading into a memory device, an initial setting means sets initial conditions at the time of starting a database service, and a resident index control means stores an upper index in the main memory device under control of the initial setting means. and an index search means for searching the resident index according to search conditions when a data search request is received from a user.
The present invention is characterized by comprising non-resident index control means for adding and storing a lower index required by the control of the index search means in the main memory device.

〔作用〕[Effect]

データベース・サービス開始により初期設定手段が起動
し、インデックス・ロード手段を起動して上位インデッ
クスを常駐インデックスとして補助記憶装置から読みだ
し、主メモリ装置に記憶させる。非常駐インデックスは
このとき未ロード状態にする。
When the database service is started, the initial setting means is activated, and the index loading means is activated to read the upper index as a resident index from the auxiliary storage device and store it in the main memory device. At this time, the non-resident index is placed in an unloaded state.

データベースの検索要求を受け付けると、インデックス
検索手段が起動して、常駐インデックスに必要なインデ
ックスがないことがわかると、下位インデックスを検索
し、インデックス・ロード手段を起動してその必要とす
るインデックスを補助記憶手段より読みだし、更に下位
のインデックスを検索し再度インデックス・ロード手段
を起動して検索した下位および最下位のインデックスを
非常駐インデックス制御手段に記憶させる。このとき、
主メモリに記憶されていたその前のプロセスで利用した
下位のインデックスを返却する。
When a database search request is received, the index search means is started, and if it is found that there is no required index in the resident index, it searches the lower indexes and starts the index loading means to assist the necessary index. The index is read from the storage means, further lower indexes are searched, and the index loading means is activated again to cause the retrieved lower and lowest indexes to be stored in the non-resident index control means. At this time,
Returns the lower index used by the previous process stored in main memory.

新たに検索要求を受け付けたときにも同様の動作を繰り
返す。これによりひんばんに利用される上位インデック
スと必要となった限られた下位インデックスのみが主メ
モリに記憶されるから、主メモリ装置を圧迫することな
くデータの検索時間を短縮することができる。
The same operation is repeated when a new search request is received. As a result, only the frequently used upper index and a limited number of lower indexes that are needed are stored in the main memory, so that data retrieval time can be shortened without burdening the main memory device.

〔実施例〕〔Example〕

次に本発明実施例について図面を参照して説明する。第
1図は本発明実施例の構成を示すブロック図である。
Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

本発明実施例は、データベース・サービス開始時に上位
インデックスをロードする初期設定手段1と、この初期
設定手段1によりロードされた上位インデックスを主メ
モリ装置10に記憶する常駐インデックス制御手段2と
、利用者からデータの検索要求を受け付けたときに、検
索条件に従って、常駐インデックス制御手段2に記憶し
ている上位インデックスから下位のインデックスを検索
するインデックス検索手段3と、インデックス検索手段
3によりロードされた下位インデックスを主メモリ装置
10に記憶する非常駐インデックス制御手段4と、初期
設定手段1およびインデックス検索手段3の指示に従っ
て補助記憶装置6からインデックスをロードするインデ
ックス・ロード手段5とを備える。
The embodiment of the present invention includes an initial setting means 1 for loading the upper index at the time of starting a database service, a resident index control means 2 for storing the upper index loaded by the initial setting means 1 in the main memory device 10, and a user an index search means 3 that searches for a lower index from the upper index stored in the resident index control means 2 according to search conditions when a data search request is received from the index search means 3; and a lower index loaded by the index search means 3; The non-resident index control means 4 stores the index in the main memory device 10, and the index loading means 5 loads the index from the auxiliary storage device 6 according to instructions from the initial setting means 1 and the index search means 3.

インデックス検索手段3は、非常駐インデックス制御手
段4が未ロード状態であるか、下位インデックスが非常
駐インデックス制御手段4に記憶しているインデックス
と異なる下位インデックスであればインデックス・ロー
ド手段5を使用して該当する下位インデックスをロード
し非常駐インデックス制御手段4に記憶し、該当インデ
ックスの最下位インデックスを返却し、下位インデック
スが非常駐インデックス制御手段4に記憶しているイン
デックスと同じ下位インデックスであれば、非常駐イン
デックス制御子役4に記憶している下位インデックスの
最下位インデックスを返却する手段を含む。
If the non-resident index control means 4 is in an unloaded state or the lower index is different from the index stored in the non-resident index control means 4, the index search means 3 uses the index loading means 5 to search for the corresponding index. The lower index to be stored is loaded and stored in the non-resident index control means 4, the lowest index of the corresponding index is returned, and if the lower index is the same as the index stored in the non-resident index control means 4, the non-resident index control is performed. It includes means for returning the lowest index of the lower indexes stored in the child actor 4.

次にこのよう1こ構成された本発明実施例の動作を具体
例に基づいて説明する。第2図は本発明実施例における
インデックスの階層構造を示す図である。本実施例では
、インデックスは最大4段の階層をもち、上位2段が常
駐インデックスであるものとする。
Next, the operation of the embodiment of the present invention having one structure as described above will be explained based on a specific example. FIG. 2 is a diagram showing the hierarchical structure of indexes in the embodiment of the present invention. In this embodiment, it is assumed that the index has a maximum of four levels of hierarchy, and the upper two levels are resident indexes.

まず、データベース・サービスが開始されると初期設定
手段1が起動される。初期設定手段1は、インデックス
・ロード手段5を起動して上位インデックス11.12
.13を補助記憶装置6から読みだし、常駐インデック
ス制御手段2を起動して主メモリ装置10に記憶する。
First, when the database service is started, the initial setting means 1 is activated. The initial setting means 1 starts the index loading means 5 and loads the upper index 11.12.
.. 13 from the auxiliary storage device 6, activates the resident index control means 2, and stores it in the main memory device 10.

また、非常駐インデックス制御手段4を未ロード状態に
する。
Also, the non-resident index control means 4 is brought into an unloaded state.

次にデータベースの検索要求(仮に、データd1の検索
要求とする。)を受け付けると、インデックス検索手段
3が起動されて常駐インデックス制御手段2に記憶され
ているインデックス11.12をたどり、下位インデッ
クスが14であることを知る。ここで、非常駐インデッ
クス制御手段4が未ロードであるため、インデックス検
索手段3は、インデックス・ロード手段5を起動してイ
ンデックス14を補助記憶装置6より読みだし、更に下
位のインデックス17が存在することを知り、再度イン
デックス・ロード手段5を起動してインデックス17を
補助記憶装置6より読みだす。この時点でインデックス
検索手段3は、インデックス17が最下位インデックス
であることを知り、非常駐インデックス制御手段4にイ
ンデックス14.17を記憶するように指示し、検索要
求元にインデックス17を返却する。この後、非常駐イ
ンデックス制御手段4は、インデックスi4.17を記
憶する。
Next, when a database search request (assumed to be a search request for data d1) is received, the index search means 3 is activated and traces the indexes 11 and 12 stored in the resident index control means 2 to find the lower index. I know that he is 14. Here, since the non-resident index control means 4 has not been loaded, the index search means 3 activates the index loading means 5 to read the index 14 from the auxiliary storage device 6, and confirms that a lower index 17 exists. Knowing this, the index loading means 5 is activated again to read the index 17 from the auxiliary storage device 6. At this point, index search means 3 knows that index 17 is the lowest index, instructs non-resident index control means 4 to store index 14.17, and returns index 17 to the search request source. After this, the non-resident index control means 4 stores the index i4.17.

次に新たな検索要求(データd3の検索要求とする。)
を受け付けると、インデックス検索手段3が起動され、
インデックス検索手段3は、先の処理と同様にインデッ
クス11.12をたどり、下位インデックスはi4であ
ると知る。ここで、非常駐インデックス制御手段4に記
憶されているインデックスが14.17であることから
、インデックス検索手段3は、補助記憶装置6にアクセ
スすることなくインデックス14、j7をたどり、最下
位インデックスが17であることを知り、インデックス
17を検索要求元に返却する。
Next, make a new search request (this is a search request for data d3).
When the index search means 3 is accepted, the index search means 3 is activated.
The index search means 3 traces indexes 11 and 12 in the same way as in the previous process, and learns that the lower index is i4. Here, since the index stored in the non-resident index control means 4 is 14.17, the index search means 3 traces the index 14, j7 without accessing the auxiliary storage device 6, and finds that the lowest index is 17. Knowing this, the index 17 is returned to the search request source.

次に新たな検索要求(データd4の検索要求とする。)
を受け付けると、インデックス検索手段3は、2回目の
検索要求と同様にしてインデックス14までたどる。こ
の時点で下位のインデックスが18であると知り、イン
デックス検索手段3はインデックス・ロード手段5を起
動してインデックス18を読み込み、インデックス18
が最下位インデックスであると判断して、非常駐インデ
ックス制御手段4にインデックスi4、i8を記憶する
ように指示し、検索要求元にインデックス18を返却す
る。この後、非常駐インデックス制御手段4は、インデ
ックスi4.18を記憶する。
Next, make a new search request (a search request for data d4).
Upon receiving the request, the index search means 3 traces the search to the index 14 in the same manner as the second search request. At this point, knowing that the lower index is 18, the index retrieval means 3 activates the index loading means 5 to read the index 18.
is the lowest index, instructs the non-resident index control means 4 to store indexes i4 and i8, and returns index 18 to the search request source. After this, the non-resident index control means 4 stores the index i4.18.

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

以上説明したように本発明によれば、従来のインデック
スのロード方式に加えて、非常駐インデックスの一部を
主メモリ装置にロードすることにより、主メモリ装置を
圧迫することなく、データの検査時間を短縮することが
できる効果がある。
As explained above, according to the present invention, in addition to the conventional index loading method, by loading a part of the non-resident index into the main memory device, data inspection time can be reduced without putting pressure on the main memory device. It has the effect of being able to shorten the time.

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

第1図は本発明実施例の全体の構成を示すブロック図。 第2図は本発明実施例のインデックスの階層構造を示す
図。 1・・・初期設定手段、2・・・常駐インデックス制御
手段、3・・・インデックス検索手段、4・・・非常駐
インデックス制御手段、5・・・インデックス・ロード
手段、6・・・補助記憶装置、10・・・主メモリ装置
、i〜19・・・インデックス、d1〜d7・・・デー
タ。
FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention. FIG. 2 is a diagram showing the hierarchical structure of the index according to the embodiment of the present invention. DESCRIPTION OF SYMBOLS 1... Initial setting means, 2... Resident index control means, 3... Index search means, 4... Non-resident index control means, 5... Index loading means, 6... Auxiliary storage device , 10... Main memory device, i-19... Index, d1-d7... Data.

Claims (1)

【特許請求の範囲】 1、補助記憶装置および主メモリ装置を備え、階層構造
のインデックスの上位インデックスを上記補助記憶装置
から上記主メモリ装置にロードし、下位のインデックス
を検索要求ごとに上記補助記憶装置から上記主メモリ装
置にロードする手段を含むインデックスのロード方式に
おいて、データベース・サービス開始時に初期条件を設
定する初期設定手段と、 この初期設定手段の制御により上位インデックスを上記
主メモリ装置に記憶させる常駐インデックス制御手段と
、 利用者からデータの検索要求を受け付けたときに検索条
件にしたがって上記常駐インデックスを検索するインデ
ックス検索手段と、 このインデックス検索手段の制御により必要となった下
位インデックスを上記主メモリ装置に追加して記憶させ
る非常駐インデックス制御手段とを備えたことを特徴と
するインデックスのロード方式。
[Scope of Claims] 1. An auxiliary storage device and a main memory device are provided, and an upper index of a hierarchically structured index is loaded from the auxiliary storage device to the main memory device, and a lower index is loaded into the auxiliary storage device for each search request. In an index loading method including means for loading an index from a device to the main memory device, an initial setting means sets initial conditions at the time of starting a database service, and an upper index is stored in the main memory device under the control of the initial setting means. a resident index control means; an index search means for searching the resident index according to search conditions when a data search request is received from a user; and a lower index required by the control of the index search means is stored in the main memory. An index loading method characterized by comprising a non-resident index control means that is added to and stored in a device.
JP63205789A 1988-08-19 1988-08-19 Index loading system Pending JPH0254370A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63205789A JPH0254370A (en) 1988-08-19 1988-08-19 Index loading system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63205789A JPH0254370A (en) 1988-08-19 1988-08-19 Index loading system

Publications (1)

Publication Number Publication Date
JPH0254370A true JPH0254370A (en) 1990-02-23

Family

ID=16512702

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63205789A Pending JPH0254370A (en) 1988-08-19 1988-08-19 Index loading system

Country Status (1)

Country Link
JP (1) JPH0254370A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11203324A (en) * 1998-01-13 1999-07-30 Tokyo Electron Ltd Method for processing data and method for retrieving data
US5963937A (en) * 1995-08-30 1999-10-05 Fuji Xerox Co., Ltd. Format conversion of storage data using an efficient division of data
JP2005209193A (en) * 2004-01-20 2005-08-04 Microsoft Corp Infrequent word index for document index
JP2008134688A (en) * 2006-11-27 2008-06-12 Hitachi Ltd Symbol column retrieval method, program and device and generation method for its try, program and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5963937A (en) * 1995-08-30 1999-10-05 Fuji Xerox Co., Ltd. Format conversion of storage data using an efficient division of data
JPH11203324A (en) * 1998-01-13 1999-07-30 Tokyo Electron Ltd Method for processing data and method for retrieving data
JP2005209193A (en) * 2004-01-20 2005-08-04 Microsoft Corp Infrequent word index for document index
JP2008134688A (en) * 2006-11-27 2008-06-12 Hitachi Ltd Symbol column retrieval method, program and device and generation method for its try, program and device

Similar Documents

Publication Publication Date Title
JPH0254370A (en) Index loading system
JPH02297670A (en) Data base retrieving system
JPS639587A (en) Ic card
JPS6244659B2 (en)
JPS633351A (en) Buffer retrieving control system
JPS63757A (en) Retrieval processing system for terminal control table
JP2745500B2 (en) String search device
JP2740238B2 (en) File exclusive control unit
JPS6019240A (en) Loading system
KR0165511B1 (en) Information test method using sequential link list
JPS63291116A (en) File access system
JP2586172B2 (en) Table search device with learning function
JPS6143734B2 (en)
JPH04171578A (en) Information processor
JPS63189934A (en) Sub-entry processing system for data base
JPS63104134A (en) Index retrieving system
JPH10240744A (en) System for processing retrieval of range division chart and method therefor and recording medium for recording retrieval processing program
JPS63250739A (en) Filing device
JPH08101843A (en) Information retrieval device
JPS6366635A (en) Index retrieving system
JPH01113804A (en) Data retrieval/register system for automatic controller
JPS6046734B2 (en) character display system
JPH03142641A (en) High speed medium retrieving system
JPH1027118A (en) Method and device for accessing file
JPS59165164A (en) Magnetic disk controller