JP2007172097A - Data access device and data access method - Google Patents

Data access device and data access method Download PDF

Info

Publication number
JP2007172097A
JP2007172097A JP2005365815A JP2005365815A JP2007172097A JP 2007172097 A JP2007172097 A JP 2007172097A JP 2005365815 A JP2005365815 A JP 2005365815A JP 2005365815 A JP2005365815 A JP 2005365815A JP 2007172097 A JP2007172097 A JP 2007172097A
Authority
JP
Japan
Prior art keywords
data
data access
request
access
time
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
JP2005365815A
Other languages
Japanese (ja)
Inventor
Takeshi Narai
剛士 成相
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2005365815A priority Critical patent/JP2007172097A/en
Publication of JP2007172097A publication Critical patent/JP2007172097A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data access device for achieving the high speed operation of data access. <P>SOLUTION: This database access device 102 is configured to select one data access system from a plurality of data access systems 303 in response to the data request 201 of an application 101, and to execute data access to a database 202 in response to a data request 201, and provided with a request processing part 301 for determining whether it is a learning time or an execution time in response to the data request 201; an access time measuring part 302 for executing data access in a plurality of data access systems 303 corresponding to the data request 201 when it is determined that it is the learning time, and for measuring the access time of a plurality of data access systems 303 and a learning result storing part 304 for extracting the data access system having the shortest time by the access time measuring part 302, and for executing learning as a highest speed data access system 306 in response to the data request 201. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

この発明は、データアクセスの高速化を実現するデータアクセス装置およびデータアクセス方法に関するものである。   The present invention relates to a data access apparatus and a data access method for realizing high-speed data access.

従来、大容量記憶装置および高速ネットワークの進展に伴い、保存されるデータ量はますます増大し、データへの高速なアクセス手法の確保が必要となっている。アプリケーションから必要なデータリクエストを受けたデータベースアクセスの、目的のデータにアクセスするためのアクセス方式には、ランダムアクセス/シーケンシャルアクセス等のファイルアクセスの方式、データキャッシュの使用有無及びその方式、データ取得経路の選択など、様々なアクセス方式を備えている(例えば、特許文献1参照)。   Conventionally, with the development of mass storage devices and high-speed networks, the amount of data to be stored is increasing, and it is necessary to secure a high-speed access method to the data. The access method for accessing the target data of the database access that has received the necessary data request from the application includes the file access method such as random access / sequential access, the use / non-use of the data cache, and the data acquisition route. And various access methods (for example, refer to Patent Document 1).

特開2004−54523号公報JP 2004-54523 A

従来のデータアクセスでは、複数のアクセス方式のうち、最も高速にデータを取得したい場合、どのアクセス方式を選択するべきなのかが実際に実行するまで不明という問題点があった。また、仮にある動作環境での最も高速なアクセス方式を決定できたとしても、別の動作環境ではシステムの規模・物理的なハードウェアの性能等に関する複数の環境要因によって最適値が変化してしまい、前回と同じ方式では高速にアクセス出来ず、再度高速化の検討が必要という問題点があった。更に、動作環境が同じであっても、汎用的なデータアクセスを対象に高速化した結果では、データアクセスがある特殊なパターンに偏っている場合に、そのパターンに特化した場合よりも低速になってしまうという問題があった。尚、ここで述べるパターンとは、データリクエスト要求の持つ規則性のことである。これらのことより、データアクセスの高速化は、実行時の環境、アプリケーションからのリクエストパターン(以下、規則性と称す)に応じて都度検討が必要であり、その検討においても各アクセス方式の詳細な知識を持つ人材が必要で、誰にでも可能なものではないという問題があった。   In the conventional data access, when data is to be acquired at the highest speed among a plurality of access methods, there is a problem that it is not known which access method should be selected until it is actually executed. Even if the fastest access method for a given operating environment can be determined, the optimal value will change in other operating environments due to multiple environmental factors related to system size, physical hardware performance, etc. However, the same method as the previous time cannot access at high speed, and there is a problem that it is necessary to consider speeding up again. Furthermore, even if the operating environment is the same, the result of speeding up for general-purpose data access is slower than when specialized in that pattern when data access is biased to a special pattern. There was a problem of becoming. The pattern described here refers to the regularity of the data request. For these reasons, high-speed data access needs to be examined each time depending on the runtime environment and the request pattern from the application (hereinafter referred to as regularity). There was a problem that human resources with knowledge were necessary and not possible for everyone.

この発明は上記のような課題を解決するためになされたものであり、内部に複数のアクセス方式を備える場合、最も高速なアクセス方式を内部的に自動選択することによりデータアクセスの高速化を実現することができるデータアクセス装置およびデータアクセス方法を提供することを目的とする。   The present invention has been made to solve the above-described problems. When a plurality of access methods are provided, the data access speed can be increased by automatically selecting the fastest access method internally. An object of the present invention is to provide a data access device and a data access method that can be performed.

この発明は、アプリケーションのデータリクエストに応じて複数のデータアクセス方式から1つのデータアクセス方式を選択してデータベースにデータリクエストに対するデータアクセスを実施するデータベースアクセス装置において、データリクエストに対して学習時か実行時かを決定するリクエスト処理部と、リクエスト処理部にて学習時であると決定されるとデータリクエストに対応する複数のデータアクセス方式にてデータアクセスを実施し複数のデータアクセス方式のアクセス時間をそれぞれ計測するアクセス時間計測部と、アクセス時間計測部にて一番短い時間を有するデータアクセス方式を抽出してデータリクエストに対して最速データアクセス方式として学習する学習結果保存部とリクエスト処理部にて実行時であると決定されると、データリクエストに対して学習結果保存部に保存された最速データアクセス方式を抽出してデータアクセスを行いリクエスト結果を出力するアクセス実行時処理部とを備えたものである。   The present invention provides a database access apparatus that selects one data access method from a plurality of data access methods according to an application data request and performs data access to the data request in the database. When the request processing unit determines whether or not the learning time is determined by the request processing unit, data access is performed using a plurality of data access methods corresponding to the data request, and the access time of the plurality of data access methods is reduced. In the access time measuring unit that measures each, the data access method having the shortest time in the access time measuring unit, and the learning result storage unit and the request processing unit that learns as the fastest data access method for the data request Determined to be run time It is the one in which comprises an access runtime handling unit outputting the extracted request results performs data access the fastest data access method stored in the learning result storing section to the data request.

この発明のデータアクセス装置は、アプリケーションのデータリクエストに応じて複数のデータアクセス方式から1つのデータアクセス方式を選択してデータベースにデータリクエストに対するデータアクセスを実施するデータベースアクセス装置において、データリクエストに対して学習時か実行時かを決定するリクエスト処理部と、リクエスト処理部にて学習時であると決定されるとデータリクエストに対応する複数のデータアクセス方式にてデータアクセスを実施し複数のデータアクセス方式のアクセス時間をそれぞれ計測するアクセス時間計測部と、アクセス時間計測部にて一番短い時間を有するデータアクセス方式を抽出してデータリクエストに対して最速データアクセス方式として学習する学習結果保存部とリクエスト処理部にて実行時であると決定されると、データリクエストに対して学習結果保存部に保存された最速データアクセス方式を抽出してデータアクセスを行いリクエスト結果を出力するアクセス実行時処理部とを備えたので、複数のアクセス方式を備える場合、最も高速なアクセス方式を内部的に選択することができるものである。   A data access device according to the present invention is a database access device that selects one data access method from a plurality of data access methods according to a data request of an application and performs data access to the data request to the database. A request processing unit that decides whether to learn or execute, and a data access method that performs data access using a plurality of data access methods corresponding to a data request when the request processing unit determines that it is a learning time. Access time measuring unit that measures each access time, and a learning result storage unit and request that learns as the fastest data access method for data requests by extracting the data access method having the shortest time in the access time measuring unit In the processing section When it is determined that it is at the time of execution, it has an access execution time processing unit that extracts the fastest data access method stored in the learning result storage unit for the data request, performs data access, and outputs the request result When a plurality of access methods are provided, the fastest access method can be selected internally.

