JPS62162136A - Simultaneous-updating control system for file with indices in hierarchy structure - Google Patents

Simultaneous-updating control system for file with indices in hierarchy structure

Info

Publication number
JPS62162136A
JPS62162136A JP61003916A JP391686A JPS62162136A JP S62162136 A JPS62162136 A JP S62162136A JP 61003916 A JP61003916 A JP 61003916A JP 391686 A JP391686 A JP 391686A JP S62162136 A JPS62162136 A JP S62162136A
Authority
JP
Japan
Prior art keywords
index
page
simultaneous
file
updating
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
JP61003916A
Other languages
Japanese (ja)
Inventor
Shigeru Mabuchi
馬淵 繁
Ryoichi Minowa
箕輪 良一
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.)
NIPPON DENKI SOFTWARE KK
Original Assignee
NIPPON DENKI SOFTWARE KK
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 DENKI SOFTWARE KK filed Critical NIPPON DENKI SOFTWARE KK
Priority to JP61003916A priority Critical patent/JPS62162136A/en
Publication of JPS62162136A publication Critical patent/JPS62162136A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To improve the efficiency of simultaneous updating processing by fixing the position of the page in the highest-order index, locking only such pages that are referred to including the said page in the highest order, and releasing the lock of the preceeding page in case of advancing to the updating processing of the following page. CONSTITUTION:An electronic computer main body 1 is in such constitution as provided with an index generating-updating means 2, an index retrieving means 3, and a simultaneous-updating control means 4. In case of inserting a new data to index parts 61-63, the means 2 inserts the new data in a position corresponding to a field value stored and stored there. When the page of the index parts 61-63 is divided by the insertion of the new data, the address of a newly-generated page is registered in a higher-order page. And further, if the highest-order page is divided, the hierarchy structure is made higher in its height, and a new highest-order page is generated.

Description

