JP2748986B2 - Buffer management method - Google Patents
Buffer management methodInfo
- Publication number
- JP2748986B2 JP2748986B2 JP3002234A JP223491A JP2748986B2 JP 2748986 B2 JP2748986 B2 JP 2748986B2 JP 3002234 A JP3002234 A JP 3002234A JP 223491 A JP223491 A JP 223491A JP 2748986 B2 JP2748986 B2 JP 2748986B2
- Authority
- JP
- Japan
- Prior art keywords
- buffer
- data
- database
- request
- page buffer
- 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.)
- Expired - Fee Related
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明はデータベースシステムに
係り、さらに詳しくはデータベースの問い合わせを効率
的に行うバッファ管理方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database system, and more particularly to a buffer management system for efficiently querying a database.
【0002】[0002]
【従来の技術】データベースはデータの貯蔵、取扱、検
索を完全にしかも経済的に行えるようにしたシステムで
あり、コンピュータの発展とともにその機能も高効率化
してきている。2. Description of the Related Art A database is a system capable of completely and economically storing, handling, and retrieving data, and its functions have become more efficient with the development of computers.
【0003】近年データベースの応用分野はビジネス分
野のデータ処理から設計等のエンジニアリング分野にま
で広がっている。このような高度応用では、データベー
スの同一型のデータの集まりから検索するだけでなく、
関連する異なるデータを効率的にアクセスできる要求が
出ている。しかしながら従来のデータベースのバッファ
管理方式は、基本的に同一的なデータをまとめて記憶
し、必要なときにそのまとめた情報をバッファに読み出
していた。[0003] In recent years, the application fields of databases have expanded from data processing in the business field to engineering fields such as design. Such advanced applications not only search from a collection of data of the same type in a database,
There is a demand for efficient access to different related data. However, in the conventional database buffer management method, basically the same data is collectively stored and the collected information is read out to the buffer when necessary.
【0004】[0004]
【発明が解決しようとする課題】前述したようなデータ
ベースにおけるバッファ管理は、集合的な検索には向い
ており、効率よく検索を行えるという特徴を有する。し
かしながら、型の異なるデータのアクセスには向いてお
らず、ユーザがそれぞれのプログラム領域にデータをコ
ピーして使用しなくてはならないという問題を有してい
た。また、これらのユーザは余計なプログラムを書かな
くてはならず、かつ同じデータのコピーがプログラム毎
に出来てしまい、スペースの面すなわちメモリ効率の面
でもまた速度の面でも効率が悪いという問題を有してい
た。The buffer management in the database as described above is suitable for collective search and has a feature that the search can be performed efficiently. However, it is not suitable for accessing data of different types, and has a problem that the user has to copy and use the data in each program area. In addition, these users have to write extra programs, and the same data can be copied for each program. Had.
【0005】本発明は同一型のデータ検索だけでなく異
なる型のデータも容易に効率よくアクセスするバッファ
管理方式を提供することを目的とする。SUMMARY OF THE INVENTION An object of the present invention is to provide a buffer management system for easily and efficiently accessing not only data of the same type but also data of a different type.
【0006】[0006]
【課題を解決するための手段】第1図は本発明の原理ブ
ロック図である。本発明は記憶手段1に記憶するデータ
ベースを、ページバッファを利用する第1のバッファ2
で同一型のデータ単位で管理してアクセスするデータベ
ースシステムにおけるものである。FIG. 1 is a block diagram showing the principle of the present invention. According to the present invention, a database stored in the storage means 1 is stored in a first buffer 2 using a page buffer.
In a database system that manages and accesses data units of the same type.
【0007】第2のバッファ3は前記第1のバッファ2
で管理する単位以外で関連するデータを管理する。制御
部4はデータベースの問い合わせ要求が加わり、該要求
に対応して前記第1のバッファ2、あるいは第2のバッ
ファ3を選択して評価し、該評価の結果を出力する。[0007] The second buffer 3 is the first buffer 2
Manage related data in units other than those managed in. The controller 4 receives a database inquiry request, selects and evaluates the first buffer 2 or the second buffer 3 in response to the request, and outputs a result of the evaluation.
【0008】[0008]
【作用】データベースの問い合わせ要求が加わると、制
御部4は入力する要求に対応し第1のバッファ2あるい
は第2のバッファ3を選択して評価する。第1のバッフ
ァ2には同一型のデータ単位で管理するデータが記憶さ
れており、要求したデータが同一型のデータでないとき
には第2のバッファ3に管理単位以外で関連するデータ
を記憶する。またこの管理した第2のデータは例えば第
1のバッファ2に格納してもよい。またさらには第1の
バッファ2と第2のバッファ3とを別々に選択して評価
し該評価の結果を格納してもよい。When a database inquiry request is added, the control unit 4 selects and evaluates the first buffer 2 or the second buffer 3 in response to the input request. The first buffer 2 stores data managed in the same type of data unit. When the requested data is not the same type of data, related data other than the management unit is stored in the second buffer 3. The managed second data may be stored in the first buffer 2, for example. Further, the first buffer 2 and the second buffer 3 may be separately selected and evaluated, and the result of the evaluation may be stored.
【0009】[0009]
【実施例】以下図面を用いて本発明を詳細に説明する。
第2図は本発明の実施例の構成図である。問い合わせ評
価部11にはユーザからのデータベース問い合わせ要求
が加わり、問い合わせ評価部11はその要求に対し、デ
ータベース14をページバッファ13内に呼び出しデー
タベース14内の一部の同一型のデータをまとめて管理
する。一方、その要求がまとめて管理するページバッフ
ァ13内に記憶するデータでないときには、オブジェク
トバッファ12内に関連するデータを格納し、関連する
異なる型のデータを求める。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the drawings.
FIG. 2 is a block diagram of an embodiment of the present invention. The query evaluation unit 11 receives a database query request from a user, and in response to the request, the query evaluation unit 11 calls the database 14 into the page buffer 13 and collectively manages a part of the same type of data in the database 14. . On the other hand, when the request is not data to be stored in the page buffer 13 managed collectively, related data is stored in the object buffer 12 and related data of a different type is obtained.
【0010】第3図は前記問い合わせ処理部11におけ
る要求に対する処理のフローチャートである。要求が加
わるとまずオブジェクトバッファ12内にその要求に対
応するデータベースのデータが存在するかを判断(S
1)し、存在しない時(N)には、ページバッファによ
る処理(S2)を行いデータベース14内の目的のデー
タをページバッファ13に格納する。そしてそのページ
バッファ13による処理(S2)によって得られたオブ
ジェクトバッファへのデータを作成する。処理(S2)
の後あるいはオブジェクトに存在するかの判別(S1)
においてオブジェクトに存在すると判別(Y)したとき
には、オブジェクトバッファによる処理(S3)を実行
し要求に対する処理を終了する。FIG. 3 is a flowchart of a process in response to a request in the inquiry processing unit 11. When a request is added, it is first determined whether or not database data corresponding to the request exists in the object buffer 12 (S
1) If it does not exist (N), the process by the page buffer (S2) is performed and the target data in the database 14 is stored in the page buffer 13. Then, data for the object buffer obtained by the processing (S2) by the page buffer 13 is created. Processing (S2)
(S1) to determine whether the object exists after or in the object
When it is determined that the object exists in the object (Y), the process (S3) using the object buffer is executed, and the process for the request ends.
【0011】前述したデータベースを具体的に説明する
と第4図に示すごとくエンジンに対しピストン、連接
棒、クランク、質量が関連づけられ、さらにピストンに
対する質量、連接棒に対する質量、クランクに対する質
量と、それぞれのデータを記憶している。この第4図に
示したデータがデータベース14に記憶されておりペー
ジバッファにおける処理が必要なときには、ページバッ
ファに第4図のデータを読み出し格納する。そして関連
する異なる型のデータのアクセスであるときには、第5
図(a) のごとく、「データのある限りエンジンの質量を
求める」とする問い合わせに対しては、データベースか
らページバッファへ、エンジン、ピストン、連接棒、ク
ランクのデータを移動する。そして次に関連するデータ
をオブジェクトバッファへ送る。尚、これは関連する異
なる型のデータのアクセスの場合である。The above-mentioned database will be described in detail. As shown in FIG. 4, a piston, a connecting rod, a crank, and a mass are associated with an engine. Data is stored. When the data shown in FIG. 4 is stored in the database 14 and processing in the page buffer is necessary, the data in FIG. 4 is read and stored in the page buffer. And when the access is related to different types of data, the fifth
As shown in Fig. (A), in response to a query to "find the mass of the engine as long as there is data", the data of the engine, piston, connecting rod, and crank are moved from the database to the page buffer. Then it sends the relevant data to the object buffer. Note that this is the case for accessing different types of related data.
【0012】一方、同一型のデータ検索の場合例えば第
5図(b) に示すごとくエンジン名称に対しエンジン質量
が15,000以下のものに対して検索を行う等の場
合、この検索はユーザに近いオブジェクトバッファ上で
行われる。この時ページバッファとオブジェクトバッフ
ァが異なる場合があり、第1の方式においてはオブジェ
クトバッファからエンジンのデータをページバッファへ
移動しその後ページバッファ上で問い合わせを評価する
ものである。また第2の方式はオブジェクトバッファと
ページバッファ上で同一の問い合わせを別々に評価し結
果をマージするものである。On the other hand, in the case of data search of the same type, for example, when a search is performed for an engine name with an engine mass of 15,000 or less as shown in FIG. It is done on a close object buffer. At this time, the page buffer and the object buffer may be different. In the first method, the data of the engine is moved from the object buffer to the page buffer, and then the query is evaluated on the page buffer. In the second method, the same query is separately evaluated on the object buffer and the page buffer, and the results are merged.
【0013】第6図(a) は前述したエンジンに対するピ
ストン、連接棒のデータベースの構成図表である。この
ようなデータべースが存在した場合、問い合わせ要求に
対しページバッファ内のデータ構成は第6図(b) のごと
く第6図(a) と同様となる。すなわちデータベース14
は例えばディスク上に記憶され、ページバッファ内のデ
ータはメモリ上に記憶される。そしてこれらをオブジェ
クトバッファ内のデータ構成で表す場合、エンジン1が
ピストン1、連接棒1、エンジン3はピストン3、連接
棒3と第6図(c) のごとくそれぞれポインタに変換され
る。前述したデータベースの問い合わせ要求に対する処
理をさらに第7図、第8図を用いて詳細に説明する。FIG. 6 (a) is a diagram showing the configuration of a database of pistons and connecting rods for the aforementioned engine. When such a database exists, the data structure in the page buffer in response to the inquiry request is the same as that in FIG. 6 (a) as shown in FIG. 6 (b). That is, the database 14
Is stored on a disk, for example, and the data in the page buffer is stored on a memory. When these are represented by the data structure in the object buffer, the engine 1 is converted into the piston 1, the connecting rod 1, and the engine 3 is converted into the piston 3, the connecting rod 3 and the pointer as shown in FIG. 6 (c). The processing for the database inquiry request will be further described in detail with reference to FIGS.
【0014】第7図は異種データに対するアクセスの場
合であり、要求が発生するとオブジェクトバッファに要
求したデータがあるかを判断(S11)し、無い時(な
い)にはページバッファに要求したデータがあるかを判
断(S12)する。ページバッファにもデータがないと
きにはデータベースからページバッファにデータをコピ
ー(S13)する。判別(S12)でページバッファに
データがあると判断(ある)した時、あるいは処理(S
13)によってデータベースからページバッファにデー
タをコピーした時にはページバッファからオブジェクト
バッファへデータをコピーし(S14)、オブジェクト
バッファのデータを結果として返す(S15)。また判
別(S11)でオブジェクトバッファにデータがあると
判断した時(ある)には同じくオブジェクトバッファの
データを返す(S15)。FIG. 7 shows a case of access to heterogeneous data. When a request occurs, it is determined whether or not the requested data exists in the object buffer (S11). It is determined whether there is (S12). If there is no data in the page buffer, the data is copied from the database to the page buffer (S13). When it is determined (in step S12) that there is data in the page buffer, or when processing (S12) is performed.
When the data is copied from the database to the page buffer according to 13), the data is copied from the page buffer to the object buffer (S14), and the data in the object buffer is returned as a result (S15). When it is determined (S11) that data exists in the object buffer (YES), the data in the object buffer is returned (S15).
【0015】一方、同一型データに対する問い合わせに
対しては第8図(a)と第8図(b) のごとく2つの問い合
わせ結果の出力がある。第1の方式においてはオブジェ
クトバッファ上に関連するデータがあるかないかを判断
(S21)し、ある時(ある)にはオブジェクトバッフ
ァからページバッファへデータをコピー(S22)し、
ページバッファ上で問い合わせ評価を行い(S23)、
問い合わせ結果を出力する。またオブジェクトバッファ
上に関連するデータがあるかの判断S21においてない
時(ない)にも同様に処理(S23)によってページバ
ッファ上で問い合わせ評価する。On the other hand, for an inquiry for the same type of data, there are two inquiry result outputs as shown in FIGS. 8 (a) and 8 (b). In the first method, it is determined whether or not there is related data on the object buffer (S21). At some time (a certain time), data is copied from the object buffer to the page buffer (S22).
The query is evaluated on the page buffer (S23),
Outputs the query result. When it is not determined (S21) whether there is related data in the object buffer (S21), the query (S23) is similarly evaluated on the page buffer.
【0016】また第2の方式においては、要求に対しオ
ブジェクトバッファ上に関連するデータがあるかを判別
(S31)し、ある時(ある)にはオブジェクトバッフ
ァとページバッファ上の両方で別々に問い合わせを評価
し結果を統合する(S32)。その結果を問い合わせの
結果として出力する。また判別(S31)においてオブ
ジェクトバッファ上に関連するデータがないと判別した
時(ない)にはページバッファ上で問い合わせ評価し
(S33)、問い合わせ結果として出力する。以上のよ
うに異種データに対するアクセス、また同一データに対
するアクセスに対しそれぞれ効率的に評価することがで
きる。In the second method, it is determined whether there is related data on the object buffer in response to the request (S31), and at a certain time (a certain time), an inquiry is separately made on both the object buffer and the page buffer. Are evaluated and the results are integrated (S32). The result is output as the result of the query. When it is determined in the determination (S31) that there is no relevant data on the object buffer (none), the query is evaluated on the page buffer (S33) and output as a query result. As described above, it is possible to efficiently evaluate accesses to different types of data and accesses to the same data.
【0017】[0017]
【発明の効果】以上説明したように本発明によれば異な
る型のデータのアクセスに対しては効率的に処理でき、
さらに従来の同一型のデータ検索も行え、データベース
の高度応用に伴うデータ処理を効率的に処理することが
できる。As described above, according to the present invention, it is possible to efficiently process accesses to data of different types,
Further, conventional data retrieval of the same type can be performed, and data processing accompanying advanced application of the database can be efficiently processed.
【図1】本発明の原理ブロック図である。FIG. 1 is a principle block diagram of the present invention.
【図2】本発明の実施例の構成図である。FIG. 2 is a configuration diagram of an embodiment of the present invention.
【図3】要求に対する処理フローチャートである。FIG. 3 is a processing flowchart for a request.
【図4】データベースの定義図表である。FIG. 4 is a definition table of a database.
【図5】(a) は問い合わせ例(連続する異なる型のデー
タのアクセス)の図表、(b) は問い合わせ例(同一型の
データの検索)の図表である。FIG. 5A is a chart of an example of an inquiry (access of successive different types of data), and FIG. 5B is a chart of an example of an inquiry (search for data of the same type).
【図6】(a) はデータベースの構成図表、(b) はページ
バッファ内のデータ構成図表、(c) はオブジェクトバッ
ファ内のデータ構成図表である。6A is a diagram showing the configuration of a database, FIG. 6B is a diagram showing the data configuration in a page buffer, and FIG. 6C is a diagram showing the data configuration in an object buffer.
【図7】異種データに対する処理フローチャートであ
る。FIG. 7 is a processing flowchart for heterogeneous data.
【図8】(a) ,(b) は同一型データに対する問い合わせ
による処理フローチャートである。FIGS. 8A and 8B are processing flowcharts for inquiring of the same type data.
1 記憶手段 2 第1のバッファ 3 第2のバッファ 4 制御図 DESCRIPTION OF SYMBOLS 1 Storage means 2 1st buffer 3 2nd buffer 4 Control diagram
Claims (4)
スを、ページバッファを有する第1のバッファ(2)で
同一型のデータ単位で管理してアクセスするデータベー
スシステムにおいて、前記第1のバッファで管理する単
位以外で関連するデータを管理する第2のバッファ
(3)と、データベースの問い合わせ要求が加わり、該
要求に対して、前記第1のバッファあるいは第2のバッ
ファを選択して評価し、該評価の結果を出力する制御部
(4)とを有することを特徴とするバッファ管理方式。In a database system in which a database stored in a storage means (1) is managed and accessed by a first buffer (2) having a page buffer in the same type of data unit, the database is managed by the first buffer. A second buffer (3) for managing related data in units other than the unit to be executed and a request for querying the database are added, and the request is selected and evaluated by selecting the first buffer or the second buffer. A buffer (4) for outputting a result of the evaluation.
(3)において管理単位以外で関連するデータを管理
し、該管理結果を前記第1のバッファに格納した後行わ
れることを特徴とする請求項1記載のバッファ管理方
式。2. The method according to claim 1, wherein the selection is performed after managing related data in units other than the management unit in the second buffer, and storing the management result in the first buffer. Item 2. The buffer management method according to Item 1.
評価を行うことを特徴とする請求項2記載のバッファ管
理方式。3. The buffer management method according to claim 2, wherein said control means performs an evaluation after said selection is made.
し、前記第1のバッファと第2のバッファとを別々に選
択して評価し、該評価の結果をマージすることを特徴と
する請求項1記載のバッファ管理方式。4. The method according to claim 1, wherein the control means selects and evaluates the first buffer and the second buffer separately for the same inquiry, and merges the evaluation results. The buffer management method described.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3002234A JP2748986B2 (en) | 1991-01-11 | 1991-01-11 | Buffer management method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3002234A JP2748986B2 (en) | 1991-01-11 | 1991-01-11 | Buffer management method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH04239378A JPH04239378A (en) | 1992-08-27 |
| JP2748986B2 true JP2748986B2 (en) | 1998-05-13 |
Family
ID=11523667
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3002234A Expired - Fee Related JP2748986B2 (en) | 1991-01-11 | 1991-01-11 | Buffer management method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2748986B2 (en) |
-
1991
- 1991-01-11 JP JP3002234A patent/JP2748986B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH04239378A (en) | 1992-08-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107247808B (en) | Distributed NewSQL database system and picture data query method | |
| US5317727A (en) | Method apparatus for determining prefetch operating for a data base | |
| US7158996B2 (en) | Method, system, and program for managing database operations with respect to a database table | |
| JPH10320423A (en) | Method and device for executing connection question in data base system | |
| US6122644A (en) | System for halloween protection in a database system | |
| US20020188626A1 (en) | Disk storage with modifiable data management function | |
| US7526469B2 (en) | Method and system of database management with shared area | |
| CN100405310C (en) | A snapshot system and method | |
| JP2748986B2 (en) | Buffer management method | |
| US20100228787A1 (en) | Online data volume deletion | |
| JPH08235040A (en) | Data file management system | |
| US20080046473A1 (en) | Method and System For Using Index Lead Key Self-Join To Take Advantage of Selectivity of Non-Leading Key Columns of an Index | |
| US7809766B2 (en) | Writable shared database objects | |
| JP4306281B2 (en) | Hierarchical data mapping program, apparatus and method in relational database | |
| JP3060225B2 (en) | Database management method and system | |
| JP2001067369A (en) | Information retrieval system, information retrieval method and recording medium recording information retrieval probram | |
| JP3236999B2 (en) | Database management method and system | |
| JPH05189286A (en) | Disk cache control system and control method | |
| JP3172793B1 (en) | Database management method | |
| JP3156199B2 (en) | Database management method and system | |
| US20250061133A1 (en) | Database layered filtering | |
| JP3060222B2 (en) | Database management method and system | |
| JP3060224B2 (en) | Database management method and system | |
| JP3060223B2 (en) | Database management method and system | |
| JP2000148566A (en) | Disk storage device having modifiable data management function |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19980203 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080220 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090220 Year of fee payment: 11 |
|
| LAPS | Cancellation because of no payment of annual fees |