実施の形態1.
以下、本願発明の実施の形態について説明する。図1はこの発明の実施の形態1におけるデータアクセス装置の構成を示す図、図2は図1に示したデータアクセス装置の動作を説明するためのフローチャートである。図において、データアクセスのリクエスト(以下、データリクエストと称す)を行うアプリケーション101と、このアプリケーション101ごとのデータリクエスト201に応じて、複数のデータアクセス方式303から1つの最速データアクセス方式306を選択してデータベース202にデータリクエスト201に対するデータアクセスを実施するデータベースアクセス装置102とがある。データベースアクセス装置102は、データリクエスト201に対して学習時か実行時かを決定するリクエスト処理部301と、リクエスト処理部301にて学習時のアクセス要求であると決定されると、データリクエスト201に対応する全てのデータアクセス方式303にてデータアクセスを実施し複数のデータアクセス方式303のアクセス時間をそれぞれ計測するアクセス時間計測部302とを備える。尚、ここではアクセス時間計測部302がデータリクエスト201に対応する全てのデータアクセス方式303にてデータアクセスを実施して時間を計測する場合について説明したが、これに限られることはなく、対応するデータアクセス方式303から所望の複数のデータアクセス方式303のみに対してデータアクセスを実施することも考えられる。
Embodiment 1 FIG.
Embodiments of the present invention will be described below. FIG. 1 is a diagram showing a configuration of a data access apparatus according to Embodiment 1 of the present invention, and FIG. 2 is a flowchart for explaining an operation of the data access apparatus shown in FIG. In the figure, one fastest data access method 306 is selected from a plurality of data access methods 303 according to the application 101 that makes a data access request (hereinafter referred to as a data request) and the data request 201 for each application 101. Thus, there is a database access device 102 that performs data access to the data request 201 in the database 202. The database access device 102 determines whether the data request 201 is a learning request or an execution time, and if the request processing unit 301 determines that the access request is a learning request, the data request 201 An access time measuring unit 302 that performs data access in all the corresponding data access methods 303 and measures the access times of the plurality of data access methods 303 is provided. Although the case where the access time measurement unit 302 performs data access in all the data access methods 303 corresponding to the data request 201 and measures time has been described here, the present invention is not limited to this and corresponds to the case. It is also conceivable to perform data access from the data access method 303 to only a desired plurality of data access methods 303.

さらに、アクセス時間計測部302にて一番短い時間を有するデータアクセス方式を抽出してデータリクエスト201に対して最速データアクセス方式306として学習する学習結果保存部304とを備える。この実施の形態1において学習結果保存部304では、1つのアプリケーション101に対する規則性毎のデータリクエスト201を各データアクセス方式で実行しそれぞれの合計時間を求め、合計時間が一番少ないデータアクセス方式を、この1つのアプリケーション101に対して最速となる1つの最速データアクセス方式として決定して学習する。さらに、リクエスト処理部301にて実行時のアクセス要求であると決定されると、学習結果保存部304に保存されたデータリクエスト201、すなわち、アプリケーション101に対応する最速データアクセス方式306を抽出してデータアクセスを行うアクセス実行時処理部305と、データアクセス装置102の内部ファイルとして、実際のアクセス対象データとしての複数のデータファイルが格納された内部のデータベース202とを備える。また、リクエスト処理部301は学習時において、アクセス時間計測部302にて計測より実行されたデータアクセスのリクエスト結果の1つをアプリケーション101に出力し、実行時には、アクセス実行時処理部305のリクエスト結果をアプリケーション101に出力する。   The access time measuring unit 302 further includes a learning result storage unit 304 that extracts the data access method having the shortest time and learns the data request 201 as the fastest data access method 306. In the first embodiment, the learning result storage unit 304 executes the data request 201 for each regularity for one application 101 by each data access method to obtain the total time of each, and the data access method having the smallest total time is obtained. Then, it is determined and learned as one fastest data access method that is the fastest for this one application 101. Further, when the request processing unit 301 determines that it is an access request at the time of execution, the data request 201 stored in the learning result storage unit 304, that is, the fastest data access method 306 corresponding to the application 101 is extracted. An access execution time processing unit 305 that performs data access and an internal database 202 in which a plurality of data files as actual access target data are stored as internal files of the data access apparatus 102 are provided. Further, the request processing unit 301 outputs, to the application 101, one of the data access request results executed from the measurement by the access time measuring unit 302 at the time of learning, and the request result of the access execution time processing unit 305 at the time of execution. Is output to the application 101.

次に上記のように構成された実施の形態1のデータアクセス装置のデータアクセス方法について図2に基づいて説明する。まず、リクエスト処理部301が学習時として決定している場合の動作について説明する。アプリケーション101はデータアクセス装置102に実行時と全く同様にデータリクエスト201を発行する(図2のステップS1)。次に、データリクエスト201を受信したリクエスト処理部301は、学習時状態を認識し、データリクエスト201をアクセス時間計測部302に渡す(図2のステップS2)。次に、データベース202への複数のデータアクセス方式303、ここではアクセスA、B、C、Dの方式がある。そして、アクセス時間計測部302は複数のデータアクセス方式303から1つの方式を実行し、そのデータアクセス方式303の処理時間を計測する(図2のステップS3)。   Next, a data access method of the data access apparatus of the first embodiment configured as described above will be described with reference to FIG. First, an operation in the case where the request processing unit 301 has decided as learning time will be described. The application 101 issues a data request 201 to the data access device 102 in exactly the same way as at the time of execution (step S1 in FIG. 2). Next, the request processing unit 301 that has received the data request 201 recognizes the learning state, and passes the data request 201 to the access time measurement unit 302 (step S2 in FIG. 2). Next, there are a plurality of data access methods 303 to the database 202, here, access A, B, C, and D methods. Then, the access time measuring unit 302 executes one method from the plurality of data access methods 303, and measures the processing time of the data access method 303 (step S3 in FIG. 2).

次に、全てのデータアクセス方式303に対して処理時間を計測したか否かを判断する(図2のステップS4)。次に、NOの場合には再びステップS3に戻り上記場合と同様の処理を行う。また、YESの場合には、処理完了をリクエスト処理部301に通知し、リクエスト処理部301はアプリケーション101に上記処理時間を計測した際に得られたリクエスト結果を返す(図2のステップS5)。次に、1つのアプリケーション101に対する全ての規則性毎のデータリクエスト201に対して上記処理を行ったか否かを判断する(図2のステップS6)。次に、1つのアプリケーション101に対して他の規則性のデータリクエスト201が残っている場合には(NO)、再びステップS2に戻り上記場合と同様の処理を繰り返す。また、1つのアプリケーション101に対して他の規則性のデータリクエスト201が残っていない場合(YES)、すなわちすべての規則性のデータリクエスト201に対して処理時間を計測した後、アクセス時間計測部302は、各データアクセス方式303のうち、処理時間の合計が最も短かったデータアクセス方式303を最も高速な最速データアクセス方式306、ここではアクセスBの方式と判定し、学習結果保存部304に1つのアプリケーション101に対してアクセスBの方式を最速データアクセス方式306であるとして保存して(図2のステップS7)、学習時を終了する。尚、ここでは特に示していないが、データリクエストは方式毎の実行順序を変更しながら実施するので、実行順序に対する方式の有利不利は結果に反映されない。   Next, it is determined whether or not the processing time has been measured for all data access methods 303 (step S4 in FIG. 2). Next, in the case of NO, the process returns to step S3 again and the same processing as in the above case is performed. In the case of YES, the request processing unit 301 is notified of the completion of processing, and the request processing unit 301 returns the request result obtained when the processing time is measured to the application 101 (step S5 in FIG. 2). Next, it is determined whether or not the above processing has been performed on all the data requests 201 for each regularity for one application 101 (step S6 in FIG. 2). Next, when another regularity data request 201 remains for one application 101 (NO), the process returns to step S2 and the same processing as described above is repeated. When no other regularity data request 201 remains for one application 101 (YES), that is, after measuring the processing time for all regularity data requests 201, the access time measuring unit 302. Among the data access methods 303, the data access method 303 having the shortest processing time is determined as the fastest fastest data access method 306, in this case, the access B method. The access B method is stored as the fastest data access method 306 for the application 101 (step S7 in FIG. 2), and the learning time ends. Although not specifically shown here, since the data request is executed while changing the execution order for each method, the advantages and disadvantages of the method with respect to the execution order are not reflected in the result.