【発明の詳細な説明】 (産業上の利用分野〕 本発明は階層構造ン有し、阪数個の索引部もったファイ
ル乞管理する電子計n機システムに関し、特にデータベ
ース等のファイルに対する更新時における同時更新制御
手段に関する。
[Detailed Description of the Invention] (Industrial Application Field) The present invention relates to an electronic accounting system that has a hierarchical structure and several index sections and manages files, particularly when updating files such as databases. This invention relates to simultaneous update control means.

(従来の技術〕 従来、階層、構造を有し、索引をもったデータベース等
のファイルを更新する際には、階層構造の最上位に位置
する索引のページが更新にエフオーバフローし、階層が
1段と深くなって新しい最上位のページが生成されるこ
とがある。
(Prior art) Conventionally, when updating a file such as a database that has a hierarchy and structure and an index, the index page located at the top of the hierarchy structure overflows during the update, and the hierarchy becomes 1. A new top-level page may be generated as the page deepens.

この場会、新しい最上位ページは元の最上位のページの
位置とは異なる位置に生成されていた。
In this case, the new top page was generated in a different location from the original top page.

また、電子計算機システムでは、索引に対する更frを
行っている間に最上位のページの物理的な位置情報が取
込まれて参照されていた。従って、索引に対する更新を
行っている間には、同じ索引に対する次の更新は前の更
新が終了するまで待たされることになっていた。
Furthermore, in electronic computer systems, the physical position information of the topmost page is captured and referenced while updating the index. Therefore, while an index is being updated, the next update to the same index has to wait until the previous update is completed.

第6図は、索引内の最上位ページが分割されたとき、フ
ァイル内で領域内の割付はン示す説明図である。第6図
では、恒数の索引部において最上位ページの分割によっ
て生成されfc′IJTLい最上位ページは新しいペー
ジに作成されており、最上位ページの分割が発生するた
びに最上位ページの位置が変化していた。このため、同
時更新制御手段は複数のタスクから同−索引部への同時
更新を制御するためトランザクション単位に最上位ペー
ジタロツクする必要があり、複数の索引部に対する検索
、および更新処理の性能がよくなかった。
FIG. 6 is an explanatory diagram showing the allocation of areas within a file when the top page within the index is divided. In Figure 6, the top page generated by splitting the top page in the constant index section is created as a new page, and each time the top page is split, the top page was changing. Therefore, in order to control simultaneous updates from multiple tasks to the same index section, the simultaneous update control means needs to tarock the top page in transaction units, resulting in poor search and update performance for multiple index sections. Ta.

(発明が解決しようとする間萌点) 上述した従来のファイルに対する同時更新の方式では、
索引の最上位のページの位置が更新によって変化する可
能性があるため、索引に対する更沃が終了するまで同一
の索引に対する次の更新χ待合わせることになり、同時
更新の性能が低下するという欠点がある。
(The problem that the invention attempts to solve) In the conventional method of simultaneously updating files mentioned above,
Since the position of the topmost page in the index may change due to updates, the next update to the same index must be waited for until the index update is completed, which reduces the performance of simultaneous updates. There is.

本発明の目的は、索引の最上位ページの位置を固定し、
最上位のページン含めて参照しているページのみ乞ロッ
クし、次のページの更新処理に移る場合にμ前のページ
のロックχ解除することに工っで上記欠点ン除云し、性
能乞低下させずに同時更新の性能ン保持できるように構
成した階層構造をゴする索引ンもつファイルの同時更新
制御方式ン提供することにある。
The purpose of the present invention is to fix the position of the top page of the index,
By locking only the pages that are being referenced, including the topmost page, and unlocking the previous page when proceeding to update the next page, the above disadvantages are removed and the performance deteriorates. An object of the present invention is to provide a simultaneous update control method for a file having a hierarchical structure configured to maintain the performance of simultaneous updates without causing problems.

(問題点を解決するための手段〕 本発明による階層構造馨有する索引をもつファイルの同
時更新制御方式はデータベースと、索引作成更新手段と
、索引検索手段と、同時更新制御手段とl具備して構成
したものである。
(Means for Solving the Problems) The simultaneous update control method for files having indexes having a hierarchical structure according to the present invention comprises a database, an index creation/update means, an index search means, and a simultaneous update control means. It is composed of

データベースは、複数の索引部ならびにデータファイル
χ備えたものである。
The database includes a plurality of index sections and data files χ.

索引作成更新手段は、索引部の索引の作成ならびに更新
部付うためのものである。
The index creation/update means is used to create and update an index in the index section.

索引検索手段は、索引に対する検索7行うためのもので
ある。
The index search means is for performing a search 7 on the index.

同時更新制御手段は、更新ン制御するためのものである
The simultaneous update control means is for controlling updates.

(実施例) 次に、本発明について図面ン参照して説明する0 第1図は、本発明による階層構造7有する索引ンもつフ
ァイルの同時更新制御方式ン実現するための一実施例を
示すブロック図である。第1図において、本実施例は電
子計算機本体1と外部記憶媒体5とl具備して構成され
る。電子計算機本体1は索引作成更新手段2と、索引検
索手段3と、同時更新制御手段4とl具備して構成され
る。外部記憶媒体5には複数個の索引部61,62.6
3から成る索引ファイル6と、データファイル7とを備
えたデータベース8が存在する。次に、検索条件で指定
されるフィールドについて、データファイル7の内部の
レコードデータは次のようになっている。すなわち、索
引作成更新手段2に該当フィールド値と、上記フィール
ド値に対応するレコードデータとのfirsi理アドレ
ス乞もった階ノ通構造を索引するため累引ン作成し、索
引部61〜63に格納する。
(Embodiment) Next, the present invention will be explained with reference to the drawings. Fig. 1 is a block diagram showing an embodiment for realizing a simultaneous update control method for files having an index having a hierarchical structure 7 according to the present invention. It is a diagram. In FIG. 1, this embodiment includes a computer main body 1 and an external storage medium 5. The computer main body 1 is comprised of index creation/update means 2, index search means 3, and simultaneous update control means 4. The external storage medium 5 includes a plurality of index sections 61, 62.6.
There is a database 8 comprising an index file 6 consisting of 3 files and a data file 7. Next, regarding the field specified by the search condition, the record data inside the data file 7 is as follows. That is, the index creating/updating means 2 creates a cumulative index of the corresponding field value and the record data corresponding to the field value in order to index the first floor structure of the first address, and stores it in the index sections 61 to 63. do.

第2図は索引作成更新手段2によって作成され、階層構
造7有する索引の構造χ示す説明図である。索引率61
〜63の内とIBのフィールド1直は、該当フィールド
値でソートされて格納される。索引検索手段3は索引部
61〜63の内部に存在する索引?最上位ページから下
位ページへ順にたどり、検索条件に該当するレコードデ
ータの論理アドレス7求め、対応するレコードデータ乞
データファイル7から取出す。
FIG. 2 is an explanatory diagram showing the structure χ of an index created by the index creation/updating means 2 and having a hierarchical structure 7. Index rate 61
.about.63 and field 1 of IB are sorted and stored according to the corresponding field values. The index search means 3 uses indexes existing inside the index sections 61 to 63. The logical address 7 of the record data corresponding to the search condition is obtained by sequentially tracing from the top page to the lower page, and the corresponding record data is retrieved from the data file 7.

次に、索引作成更新手段2は索引部61〜63に対する
新しいデータの挿入に際して、ソートされて格納されて
いるフィールド値の該当する位置に新しいデータ値l挿
入する。新しいデータ値の挿入によって索引部61〜6
3のページが分割されると、第3図に示すように新しく
生成されたページのアドレスを上位のページに登録する
。さらに、最上位ページが分割されると階層構造が一段
と深くなり、Wt Lい最上位ページが生成される。
Next, when inserting new data into the index units 61 to 63, the index creation/updating means 2 inserts a new data value l into the corresponding position of the sorted and stored field values. By inserting new data values, index sections 61-6
When page 3 is divided, the address of the newly generated page is registered in the upper page as shown in FIG. Furthermore, when the top page is divided, the hierarchical structure becomes deeper, and a smaller top page is generated.

第4図は、索引内の最上位ページが分割されたときのフ
ァイル内の領域内の割付けを示す説明図である。本実施
例による方式では、第4図に示すように索引部61−6
3の内部の岐上位ページが分割されても、最上位ページ
は常に同じ位置に存在するようにされている。
FIG. 4 is an explanatory diagram showing the allocation within the area within the file when the top page within the index is divided. In the method according to this embodiment, as shown in FIG.
Even if the uppermost branch page within No. 3 is divided, the uppermost page always remains at the same position.

従って、最上位ページのロツクントランザクシヨン単位
ではなく、トランザクション処理内の短い単位で実行す
ることができる。
Therefore, it is possible to execute in short units within transaction processing, rather than in units of locked transactions of the top page.

第5図は、データベース乞アクセスするトランザクショ
ンに要する処理時間ン、従来方式のものと比較して示す
説明図である。
FIG. 5 is an explanatory diagram showing the processing time required for a transaction for accessing a database in comparison with that of the conventional method.

第4図においては、単位トランザクションに要する処理
時間が単位時間当りのトランザクション数に比例して増
η口する割付は、従来方式と比べてかなり低くなる。
In FIG. 4, the allocation in which the processing time required for a unit transaction increases in proportion to the number of transactions per unit time is considerably lower than in the conventional method.

(発明の効果〕 以上説明し念ように本発明は、索引の最上位のページの
位&ケ固定し、最上位のページヶ含めて参照しているペ
ージのみンロックし、次のページの更新処理に移る場合
には前のページのロック乞解除することにより、同時更
新処理の効率ン上げることができると云う効果がある。
(Effects of the Invention) As explained above, the present invention fixes the position of the topmost page in the index, locks only the pages that are being referred to, including the topmost page, and updates the next page. When moving, the previous page is unlocked, which has the effect of increasing the efficiency of simultaneous update processing.

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

第1図は、本発明による階層構造ン有する索引をもつフ
ァイルの同時更新制御方式ン実現するための一実施例〉
示すブロック図である。 第2図は、本実施例における階層構造乞もつ索引の構造
を示す説明図である。 第3図は、索引内の最上位ページが分割されたときの構
造ン示す説明図である。 第4図は、本発明による索引内の最上位ページが分割さ
れたときのファイル内の領域の割付は乞示す説明図であ
る。 第5図は、単位トランザクションに要する処理時間を本
実施例の方式と従来方式とについて示した比較した説明
図である。 第6図は、従来技術により索引内の最上位ページが分割
されたときのファイル内の領域の割付はを示す説明図で
ある。 l・・・電子計算機本体 2・・・索引作成更新手段  3・・・索引検索手段4
・・・同時更新制御手段  5・・・外部記憶媒体6・
・・索引ファイル  61.62.63・・・索引部7
・・・データファイル 8・・・データベース □
FIG. 1 shows an embodiment for realizing a simultaneous update control method for files having indexes having a hierarchical structure according to the present invention.
FIG. FIG. 2 is an explanatory diagram showing the structure of an index having a hierarchical structure in this embodiment. FIG. 3 is an explanatory diagram showing the structure when the topmost page in the index is divided. FIG. 4 is an explanatory diagram illustrating the allocation of areas within a file when the top page within an index is divided according to the present invention. FIG. 5 is an explanatory diagram comparing the processing time required for a unit transaction between the method of this embodiment and the conventional method. FIG. 6 is an explanatory diagram showing the allocation of areas within a file when the top page within an index is divided according to the prior art. l... Computer main body 2... Index creation/update means 3... Index search means 4
...Simultaneous update control means 5...External storage medium 6.
... Index file 61.62.63 ... Index section 7
...Data file 8...Database□

Claims (1)

【特許請求の範囲】[Claims] 複数の索引部ならびにデータファイルを備えたデータベ
ースと、前記索引部の索引の作成ならびに更新を行うた
めの索引作成更新手段と、前記索引に対する検索を行う
ための索引検索手段と、前記更新を制御するための同時
更新制御手段とを具備して構成したことを特徴とした階
層構造を有する索引をもつファイルの同時更新制御方式
a database including a plurality of index units and data files; an index creation/update unit for creating and updating an index in the index unit; an index search unit for searching the index; and a control unit for controlling the update. 1. A simultaneous update control method for a file having an index having a hierarchical structure, characterized in that the method is configured to include a simultaneous update control means for controlling a file having an index having a hierarchical structure.
JP61003916A 1986-01-10 1986-01-10 Simultaneous-updating control system for file with indices in hierarchy structure Pending JPS62162136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61003916A JPS62162136A (en) 1986-01-10 1986-01-10 Simultaneous-updating control system for file with indices in hierarchy structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61003916A JPS62162136A (en) 1986-01-10 1986-01-10 Simultaneous-updating control system for file with indices in hierarchy structure

Publications (1)

Publication Number Publication Date
JPS62162136A true JPS62162136A (en) 1987-07-18

Family

ID=11570491

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61003916A Pending JPS62162136A (en) 1986-01-10 1986-01-10 Simultaneous-updating control system for file with indices in hierarchy structure

Country Status (1)

Country Link
JP (1) JPS62162136A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01256842A (en) * 1988-04-07 1989-10-13 Mitsubishi Electric Corp Access right control system in electronic mail or the like
JPH0267647A (en) * 1988-09-01 1990-03-07 Nec Software Ltd Exclusive control system for plural records
JPH02129739A (en) * 1988-11-09 1990-05-17 Nec Corp Shared file exclusive control system
JPH02206839A (en) * 1989-02-06 1990-08-16 Hitachi Ltd Object control method
JP2007323153A (en) * 2006-05-30 2007-12-13 Nec Corp Index file retrieving device, retrieving method, retrieval program and recording medium with its program recorded

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01256842A (en) * 1988-04-07 1989-10-13 Mitsubishi Electric Corp Access right control system in electronic mail or the like
JP2511104B2 (en) * 1988-04-07 1996-06-26 三菱電機株式会社 Access right control method for electronic mail
JPH0267647A (en) * 1988-09-01 1990-03-07 Nec Software Ltd Exclusive control system for plural records
JPH02129739A (en) * 1988-11-09 1990-05-17 Nec Corp Shared file exclusive control system
JPH02206839A (en) * 1989-02-06 1990-08-16 Hitachi Ltd Object control method
JP2007323153A (en) * 2006-05-30 2007-12-13 Nec Corp Index file retrieving device, retrieving method, retrieval program and recording medium with its program recorded

Similar Documents

Publication Publication Date Title
CN1026631C (en) Method of concurrency access for useing indexed tree to data base record
US5553303A (en) Data processing system for dynamically switching access control process and for performing recovery process
JP3441807B2 (en) B-tree index management method and system
US5218696A (en) Method for dynamically expanding and rapidly accessing file directories
EP0336035B1 (en) Tree structure database system
EP0303231B1 (en) Method and device for enabling concurrent access of indexed sequential data files
EP1040433B1 (en) A fine-grained consistency mechanism for optimistic concurrency control using lock groups
US6185577B1 (en) Method and apparatus for incremental undo
Paxton A client-based transaction system to maintain data integrity
US20050198030A1 (en) Efficient support of consistent cyclic search with read-copy-update
CN106575297A (en) High throughput data modifications using blind update operations
JPH06511582A (en) Computer method and system for allocating and freeing memory
JPH0628315A (en) Method and system for dynamic finite version control for transaction and inquiry parallel processing
JPH04337850A (en) Data base transaction and collation processing system
Sockut et al. A method for on-line reorganization of a database
JPH01261745A (en) Recovery of transaction of data base record
EP0410210A2 (en) Method for dynamically expanding and rapidly accessing file directories
JPS62162136A (en) Simultaneous-updating control system for file with indices in hierarchy structure
Kumar Concurrent operations on extendible hashing and its performance
Ng et al. The R-Link tree: A recoverable index structure for spatial data
Lien et al. Consistency, concurrency, and crash recovery
JP2503289B2 (en) Database management processing method
Alderson A space-efficient technique for recording versions of data
Kumar A concurrency control mechanism based on extendible hashing for main memory database systems
Nurmi et al. Relaxed AVL trees, main-memory databases and concurrency