次に、リクエスト処理部301が実行時として決定している場合の動作について説明する。まず、アプリケーション101はデータアクセス装置102にデータリクエスト201を発行する。次に、データリクエスト201を受信したリクエスト処理部301は、実行時状態を認識し、データリクエスト201をアクセス実行時処理部305に渡す(図2のステップS8)。次に、アクセス実行時処理部305は学習結果保存部304から1つのアプリケーション101、すなわち、データリクエスト201に対する最速データアクセス方式306を取得し、指定された最速データアクセス方式306にてデータベース202へのアクセスを実施する(図2のステップS9)。次に、アクセス実行時処理部305は処理完了をリクエスト処理部301に通知し、リクエスト処理部301はアプリケーション101にこのリクエスト結果を返す(図2のステップS10)。   Next, the operation when the request processing unit 301 has decided as the execution time will be described. First, the application 101 issues a data request 201 to the data access device 102. Next, the request processing unit 301 that has received the data request 201 recognizes the execution state and passes the data request 201 to the access execution processing unit 305 (step S8 in FIG. 2). Next, the access execution time processing unit 305 acquires the fastest data access method 306 for one application 101, that is, the data request 201, from the learning result storage unit 304, and accesses the database 202 using the specified fastest data access method 306. Access is performed (step S9 in FIG. 2). Next, the access execution time processing unit 305 notifies the request processing unit 301 of the completion of processing, and the request processing unit 301 returns the request result to the application 101 (step S10 in FIG. 2).

上記のように構成された実施の形態1のデータアクセス装置およびデータアクセス方法は、実行環境やアクセス要求のパターンに対応して、最も高速な方式の最速データアクセス方式を自動的に選択することが可能となる。この発明を実施するためには、データアクセス装置は学習時と実行時の2つの状態を持ち、学習時は、運転前に実際の実行環境と同じ環境でデータアクセス装置を動作させ、アプリケーションから実行時と同様のデータリクエストを受信する。このとき、データアクセス装置は複数の内部アクセス方式のうち、全てのアクセス方式に対してアクセスを行い、それぞれの時間を計測し、最も高速にデータアクセス出来る方式を決定する。そして、実行時には、先ほどの学習時に選択されたアクセス方式にてデータアクセスを行うため、実行時には、学習時に選択された最速データアクセス方式にてアクセスを行うことができ、最も高速なアクセスが実現できる。また、システムの規模・物理的なハードウェアの性能が異なる別の動作環境であっても、再度同様に学習を実施すれば、自動的に環境にあわせた最適なアクセス方式を選択することが可能となる。   The data access apparatus and data access method of the first embodiment configured as described above can automatically select the fastest data access method of the fastest method according to the execution environment and the pattern of the access request. It becomes possible. In order to implement the present invention, the data access device has two states of learning and execution, and during learning, the data access device is operated in the same environment as the actual execution environment before driving and is executed from the application. Receive the same data request as the time. At this time, the data access device accesses all access methods among a plurality of internal access methods, measures each time, and determines the method that can access the data at the highest speed. And at the time of execution, since the data access is performed by the access method selected at the time of the previous learning, at the time of execution, the access can be performed by the fastest data access method selected at the time of learning, and the fastest access can be realized. . In addition, even in different operating environments with different system scales and physical hardware performance, it is possible to automatically select the optimal access method according to the environment if learning is performed again in the same way. It becomes.

尚、上記実施の形態1においては規則性毎のデータリクエストに対して測定を行い、これらの合計時間により、1つのアプリケーションに対する1つの最速データアクセス方式を決定している例を示したが、これに限られることはなく、1つのデータリクエストに対してのみ学習を行いその際の最速のものを1つのアプリケーションの1つの最速データアクセス方式として決定する方法にて行うことも可能であり。この場合は、敏速に最速データアクセス方式を決定することができる。または、所望の規則性の種類、例えば5種類のデータリクエストから1つのアプリケーションに対する最速データアクセス方式を決定する方法など様々な方法が考えられる。   In the first embodiment, an example is shown in which measurement is performed for data requests for each regularity, and one fastest data access method for one application is determined based on the total time. However, the present invention is not limited to this, and it is also possible to perform learning by only one data request and determine the fastest one at that time as one fastest data access method for one application. In this case, the fastest data access method can be determined promptly. Alternatively, various methods such as a method of determining the fastest data access method for one application from the types of desired regularity, for example, five types of data requests are conceivable.

実施の形態2.
図3はこの発明の実施の形態2におけるデータアクセス装置の構成を示す図である。図において、上記実施の形態1に示した部分と同様の部分は同一符号を付して説明を省略する。本実施の形態2においては、上記実施の形態1と異なりデータベースをデータアクセス装置102外の外部データベース210として備えたものである。
Embodiment 2. FIG.
FIG. 3 is a diagram showing the configuration of the data access apparatus according to the second embodiment of the present invention. In the figure, the same parts as those shown in the first embodiment are denoted by the same reference numerals, and the description thereof is omitted. In the second embodiment, unlike the first embodiment, a database is provided as an external database 210 outside the data access apparatus 102.

次に上記のように構成された実施の形態2のデータアクセス装置の動作について説明する。ここでは主な動作は上記実施の形態1の場合と同様であるため、上記実施の形態1の動作と異なる動作について説明する。本実施の形態2においては、複数のデータアクセス方式303および最速データアクセス方式306が、外部データベース210に対してアクセスするものであり、上記実施の形態1とアクセス方式が異なる点のみが動作として異なる部分である。   Next, the operation of the data access apparatus of the second embodiment configured as described above will be described. Here, the main operation is the same as that of the first embodiment, and therefore, the operation different from the operation of the first embodiment will be described. In the second embodiment, the plurality of data access methods 303 and the fastest data access method 306 access the external database 210, and the operation differs only in that the access method is different from the first embodiment. Part.

上記のように構成された実施の形態2のデータアクセス装置およびデータアクセス方法では、データの保存場所がデータアクセス装置内のデータベースでなく、外部データベース上にある場合でも、同様に外部データベースへの複数のアクセス方式が備える場合、上記実施の形態1と同様のアルゴリズムでアクセスの高速化を実現可能であり、上記実施の形態1と同様の効果を奏することが可能である。尚、以下の実施の形態においてもデータベースを外部データベースとする場合も同様に行うことが可能なため、その説明は適宜省略する。   In the data access device and the data access method according to the second embodiment configured as described above, even when the data storage location is not on the database in the data access device but on the external database, a plurality of data is stored in the external database. When the access method is provided, the access speed can be increased with the same algorithm as in the first embodiment, and the same effect as in the first embodiment can be obtained. It should be noted that, in the following embodiments as well, when the database is an external database, it can be performed in the same manner, and therefore the description thereof is omitted as appropriate.

実施の形態3.
図4はこの発明の実施の形態3におけるデータアクセス装置の構成を示す図、図5は図4に示したデータアクセス装置の動作を示すためのフローチャートである。図において、上記各実施の形態に示した部分と同様の部分は同一符号を付して説明を省略する。この実施の形態3においては、上記各実施の形態と異なり、データアクセス装置に対してデータリクエストを行うアプリケーションが複数種存在する。データアクセス装置102に対して第1のデータリクエスト203(図4において、リクエスト(1)または(1)と示す)を発行する第1のアプリケーション103と、データアクセス装置102に対して第2のデータリクエスト204(図4において、リクエスト(2)または(2)と示す)を発行する第2のアプリケーション104とが存在するものであり、学習結果保存部304は第1および第2のアプリケーション103、104の種別毎に最速データアクセス方式307、308を保存する。
Embodiment 3 FIG.
FIG. 4 is a diagram showing the configuration of the data access device according to the third embodiment of the present invention, and FIG. 5 is a flowchart for showing the operation of the data access device shown in FIG. In the figure, the same parts as those shown in the above embodiments are given the same reference numerals, and the description thereof is omitted. In the third embodiment, unlike the above embodiments, there are a plurality of types of applications that make data requests to the data access device. A first application 103 that issues a first data request 203 (shown as request (1) or (1) in FIG. 4) to the data access device 102, and second data to the data access device 102 There is a second application 104 that issues a request 204 (shown as request (2) or (2) in FIG. 4), and the learning result storage unit 304 includes first and second applications 103, 104. The fastest data access methods 307 and 308 are stored for each type.

次に上記のように構成された実施の形態3のデータアクセス装置のデータアクセス方法について図5に基づいて説明する。まず、リクエスト処理部301が学習時として決定している場合の動作について説明する。第1および第2のアプリケーション103、104はデータアクセス装置102に実行時と全く同様に第1および第2のデータリクエスト203、204を発行する(図5のステップS11)。次に、第1および第2のデータリクエスト203、204を受信したリクエスト処理部301は、学習時状態を認識し、第1および第2のデータリクエスト203、204をアクセス時間計測部302に渡す(図5のステップS12)。次に、データベース202への複数のデータアクセス方式303、ここではアクセスA、B、C、Dの方式がある。そして、アクセス時間計測部302は複数のデータアクセス方式303から1つの方式を実行し、第1および第2のデータリクエスト203、204に対してそのデータアクセス方式303の処理時間をそれぞれ計測する(図5のステップS13)。   Next, a data access method of the data access apparatus of the third embodiment configured as described above will be described with reference to FIG. First, an operation in the case where the request processing unit 301 has decided as learning time will be described. The first and second applications 103 and 104 issue the first and second data requests 203 and 204 to the data access apparatus 102 in exactly the same way as at the time of execution (step S11 in FIG. 5). Next, the request processing unit 301 that has received the first and second data requests 203 and 204 recognizes the learning state, and passes the first and second data requests 203 and 204 to the access time measuring unit 302 ( Step S12 in FIG. Next, there are a plurality of data access methods 303 to the database 202, here, access A, B, C, and D methods. Then, the access time measuring unit 302 executes one method from a plurality of data access methods 303, and measures the processing time of the data access method 303 for the first and second data requests 203 and 204, respectively (FIG. 5 step S13).

次に、全てのデータアクセス方式303に対して処理時間を計測したか否かを判断する(図5のステップS14)。次に、NOの場合には再びステップS13に戻り上記場合と同様の処理を行う。また、YESの場合には、処理完了をリクエスト処理部301に通知し、リクエスト処理部301は第1および第2のアプリケーション103、104にそれぞれの上記処理時間を計測した際に得られたリクエスト結果をそれぞれ返す(図5のステップS15)。次に、各アプリケーションの種別毎、第1および第2のアプリケーション103、104に対して全ての規則性毎の第1および第2のデータリクエスト203、204に対して上記処理を行ったか否かを判断する(図5のステップS16)。次に、アプリケーションの種別毎、第1および第2のアプリケーション103、104に対して他の規則性の第1および第2のデータリクエスト203、204が残っている場合には(NO)、再びステップS12に戻り上記場合と同様の処理を繰り返す。   Next, it is determined whether or not the processing time has been measured for all the data access methods 303 (step S14 in FIG. 5). Next, in the case of NO, the process returns to step S13 again and the same processing as in the above case is performed. Further, in the case of YES, the request processing unit 301 is notified of the completion of processing, and the request processing unit 301 obtains the request result obtained when the first and second applications 103 and 104 measure the above processing times, respectively. Are respectively returned (step S15 in FIG. 5). Next, whether or not the above-described processing has been performed for the first and second data requests 203 and 204 for each regularity for each application type and for the first and second applications 103 and 104 is determined. Judgment is made (step S16 in FIG. 5). Next, for each type of application, if the first and second data requests 203 and 204 having other regularity remain for the first and second applications 103 and 104 (NO), step again Returning to S12, the same processing as described above is repeated.

また、アプリケーションの種別毎、第1および第2のアプリケーション103、104に対して他の規則性の第1および第2のデータリクエスト203、204が残っていない場合(YES)、すなわちすべての規則性の第1および第2のデータリクエスト203、204に対して処理時間を計測した後、アクセス時間計測部302は、各データアクセス方式303のうち、処理時間の合計が最も短かったデータアクセス方式303を最も高速な最速データアクセス方式307、308、ここでは第1のアプリケーション103に対してはアクセスBの方式、第2のアプリケーション104に対してはアクセスCの方式と判定し、学習結果保存部304に各種別の第1および第2のアプリケーション103、104、すなわち第1および第2のデータリクエスト203、204に対する最速データアクセス方式307、308であるとして保存する(図5のステップS17)。次に、全ての種別のアプリケーションに対して最速データアクセス方式を決定したか否かを判断する(図5のステップS18)。そして、NOの場合には再びステップS11に戻り上記に示した動作を繰り返す。また、YESの場合には学習時を終了する。   Further, for each type of application, when the first and second data requests 203 and 204 having other regularity do not remain for the first and second applications 103 and 104 (YES), that is, all regularity After measuring the processing time for the first and second data requests 203 and 204, the access time measuring unit 302 selects the data access method 303 having the shortest processing time among the data access methods 303. The fastest and fastest data access methods 307 and 308, here, the first application 103 is determined to be the access B method, and the second application 104 is determined to be the access C method. First and second applications 103 and 104 of each type, that is, first and second Save as the fastest data access method 307, 308 to the data request 203 and 204 (step S17 in FIG. 5). Next, it is determined whether or not the fastest data access method has been determined for all types of applications (step S18 in FIG. 5). If NO, the process returns to step S11 again to repeat the above-described operation. If YES, the learning time is terminated.

次に、リクエスト処理部301が実行時として決定している場合の動作について説明する。まず、第1および第2のアプリケーション103、104はデータアクセス装置102に第1および第2のデータリクエスト203、204をそれぞれ発行する。次に、第1および第2のデータリクエスト203、204を受信したリクエスト処理部301は、実行時状態を認識し、第1および第2のデータリクエスト203、204が第1および第2のアプリケーション103、104のいずれかのリクエストであるかを判断してアクセス実行時処理部305に渡す(図5のステップS19)。次に、アクセス実行時処理部305は学習結果保存部304から第1および第2のアプリケーション103、104、すなわち、第1および第2のデータリクエスト203、204に対するそれぞれの最速データアクセス方式307、308を取得し、第1のアプリケーション103の第1のデータリクエスト203に対しては最速データアクセス方式307にて、第2のアプリケーション104のデータリクエスト204に対しては最速データアクセス方式308にてデータベース202へのアクセスをそれぞれ実施する(図5のステップS20)。次に、アクセス実行時処理部305は処理完了をリクエスト処理部301に通知し、リクエスト処理部301は第1および第2のアプリケーション103、104にリクエスト結果をそれぞれ返す(図5のステップS21)。   Next, the operation when the request processing unit 301 has decided as the execution time will be described. First, the first and second applications 103 and 104 issue first and second data requests 203 and 204 to the data access apparatus 102, respectively. Next, the request processing unit 301 that has received the first and second data requests 203 and 204 recognizes the runtime state, and the first and second data requests 203 and 204 are sent to the first and second applications 103. , 104 is passed to the access execution time processing unit 305 (step S19 in FIG. 5). Next, the access execution time processing unit 305 receives the first and second applications 103 and 104, that is, the fastest data access methods 307 and 308 for the first and second data requests 203 and 204 from the learning result storage unit 304, respectively. And the database 202 by the fastest data access method 307 for the first data request 203 of the first application 103 and by the fastest data access method 308 for the data request 204 of the second application 104. Is accessed (step S20 in FIG. 5). Next, the access execution time processing unit 305 notifies the request processing unit 301 of the completion of processing, and the request processing unit 301 returns the request results to the first and second applications 103 and 104, respectively (step S21 in FIG. 5).

上記のように構成された実施の形態3のデータアクセス装置およびデータアクセス方法では、アプリケーションの種別毎に集計され、高速な最速データアクセス方式が選択され、アクセスが実行される。このように、1つのデータアクセス装置にてアプリケーションの種別毎に高速なアクセス方式を学習することにより、アプリケーションの種別毎にアクセスパターンが異なる場合でも、それぞれのアプリケーションに最適化したアクセス方式での実行時アクセスが可能となる。よって、アプリケーションの種別毎のアクセス要求パターンの違いにより対応することが可能となる。   In the data access apparatus and data access method of the third embodiment configured as described above, the data is counted for each application type, the fastest fastest data access method is selected, and the access is executed. In this way, by using a single data access device to learn a high-speed access method for each application type, even if the access pattern differs for each application type, execution with an access method optimized for each application Access becomes possible. Therefore, it is possible to cope with the difference in the access request pattern for each type of application.

実施の形態4.
図6はこの発明の実施の形態4におけるデータアクセス装置の構成を示す図、図7は図6に示したデータアクセス装置の動作を示すためのフローチャートである。図において、上記各実施の形態に示した部分と同様の部分は同一符号を付して説明を省略する。この実施の形態4においては、上記各実施の形態と異なり、学習結果保存部304において、1つのアプリケーション101のデータリクエストの規則性(以下、規則性のことをパターンと称する場合もある)毎、ここでは第1種のデータリクエスト205(図6において、リクエスト(a)または(a)と示す)および第2種のデータリクエスト206(図6においてリクエスト(b)または(b)と示す)毎に最速データアクセス方式を学習する。
Embodiment 4 FIG.
FIG. 6 is a diagram showing the configuration of the data access device according to the fourth embodiment of the present invention, and FIG. 7 is a flowchart for showing the operation of the data access device shown in FIG. In the figure, the same parts as those shown in the above embodiments are given the same reference numerals, and the description thereof is omitted. In the fourth embodiment, unlike each of the above-described embodiments, the learning result storage unit 304 performs regularity of data requests of one application 101 (hereinafter, regularity may be referred to as a pattern), Here, for each first type of data request 205 (shown as request (a) or (a) in FIG. 6) and second type of data request 206 (shown as request (b) or (b) in FIG. 6). Learn the fastest data access method.

次に上記のように構成された実施の形態4のデータアクセス装置のデータアクセス方法について図7に基づいて説明する。まず、リクエスト処理部301が学習時として決定している場合の動作について説明する。アプリケーション101はデータアクセス装置102に実行時と全く同様に異なる規則性を有する第1種および第2種のデータリクエスト205、206を発行する(図7のステップS31)。次に、第1種および第2種のデータリクエスト205、206を受信したリクエスト処理部301は、学習時状態を認識し、第1種および第2種のデータリクエスト205、206にて決定されているリクエストパターン(規則性)を指定して(図7のステップS32)、アクセス時間計測部302に渡す(図7のステップS33)。次に、データベース202へのアクセス方式の複数のデータアクセス方式303、ここではアクセスA、B、C、Dの方式がある。そして、アクセス時間計測部302は複数のデータアクセス方式303から1つの方式を実行し、そのデータアクセス方式303の処理時間を計測する(図7のステップS34)。   Next, a data access method of the data access apparatus according to the fourth embodiment configured as described above will be described with reference to FIG. First, an operation in the case where the request processing unit 301 has decided as learning time will be described. The application 101 issues first and second type data requests 205 and 206 having different regularities to the data access apparatus 102 in exactly the same way as at the time of execution (step S31 in FIG. 7). Next, the request processing unit 301 that has received the first and second type data requests 205 and 206 recognizes the learning state and is determined by the first and second type data requests 205 and 206. The request pattern (regularity) is specified (step S32 in FIG. 7) and passed to the access time measuring unit 302 (step S33 in FIG. 7). Next, there are a plurality of data access methods 303 as access methods to the database 202, here, access A, B, C, and D methods. Then, the access time measuring unit 302 executes one method from the plurality of data access methods 303, and measures the processing time of the data access method 303 (step S34 in FIG. 7).

次に、全てのデータアクセス方式303に対して処理時間を計測したか否かを判断する(図7のステップS35)。次に、NOの場合には再びステップS34に戻り上記場合と同様の処理を行う。また、YESの場合には、処理完了をリクエスト処理部301に通知し、リクエスト処理部301はアプリケーション101に上記処理時間を計測した際に得られたリクエスト結果を返す(図7のステップS36)。次に、アプリケーション101に対する全ての規則性毎、第1種および第2種のデータリクエスト205、206に対して上記処理を行ったか否かを判断する(図7のステップS37)。そして、アプリケーション101に対して他の規則性のデータリクエストが残っている場合には(NO)、再びステップS33に戻り上記場合と同様の処理を繰り返す。また、アプリケーション101に対して他の規則性のデータリクエストが残っていない場合(YES)、すなわちすべての規則性のデータリクエストに対して処理時間を計測した後、アクセス時間計測部302は、第1種および第2種のデータリクエスト205、206毎に各データアクセス方式303のうち、処理時間が最も短かったデータアクセス方式303を、第1種のデータリクエスト205に対しては最も高速な最速データアクセス方式309ここではアクセスBの方式、第2種のデータリクエスト206に対しては最速データアクセス方式310ここではアクセスDの方式を、学習結果保存部304にアプリケーション101の規則性毎の第1種および第2種のデータリクエスト205、206毎に対する最速データアクセス方式309、310であるとしてそれぞれ保存する(図7のステップS38)。   Next, it is determined whether or not the processing time has been measured for all the data access methods 303 (step S35 in FIG. 7). Next, in the case of NO, the process returns to step S34 again to perform the same processing as in the above case. In the case of YES, the request processing unit 301 is notified of the completion of processing, and the request processing unit 301 returns the request result obtained when the processing time is measured to the application 101 (step S36 in FIG. 7). Next, it is determined whether or not the above processing has been performed on the first and second type data requests 205 and 206 for every regularity for the application 101 (step S37 in FIG. 7). If another regular data request remains for the application 101 (NO), the process returns to step S33 again to repeat the same processing as described above. If there is no other regular data request for the application 101 (YES), that is, after measuring the processing time for all regular data requests, the access time measuring unit 302 first The data access method 303 having the shortest processing time among the data access methods 303 for each of the seed type and the second type data requests 205 and 206 is the fastest and fastest data access for the first type data request 205. Method 309 is the access B method here, the fastest data access method 310 is used for the second type of data request 206, here the access D method, and the learning result storage unit 304 stores the first type for each regularity of the application 101 and Fastest data access method for each type 2 data request 205, 206 To save each as a 309 and 310 (step S38 in FIG. 7).

次に、リクエスト処理部301が実行時として決定している場合の動作について説明する。まず、アプリケーション101はデータアクセス装置102に規則性の異なる第1種および第2種のデータリクエスト205、206をそれぞれ発行する。次に、第1種および第2種のデータリクエスト205、206を受信したリクエスト処理部301は、リクエストパターン(規則性)を指示して(図7のステップS39)、実行時状態を認識し、データリクエスト201をアクセス実行時処理部305に渡す(図7のステップS40)。次に、アクセス実行時処理部305は学習結果保存部304から第1種および第2種のデータリクエスト205、206のそれぞれに応じた最速データアクセス方式309、310をそれぞれ取得し、第1種のデータリクエスト205に対しては最速データアクセス方式309にて、第2種のデータリクエスト206に対しては最速データアクセス方式310にてデータベース202へのそれぞれアクセスを実施する(図7のステップS41)。次に、アクセス実行時処理部305は処理完了をリクエスト処理部301に通知し、リクエスト処理部301はアプリケーション101の第1種および第2種のデータリクエスト205、206に対してリクエスト結果をそれぞれ返す(図7のステップS42)。   Next, the operation when the request processing unit 301 has decided as the execution time will be described. First, the application 101 issues first and second type data requests 205 and 206 having different regularities to the data access apparatus 102, respectively. Next, the request processing unit 301 that has received the first and second type data requests 205 and 206 instructs the request pattern (regularity) (step S39 in FIG. 7), recognizes the runtime state, The data request 201 is passed to the access execution time processing unit 305 (step S40 in FIG. 7). Next, the access execution time processing unit 305 acquires the fastest data access methods 309 and 310 corresponding to the first type and second type data requests 205 and 206 from the learning result storage unit 304, respectively. The database 202 is accessed by the fastest data access method 309 for the data request 205 and by the fastest data access method 310 for the second type data request 206 (step S41 in FIG. 7). Next, the access execution time processing unit 305 notifies the request processing unit 301 of the completion of processing, and the request processing unit 301 returns request results to the first type and second type data requests 205 and 206 of the application 101, respectively. (Step S42 in FIG. 7).

上記のように構成された実施の形態4のデータアクセス装置およびデータアクセス方法では、アプリケーションのデータリクエストの規則性毎に別々に集計され、それぞれの規則性に対して高速な最速データアクセス方式が保存され、実行時には規則性毎に保存された最速データアクセス方式が選択され、アクセスが実行される。このように、アプリケーション内でアクセス要求パターンが違う場合でも、それをアプリケーション側が指定することにより、それぞれのデータリクエストの規則性毎に最適化したアクセス方式での実行時アクセスが可能となる。よって、アプリケーションのデータリクエストの規則性毎のアクセス要求パターンの違いにより対応することが可能となる。   In the data access apparatus and data access method of the fourth embodiment configured as described above, the data requests are regularly counted for each regularity of the application data request, and the fastest fastest data access method is stored for each regularity. At the time of execution, the fastest data access method stored for each regularity is selected and access is executed. As described above, even when the access request pattern is different in the application, the application side designates the access request pattern, so that the access at the time of execution in the access method optimized for each regularity of each data request becomes possible. Therefore, it is possible to cope with the difference in the access request pattern for each regularity of the data request of the application.

実施の形態5.
図8はこの発明の実施の形態5におけるデータアクセス装置の構成を示す図、図9は図8に示したデータアクセス装置の動作を示すためのフローチャートである。図において、上記各実施の形態に示した部分と同様の部分は同一符号を付して説明を省略する。この実施の形態5においては、上記実施の形態4と異なりアプリケーション101のデータリクエスト201のリクエストパターン(規則性)を判定するリクエストパターン判定部311を備える。尚、図8においてリクエストパターンの種別を、リクエスト(a)または(a)と、リクエスト(b)または(b)と示す。
Embodiment 5 FIG.
FIG. 8 is a diagram showing the configuration of the data access device according to the fifth embodiment of the present invention, and FIG. 9 is a flowchart for showing the operation of the data access device shown in FIG. In the figure, the same parts as those shown in the above embodiments are given the same reference numerals, and the description thereof is omitted. In the fifth embodiment, unlike the fourth embodiment, a request pattern determination unit 311 that determines the request pattern (regularity) of the data request 201 of the application 101 is provided. In FIG. 8, the request pattern types are shown as request (a) or (a) and request (b) or (b).

次に上記のように構成された実施の形態5のデータアクセス装置のデータアクセス方法について図9に基づいて説明する。まず、リクエスト処理部301が学習時として決定している場合の動作について説明する。アプリケーション101はデータアクセス装置102に実行時と全く同様にデータリクエスト201を発行する(図9のステップS51)。データリクエスト201を受信したリクエストパターン判定部311はデータリクエスト201の内容を解釈し、予め決められたロジックによって、そのデータリクエスト201のリクエストパターン(規則性)を選択する(図9のステップS52)。次に、リクエスト処理部301は、学習時状態を認識し、データリクエスト201をアクセス時間計測部302に渡す(図9のステップS53)。次に、データベース202へのアクセス方式の複数のデータアクセス方式303、ここではアクセスA、B、C、Dの方式がある。そして、アクセス時間計測部302は複数のデータアクセス方式303から1つの方式を実行し、そのデータアクセス方式303の処理時間を計測する(図9のステップS54)。次に、全てのデータアクセス方式303に対して処理時間を計測したか否かを判断する(図9のステップS55)。次に、NOの場合には再びステップS54に戻り上記場合と同様の処理を行う。   Next, a data access method of the data access apparatus according to the fifth embodiment configured as described above will be described with reference to FIG. First, an operation in the case where the request processing unit 301 has decided as learning time will be described. The application 101 issues a data request 201 to the data access device 102 in exactly the same way as at the time of execution (step S51 in FIG. 9). The request pattern determination unit 311 that has received the data request 201 interprets the content of the data request 201 and selects a request pattern (regularity) of the data request 201 by using a predetermined logic (step S52 in FIG. 9). Next, the request processing unit 301 recognizes the learning state and passes the data request 201 to the access time measuring unit 302 (step S53 in FIG. 9). Next, there are a plurality of data access methods 303 as access methods to the database 202, here, access A, B, C, and D methods. Then, the access time measuring unit 302 executes one method from the plurality of data access methods 303 and measures the processing time of the data access method 303 (step S54 in FIG. 9). Next, it is determined whether or not the processing time has been measured for all the data access methods 303 (step S55 in FIG. 9). Next, in the case of NO, the process returns to step S54 again to perform the same processing as in the above case.

また、YESの場合には、処理完了をリクエスト処理部301に通知し、リクエスト処理部301はアプリケーション101に上記処理時間を計測した際に得られたリクエスト結果を返す(図9のステップS56)。次に、アプリケーション101に対する全ての規則性に対するデータリクエスト201に対して処理を行ったか否かを判断する(図9のステップS57)。そして、アプリケーション101に対して他の規則性のデータリクエスト201が残っている場合には(NO)、再びステップS52に戻り上記場合と同様の処理を繰り返す。また、アプリケーション101に対して他の規則性のデータリクエスト201が残っていない場合(YES)、すなわちすべての規則性のデータリクエスト201に対して処理時間を計測した後、アクセス時間計測部302は、データリクエスト201の規則性毎に、各のデータアクセス方式303のうち、処理時間が最も短かったデータアクセス方式303を最も高速な最速データアクセス方式306、ここでは規則性をリクエスト(a)と判断した場合にはアクセスBの方式を、規則性をリクエスト(b)と判断した場合にはアクセスDの方式をそれぞれ判定し、学習結果保存部304にアプリケーション101の規則性毎の最速データアクセス方式309、310をそれぞれ保存する(図9のステップS58)。   In the case of YES, the request processing unit 301 is notified of the completion of processing, and the request processing unit 301 returns the request result obtained when the processing time is measured to the application 101 (step S56 in FIG. 9). Next, it is determined whether or not processing has been performed on the data request 201 for all regularities for the application 101 (step S57 in FIG. 9). If another regular data request 201 remains for the application 101 (NO), the process returns to step S52 again to repeat the same process as described above. When there is no other regularity data request 201 for the application 101 (YES), that is, after measuring the processing time for all regularity data requests 201, the access time measurement unit 302 For each regularity of the data request 201, among the data access methods 303, the data access method 303 having the shortest processing time is determined as the fastest fastest data access method 306, in which the regularity is the request (a). In this case, the access B method is determined, and when the regularity is determined to be request (b), the access D method is determined. The fastest data access method 309 for each regularity of the application 101 is stored in the learning result storage unit 304. 310 is stored (step S58 in FIG. 9).

次に、リクエスト処理部301が実行時として決定している場合の動作について説明する。まず、アプリケーション101はデータアクセス装置102にデータリクエスト201を発行する。次に、データリクエスト201を受信したリクエストパターン判定部311はデータリクエスト201のリクエストパターン(規則性)を選択する(図9のステップS59)。次に、リクエスト処理部301は、実行時状態を認識し、データリクエスト201をアクセス実行時処理部305に渡す(図9のステップS60)。次に、アクセス実行時処理部305は学習結果保存部304からリクエスト(a)、(b)に応じた最速データアクセス方式309、310を取得し、リクエスト(a)に対しては最速データアクセス方式309にて、また、リクエスト(b)に対しては最速データアクセス方式310にてデータベース202へのアクセスを実施する(図9のステップS61)。次に、アクセス実行時処理部305は処理完了をリクエスト処理部301に通知し、リクエスト処理部301はアプリケーション101にリクエスト結果を返す(図9のステップS62)。   Next, the operation when the request processing unit 301 has decided as the execution time will be described. First, the application 101 issues a data request 201 to the data access device 102. Next, the request pattern determination unit 311 that has received the data request 201 selects a request pattern (regularity) of the data request 201 (step S59 in FIG. 9). Next, the request processing unit 301 recognizes the execution time state and passes the data request 201 to the access execution time processing unit 305 (step S60 in FIG. 9). Next, the access execution time processing unit 305 acquires the fastest data access methods 309 and 310 corresponding to the requests (a) and (b) from the learning result storage unit 304, and the fastest data access method for the request (a). At 309, for the request (b), the database 202 is accessed by the fastest data access method 310 (step S61 in FIG. 9). Next, the access execution time processing unit 305 notifies the request processing unit 301 of processing completion, and the request processing unit 301 returns a request result to the application 101 (step S62 in FIG. 9).

上記のように構成された実施の形態5のデータアクセス装置およびデータアクセス方法では、アプリケーションのデータリクエストの規則性をデータアクセス装置内にて判断して、規則性毎に別々に集計され、それぞれの規則性に対して高速な最速データアクセス方式が保存され、実行時には規則性毎に保存された最速データアクセス方式が選択され、アクセスが実行される。このように、アプリケーション内でアクセス要求パターンが違う場合でも、それをアプリケーション側が指定することにより、それぞれのデータリクエストの規則性毎に最適化したアクセス方式での実行時アクセスが可能となる。   In the data access device and the data access method of the fifth embodiment configured as described above, the regularity of the data request of the application is determined in the data access device, and the data access device and the data access method are separately counted for each regularity. The fastest data access method that is fast with respect to regularity is stored. At the time of execution, the fastest data access method stored for each regularity is selected, and access is executed. As described above, even when the access request pattern is different in the application, the application side designates the access request pattern, so that the access at the time of execution in the access method optimized for each regularity of each data request becomes possible.

この発明の実施の形態1におけるデータアクセス装置の構成を示す図である。It is a figure which shows the structure of the data access apparatus in Embodiment 1 of this invention. 図1に示したデータアクセス装置の動作を示すフローチャートである。3 is a flowchart showing an operation of the data access device shown in FIG. 1. この発明の実施の形態2におけるデータアクセス装置の構成を示す図である。It is a figure which shows the structure of the data access apparatus in Embodiment 2 of this invention. この発明の実施の形態3におけるデータアクセス装置の構成を示す図である。It is a figure which shows the structure of the data access apparatus in Embodiment 3 of this invention. 図4に示したデータアクセス装置の動作を示すフローチャートである。5 is a flowchart showing an operation of the data access apparatus shown in FIG. この発明の実施の形態4におけるデータアクセス装置の構成を示す図である。It is a figure which shows the structure of the data access apparatus in Embodiment 4 of this invention. 図6に示したデータアクセス装置の動作を示すフローチャートである。7 is a flowchart showing an operation of the data access device shown in FIG. 6. この発明の実施の形態5におけるデータアクセス装置の構成を示す図である。It is a figure which shows the structure of the data access apparatus in Embodiment 5 of this invention. 図8に示したデータアクセス装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the data access apparatus shown in FIG.

符号の説明Explanation of symbols

101 アプリケーション、102 データアクセス装置、
103 第1のアプリケーション、104 第2のアプリケーション、
201 データリクエスト、202 データベース、203 第1のデータリクエスト、204 第2のデータリクエスト、205 第1種のデータリクエスト、
206 第2種のデータリクエスト、210 外部データベース、
301 リクエスト処理部、302 アクセス時間計測部、
303 データアクセス方式、304 学習結果保存部、
305 アクセス実行時処理部、
306,307,308,309,310 最速データアクセス方式、
311 リクエストパターン判定部。
101 application, 102 data access device,
103 first application, 104 second application,
201 data request, 202 database, 203 first data request, 204 second data request, 205 first type data request,
206 Type 2 data request, 210 External database,
301 request processing unit, 302 access time measuring unit,
303 data access method, 304 learning result storage unit,
305 access execution time processing unit,
306, 307, 308, 309, 310 Fastest data access method,
311 Request pattern determination unit.

Claims (7)

アプリケーションのデータリクエストに応じて複数のデータアクセス方式から1つのデータアクセス方式を選択してデータベースに上記データリクエストに対するデータアクセスを実施するデータベースアクセス装置において、上記データリクエストに対して学習時か実行時かを決定するリクエスト処理部と、上記リクエスト処理部にて学習時であると決定されると上記データリクエストに対応する上記複数のデータアクセス方式にてデータアクセスを実施し上記複数のデータアクセス方式のアクセス時間をそれぞれ計測するアクセス時間計測部と、上記アクセス時間計測部にて一番短い時間を有するデータアクセス方式を抽出して上記データリクエストに対して最速データアクセス方式として学習する学習結果保存部と、上記リクエスト処理部にて実行時であると決定されると、上記データリクエストに対して上記学習結果保存部に保存された上記最速データアクセス方式を抽出してデータアクセスを行いリクエスト結果を出力するアクセス実行時処理部とを備えたことを特徴とするデータアクセス装置。 In a database access device that selects one data access method from a plurality of data access methods according to an application data request and performs data access to the data request to the database, whether the data request is being learned or executed A request processing unit that determines the data access, and when the request processing unit determines that the learning is in progress, data access is performed using the plurality of data access methods corresponding to the data request, and access is performed using the plurality of data access methods. An access time measurement unit that measures each time, a learning result storage unit that extracts the data access method having the shortest time in the access time measurement unit and learns as the fastest data access method for the data request; Above request processing Access execution processing that extracts the fastest data access method stored in the learning result storage unit for the data request and performs data access to output the request result And a data access device. 上記学習結果保存部は、上記1つのアプリケーションに対する複数の上記データリクエストの上記複数のデータアクセス方式で実行しそれぞれの合計時間を求め、上記合計時間が一番少ない上記データアクセス方式を上記1つのアプリケーションに対して最速となる最速データアクセス方式として決定して学習することを特徴とする請求項1に記載のデータアクセス装置。 The learning result storage unit executes the plurality of data requests for the one application by the plurality of data access methods, obtains a total time of each, and determines the data access method having the smallest total time as the one application. The data access apparatus according to claim 1, wherein learning is performed by determining the fastest data access method that is the fastest with respect to. 上記リクエスト処理部にて学習時として決定されると、上記アクセス時間計測部にてアクセス時間を計測するために実行されたデータアクセスのリクエスト結果を上記データリクエストのリクエスト結果として上記アプリケーションに出力することを特徴とする請求項1または請求項2に記載のデータアクセス装置。 When the request processing unit determines that it is during learning, the access time measurement unit outputs the data access request result executed to measure the access time to the application as the data request request result. The data access device according to claim 1, wherein the data access device is a data access device. 上記学習結果保存部は、上記アプリケーションの種別毎に上記最速データアクセス方式をそれぞれ学習することを特徴とする請求項1ないし請求項3のいずれかに記載のデータアクセス装置。 4. The data access device according to claim 1, wherein the learning result storage unit learns the fastest data access method for each type of the application. 上記学習結果保存部は、上記データリクエストの規則性毎に上記最速データアクセス方式をそれぞれ学習することを特徴とする請求項1ないし請求項4のいずれかに記載のデータアクセス装置。 The data access device according to any one of claims 1 to 4, wherein the learning result storage unit learns the fastest data access method for each regularity of the data request. 上記データリクエストの規則性を判断するリクエストパターン判定部を備え、上記学習結果保存部は、上記リクエストパターン判定部にて判定された規則性毎に上記最速データアクセス方式を学習することを特徴とする請求項5に記載のデータアクセス装置。 A request pattern determination unit for determining regularity of the data request, wherein the learning result storage unit learns the fastest data access method for each regularity determined by the request pattern determination unit; The data access device according to claim 5. アプリケーションのデータリクエストに応じて複数のデータアクセス方式から1つのデータアクセス方式を選択してデータベースに上記データリクエストに対するデータアクセスを実施するデータベースアクセス方法において、上記データリクエストに対して学習時か実行時かを決定するリクエスト処理手順と、上記リクエスト処理手順にて学習時であると決定されると上記データリクエストに対応する上記複数のデータアクセス方式にてデータアクセスを実施し上記複数のデータアクセス方式のアクセス時間をそれぞれ計測するアクセス時間計測手順と、上記アクセス時間計測手順にて一番短い時間を有するデータアクセス方式を抽出して上記データリクエストに対して最速データアクセス方式として学習する学習結果保存手順と、上記リクエスト処理部にて実行時であると決定されると、上記データリクエストに対して上記学習結果保存部に保存された上記最速データアクセス方式を抽出してデータアクセスを行いリクエスト結果を出力するアクセス実行時処理手順とを備えたことを特徴とするデータアクセス方法。 In a database access method in which one data access method is selected from a plurality of data access methods according to an application data request and data access to the data request is performed on the database, whether the data request is being learned or executed A request processing procedure for determining the request, and if it is determined that the learning is in the request processing procedure, the data access is performed by the plurality of data access methods corresponding to the data request, and the access of the plurality of data access methods is performed. An access time measuring procedure for measuring each time, a learning result storing procedure for extracting the data access method having the shortest time in the access time measuring procedure and learning as the fastest data access method for the data request; Above When it is determined that the execution time is in the est processing unit, access execution is performed to extract the fastest data access method stored in the learning result storage unit for the data request, perform data access, and output the request result A data access method comprising a time processing procedure.
JP2005365815A 2005-12-20 2005-12-20 Data access device and data access method Pending JP2007172097A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005365815A JP2007172097A (en) 2005-12-20 2005-12-20 Data access device and data access method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005365815A JP2007172097A (en) 2005-12-20 2005-12-20 Data access device and data access method

Publications (1)

Publication Number Publication Date
JP2007172097A true JP2007172097A (en) 2007-07-05

Family

ID=38298615

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005365815A Pending JP2007172097A (en) 2005-12-20 2005-12-20 Data access device and data access method

Country Status (1)

Country Link
JP (1) JP2007172097A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008269015A (en) * 2007-04-16 2008-11-06 Hitachi Ltd Storage system and its control method
WO2015092857A1 (en) * 2013-12-16 2015-06-25 株式会社 東芝 Data acquisition system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008269015A (en) * 2007-04-16 2008-11-06 Hitachi Ltd Storage system and its control method
WO2015092857A1 (en) * 2013-12-16 2015-06-25 株式会社 東芝 Data acquisition system
JP5795118B1 (en) * 2013-12-16 2015-10-14 株式会社東芝 Data acquisition system

Similar Documents

Publication Publication Date Title
JP6804668B2 (en) Block data validation method and equipment
US9785413B2 (en) Methods and apparatus to eliminate partial-redundant vector loads
US20230206953A1 (en) Reader Bias Based Locking Technique Enabling High Read Concurrency For Read-Mostly Workloads
US9665612B2 (en) Run-time decision of bulk insert for massive data loading
WO2021169386A1 (en) Graph data processing method, apparatus and device, and medium
KR20090127689A (en) Memory test device and testing method for memory
EP2778962B1 (en) Silo-aware databases
JP4208079B2 (en) Database server, program, recording medium, and control method
US11023234B2 (en) Method and system for restructuring of collections for synchronization
JP2007172097A (en) Data access device and data access method
CN114661442A (en) Processing method and device, processor, electronic device and storage medium
US20150095897A1 (en) Method and apparatus for converting programs
US20150286664A1 (en) Reducing blocking instances in parallel processing systems performing operations on trees
JP2018536230A (en) Cache access
JP5687603B2 (en) Program conversion apparatus, program conversion method, and conversion program
US20150347409A1 (en) Convert Command Into a BULK Load Operation
EP4281912A1 (en) Handling system-characteristics drift in machine learning applications
JP6333371B2 (en) Method for implementing bit arrays in cache lines
JP5586417B2 (en) Performance guarantee method and apparatus in stream data processing
Grambow et al. Dockerization impacts in database performance benchmarking
JP5266651B2 (en) Branch prediction apparatus and branch prediction method using local branch history
CN116187464B (en) Blind quantum computing processing method and device and electronic equipment
JP2014052725A (en) Migration processing apparatus, information processing system, migration processing method, and program
US20240160446A1 (en) Predicting a Vector Length Associated with a Configuration Instruction
US20240193453A1 (en) Logical qubit arrangement architecture based on checkerboard and method of moving magic qubit thereof