Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3260587B2 - Time series data management method - Google Patents
[go: Go Back, main page]

JP3260587B2 - Time series data management method - Google Patents

Time series data management method

Info

Publication number
JP3260587B2
JP3260587B2 JP11410895A JP11410895A JP3260587B2 JP 3260587 B2 JP3260587 B2 JP 3260587B2 JP 11410895 A JP11410895 A JP 11410895A JP 11410895 A JP11410895 A JP 11410895A JP 3260587 B2 JP3260587 B2 JP 3260587B2
Authority
JP
Japan
Prior art keywords
time
data
search
series data
latest
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
Application number
JP11410895A
Other languages
Japanese (ja)
Other versions
JPH08287104A (en
Inventor
直子 山田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP11410895A priority Critical patent/JP3260587B2/en
Publication of JPH08287104A publication Critical patent/JPH08287104A/en
Application granted granted Critical
Publication of JP3260587B2 publication Critical patent/JP3260587B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は時系列データ管理方式に
関し、特にリレーショナルデータベースを中核とするオ
ンライン情報システムにおいてリレーショナルデータベ
ースの任意の時点の内容を基に行われる統計業務等に有
効となる時系列データ(任意の複数時点のリレーショナ
ルデータベースの内容)の保有機能および検索機能を有
する時系列データ管理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a time-series data management system, and more particularly to a time-series data system which is effective for statistical work and the like based on contents of a relational database at an arbitrary time in an online information system having a relational database as a core. The present invention relates to a time-series data management method having a function of retaining data (contents of a relational database at arbitrary plural times) and a function of searching.

【0002】[0002]

【従来の技術】従来、リレーショナルデータベースの内
容に関する統計処理では、そのソースとなる時系列デー
タを各時点毎に採取して管理する必要があり、時系列デ
ータの採取は、データ矛盾を避けるためにリレーショナ
ルデータベースへの更新業務を一時的に停止してデータ
を別ファイルに退避する等の方法により行われていた。
2. Description of the Related Art Conventionally, in statistical processing relating to the contents of a relational database, it is necessary to collect and manage time-series data as a source at each point in time, and to collect time-series data in order to avoid data inconsistency. This has been done by temporarily stopping the update of the relational database and saving the data to another file.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の方法で
は、統計処理に必要な時系列データをリレーショナルデ
ータベースの各時点毎に採取する必要があったので、大
規模なオンライン情報システムにおいてはその運用およ
び管理が煩雑になるという問題点があった。
In the above-described conventional method, it is necessary to collect time-series data required for statistical processing at each point in a relational database. In addition, there is a problem that management becomes complicated.

【0004】また、時系列データの採取のためにリレー
ショナルデータへの更新業務を停止する必要があったの
で、オンライン情報システムの連続無停止動作環境下で
統計業務を行うことは不可能であるという問題点があっ
た。
[0004] Further, since it is necessary to stop the update work to relational data in order to collect time series data, it is impossible to perform statistical work in a continuous non-stop operation environment of an online information system. There was a problem.

【0005】本発明の目的は、上述の点に鑑み、リレー
ショナルデータベースを中核とするオンライン情報シス
テムの連続無停止運転およびリレーショナルデータベー
スの運用の簡易化を図るために、リレーショナルデータ
ベースへのアクセスを継続しながら時系列データを自動
的に採取するとともに時系列データへの容易なアクセス
を可能とする時系列データ管理方式を提供することにあ
る。
SUMMARY OF THE INVENTION In view of the above, it is an object of the present invention to continuously access a relational database in order to achieve continuous nonstop operation of an online information system centered on a relational database and to simplify the operation of the relational database. Another object of the present invention is to provide a time-series data management system that automatically collects time-series data while enabling easy access to the time-series data.

【0006】なお、従来技術として、インバートファイ
ルにより検索を処理するデータベース管理方法におい
て、追加位置ポインタおよび取出位置ポインタを用いる
ことによりアプリケーションプログラム側で時系列デー
タの管理を行わなくても済むようにしたデータベース管
理方法が知られている(特開平4−354036号公報
参照)。しかし、このデータベース管理方法は、本願発
明のように、任意の時点の時系列データへのアクセスを
可能とするようなものではない。
As a conventional technique, in a database management method for processing a search using an inverted file, the use of an additional position pointer and an extraction position pointer eliminates the need to manage time-series data on the application program side. A database management method is known (see JP-A-4-354036). However, this database management method does not allow access to time-series data at an arbitrary time point as in the present invention.

【0007】[0007]

【課題を解決するための手段】本発明の時系列データ管
理方式は、開始時点と終了時点とユーザデータとが列と
して定義され、表構造を有するデータ表であって、現時
点のユーザデータの開始時点と、初期値としての最大値
を設定した終了時点と、当該ユーザデータである最新デ
ータとを格納した最新データ表と、前記最新データ表と
同一の表構造を有するデータ表であって、最新データ表
の更新前データを時系列データとして保有した時系列デ
ータ表とを含むリレーショナルデータベースと、最新デ
ータを時系列データ表へ保有するか否かを判断する基準
となる時点である保有時点を設定した最新データの更新
要求があると、当該最新データの開始時点が前記保有時
点よりも前の場合には、当該最新データを時系列データ
として前記時系列データ表に保有することが必要である
と判定し、それ以外の場合には、当該最新データを時系
列データとして前記時系列データ表に保有することが不
要であると判定する保有判定手段と、前記保有判定手段
により前記時系列データ表への保有が必要と判定された
場合に、当該最新データをその終了時点に前記保有時点
を設定した上でその開始時点と共に時系列データとして
前記時系列データ表に保有する時系列データ保有手段
と、前記時系列データ保有手段により前記時系列データ
表への保有が行われると当該最新データをその開始時点
に前記保有時点を設定した上で当該更新要求に従い更新
し、一方、前記保有判定手段により前記時系列データ表
への保有が不要と判定された場合に、当該最新データ
を前記更新要求に従い更新する最新データ更新手段
と、検索対象時点を設定したデータ検索要求があると、
前記検索対象時点が初期値の場合は最新データの検索が
指示されていると判断し、前記検索対象時点が初期値以
外の場合は当該検索対象時点で有効なデータの検索が指
示されていると判断する検索時点判定手段と、この検索
時点判定手段により最新データの検索が指示されている
と判断された場合に前記最新データ表について当該検索
要求に従い検索を行う最新データ検索手段と、前記検索
時点判定手段により当該検索対象時点で有効なデータの
検索が指示されていると判断された場合に前記最新デ
ータ表および前記時系列データ表から開始時点より後で
終了時点以前に前記検索対象時点が含まれるデータを抽
出して時系列データ集合を生成する時系列データ抽出手
段と、前記時系列データ集合について前記検索要求に従
い検索を行う時系列データ検索手段とを有する。
Time series data management method of the present invention In order to achieve the above object, according to a start point and the end point and the user data is defined as a column, a data table having a table structure, present time
Start point of user data of point and maximum value as initial value
And the latest data that is the user data.
A latest data table storing the latest data table, and a data table having the same table structure as the latest data table.
A relational database containing a time-series data table that holds the pre-update data as time-series data, and the latest data
For judging whether to retain data in the time-series data table
When there is a request for updating the latest data that sets the holding time that is the time when the latest data is started before the holding time, the latest data is used as time-series data and the time-series data table is used. determines that it is necessary to hold the, otherwise, the determining held determination means that it is not necessary to possess the time-series data table the latest data as time-series data, the holdings When it is determined that the holding in the time-series data table is necessary by the determination unit, the latest data is set to the holding time at the end time, and the time-series data is stored in the time-series data table as time-series data together with the start time. set a series data retention means when held by the holders when the latest data when held is performed to the time series data table to its starting point by the time-series data retention means And updated in accordance with the update request on the, other hand, if held to the time-series data table is determined to be unnecessary by the possession determination means, of the latest data
The latest data updating means for updating only the data in accordance with the update request, and when there is a data search request that sets a search target time,
If the search target time is the initial value, it is determined that the search for the latest data has been instructed.If the search target time is other than the initial value, it is determined that the search for valid data has been instructed at the search target time. Searching time determining means for determining, a latest data searching means for performing a search for the latest data table in accordance with the search request when the searching of the latest data is instructed by the searching time determining means; If the search for valid data in the search target point is determined to be instructed by the determination means, the latest data tables and the later <br/> end earlier than the start time from the time series data table A time-series data extracting means for extracting data including a search target time point to generate a time-series data set, and performing a search on the time-series data set in accordance with the search request And a series data retrieval means.

【0008】[0008]

【作用】本発明の時系列データ管理方式では、保有判定
手段が、最新データを時系列データ表へ保有するか否か
を判断する基準となる時点である保有時点を設定した最
新データの更新要求があると、当該最新データの開始時
点が保有時点よりも前の場合には、当該最新データを時
系列データとして時系列データ表に保有することが必要
であると判定し、それ以外の場合には、当該最新データ
を時系列データとして時系列データ表に保有することが
不要であると判定し、時系列データ保有手段が、保有判
定手段により時系列データへの保有が必要と判定された
場合に、当該最新データ表をその終了時点に保有時点を
設定した上でその開始時点と共に時系列データとして時
系列データ表に保有し、最新データ更新手段が、時系列
データ保有手段により時系列データ表への保有が行われ
ると当該最新データをその開始時点に保有時点を設定し
た上で当該更新要求に従い更新し、一方、保有判定手段
により時系列データ表への保有が不要と判定された場合
に、当該最新データのみを更新要求に従い更新し、検索
時点判定手段が、検索対象時点を設定したデータ検索要
求があると、検索対象時点が初期値の場合は最新データ
の検索が指示されていると判断し、検索対象時点が初期
値以外の場合は当該検索対象時 点で有効なデータの検索
が指示されていると判断し、最新データ検索手段が、検
索時点判定手段により最新データの検索が指示されてい
ると判断された場合に最新データ表について当該検索要
求に従い検索を行い、時系列データ抽出手段が、検索時
点判定手段により当該検索対象時点で有効なデータの検
索が指示されていると判断された場合に、最新データ表
および時系列データ表から開始時点より後で終了時点以
前に検索対象時点が含まれるデータを抽出して時系列デ
ータ集合を生成し、時系列データ検索手段が、時系列デ
ータ集合について検索要求に従い検索を行う
According to the time series data management method of the present invention, possession judgment is performed.
Whether the instrument retains the latest data in the time series data table
The holding time, which is the reference time for determining
When there is a request to update new data, at the start of the latest data
If the point is before the holding time, the latest data
Must be stored in time series data table as series data
Is determined, otherwise, the latest data
Can be stored in the time-series data table as time-series data.
Is determined to be unnecessary, and the time-series data holding
Has been determined to be necessary for time-series data
In this case, the latest data table will be
Set as time series data with the start time
In the series data table, the latest data updating means
Data is retained in the time-series data table by the data retention means.
Then, the latest data is set as the holding time at the start time.
And then updates it in accordance with the update request.
Is determined to be unnecessary in the time series data table
Then, update only the latest data according to the update request and search
The point-of-time judging means requires a data search
Request, if the search target time is the initial value, the latest data
Is determined to have been instructed, and the search target
Search of valid data at the time of the search target point otherwise the value
Has been instructed, and the latest data search means
The search for the latest data is instructed by the search time determination means.
If it is determined that the search
Search according to the request, and the time-series data
The point determination means detects valid data at the
When it is determined that the search is instructed, the latest data table
And from the time series data table
Extract data that includes the search target time before
Data set, and the time-series data search means
The data set is searched according to the search request .

【0009】[0009]

【実施例】次に、本発明について図面を参照して詳細に
説明する。
Next, the present invention will be described in detail with reference to the drawings.

【0010】図1は、本発明の一実施例に係る時系列デ
ータ管理方式の構成を示すブロック図である。本実施例
の時系列データ管理方式は、最新データ更新要求1と、
保有時点2と、保有判定手段3と、時系列データ保有手
段4と、最新データ更新手段5と、リレーショナルデー
タベース6と、データ検索要求9と、最新データ検索手
段10と、検索時点判定手段11と、時系列データ抽出
手段12と、時系列データ集合13と、時系列データ検
索手段14と、検索対象時点15とから構成されてい
る。リレーショナルデータベース6は、最新データ表7
および時系列データ表8を含む。保有時点2は、最新デ
ータを時系列データ表へ保有するか否かを判断する基準
となる任意の時点であり、最新データ更新要求時に利用
者により設定されるものである。
FIG. 1 is a block diagram showing a configuration of a time-series data management system according to one embodiment of the present invention. The time-series data management method according to the present embodiment includes a latest data update request 1,
Holding time 2, holding determining means 3, time-series data holding means 4, latest data updating means 5, relational database 6, data search request 9, latest data searching means 10, search time determining means 11, , A time-series data extraction unit 12, a time-series data set 13, a time-series data search unit 14, and a search target time point 15. The relational database 6 has the latest data table 7
And a time series data table 8. Holding date 2 is the latest data
This is an arbitrary time point that serves as a criterion for judging whether or not the data is stored in the time-series data table, and is set by the user at the time of the latest data update request.

【0011】図2を参照すると、最新データ表7および
時系列データ表8には、開始時点列21,終了時点列2
2およびユーザデータ列23が定義されている。
Referring to FIG. 2, the latest data table 7 and the time series data table 8 have a start time column 21 and an end time column 2 respectively.
2 and a user data string 23 are defined.

【0012】図3を参照すると、本実施例の時系列デー
タ管理方式の最新データ更新時の処理は、開始時点/保
有時点比較ステップS101と、更新前イメージ取得ス
テップS102と、時系列データ表挿入ステップS10
3と、最新データ表更新ステップS104と、最新デー
タ表更新ステップS105とからなる。
Referring to FIG. 3, the processing for updating the latest data in the time-series data management method according to the present embodiment includes a start time / holding time comparison step S101, a pre-update image acquisition step S102, a time-series data table insertion. Step S10
3, a latest data table update step S104, and a latest data table update step S105.

【0013】図4を参照すると、本実施例の時系列デー
タ管理方式のデータ検索時の処理は、検索対象時点/初
期値比較ステップS201と、時系列データ集合作成ス
テップS202と、時系列データ集合検索ステップS2
03と、最新データ表検索ステップS204とからな
る。
Referring to FIG. 4, the processing at the time of data search in the time-series data management method of this embodiment includes a search target time / initial value comparison step S201, a time-series data set creation step S202, a time-series data set Search step S2
03 and the latest data table search step S204.

【0014】次に、このように構成された本実施例の時
系列データ管理方式の動作について説明する。
Next, the operation of the time series data management system according to the present embodiment configured as described above will be described.

【0015】(1) まず、最新データ更新要求1によ
り最新データ表7のデータ更新が指示された場合の動作
について説明する。
(1) First, the operation when the data update of the latest data table 7 is instructed by the latest data update request 1 will be described.

【0016】利用者は、最新データ更新要求1を指示す
る際に当該最新データの開始時点以降の任意の時点を保
有時点2に設定することにより、最新データ更新時に時
系列データを保有することを指示する。
When the user instructs the latest data update request 1, the user sets an arbitrary time after the start time of the latest data as the holding time 2 so that the time series data is held when the latest data is updated. To instruct.

【0017】最新データ更新要求1があると、保有判定
手段3は、最新データ表7の更新対象の最新データの開
始時点と保有時点2とを比較し(ステップS101)、
開始時点が保有時点2より前の場合には時系列データの
保有が必要であると判定する。それ以外の場合には、保
有判定手段3は、保有時点2が当該最新データの有効期
間外である、または保有時点2における時系列データの
保有がすでに行われていると判断する。
When there is the latest data update request 1, the possession judging means 3 compares the start time of the latest data to be updated in the latest data table 7 with the possession time 2 (step S101).
If the start time is before the holding time 2, it is determined that the holding of the time-series data is necessary. In other cases, the holding determination unit 3 determines that the holding time 2 is outside the validity period of the latest data, or that the time-series data at the holding time 2 has already been held.

【0018】保有判定手段3により時系列データの保有
が必要と判断された場合、時系列データ保有手段4は、
最新データ表7から更新対象の最新データの更新前イメ
ージを取得し(ステップS102)、終了時点に保有時
点2を設定して時系列データとして時系列データ表8に
挿入する(ステップS103)。
When the possession determining means 3 determines that the possession of the time series data is necessary, the time series data retaining means 4
The pre-update image of the latest data to be updated is acquired from the latest data table 7 (step S102), and the possession time point 2 is set as the end point and inserted into the time-series data table 8 as time-series data (step S103).

【0019】さらに、最新データ更新手段5は、更新対
象の最新データの開始時点に保有時点2を設定し、最新
データ表7の該当データを更新する(ステップS10
4)。
Further, the latest data updating means 5 sets the holding time 2 as the start time of the latest data to be updated, and updates the corresponding data in the latest data table 7 (step S10).
4).

【0020】一方、保有判定手段3により時系列データ
の保有が必要ないと判断された場合、最新データ更新手
段5は、最新データ表7の該当データを更新する(ステ
ップS105)。
On the other hand, when the possession judging means 3 judges that the holding of the time-series data is not necessary, the latest data updating means 5 updates the corresponding data in the latest data table 7 (step S105).

【0021】(2) 次に、データ検索要求9によりリ
レーショナルデータベース6のデータ検索が指示された
場合の動作について説明する。
(2) Next, the operation when the data search request 9 instructs data search of the relational database 6 will be described.

【0022】利用者は、データ検索要求9を指示する際
に検索対象時点15に任意の時点を設定することによ
り、その時点に有効な時系列データを検索することを指
示する。あるいは、検索対象時点15に初期値を設定す
ることにより、最新データを検索することを指示する。
When the user designates the data search request 9, the user designates an arbitrary time as the search target time 15, thereby instructing to search for time-series data valid at that time. Alternatively, by setting an initial value at the search target time point 15, an instruction is given to search for the latest data.

【0023】データ検索要求9があると、検索時点判定
手段11は、検索対象時点15を参照し、その値が初期
値の場合は最新データの検索が指示されていると判断し
(ステップS201でイエス)、最新データ検索手段1
0により最新データ表7より最新データを検索する(ス
テップS204)。
When the data search request 9 is received, the search time determination means 11 refers to the search target time 15 and, if the value is an initial value, determines that the search for the latest data is instructed (step S201). Yes), latest data search means 1
0 is searched for the latest data from the latest data table 7 (step S204).

【0024】他方、検索対象時点15が初期値以外の場
合は、検索時点判定手段11は、時系列データの検索が
指示されていると判断し(ステップS201でノー)、
検索対象時点15が示す時点に有効であった時系列デー
タのみを時系列データ抽出手段12により抽出する。す
なわち、時系列データ抽出手段12は、最新データ表7
および時系列データ表8から開始時点が検索対象時点1
5より前で、かつ終了時点が検索対象時点15以後であ
るデータを抽出し、時系列データ集合13を作成する
(ステップS202)。
On the other hand, if the search target time point 15 is other than the initial value, the search time point determination means 11 determines that the search for the time-series data is instructed (No in step S201),
Only the time-series data that was valid at the time indicated by the search target time 15 is extracted by the time-series data extraction means 12. That is, the time-series data extraction means 12 updates the latest data table 7
And the start time from the time series data table 8 is the search target time 1
Data that is before 5 and whose end time is after the search target time 15 is extracted, and a time-series data set 13 is created (step S202).

【0025】次に、時系列データ検索手段14は、時系
列データ集合13を用いてデータ検索要求9の指示に従
った検索処理を行う(ステップS203)。
Next, the time-series data search means 14 performs a search process using the time-series data set 13 in accordance with the instruction of the data search request 9 (step S203).

【0026】具体的な例として、図5および図6を参照
してより詳しく説明する。
A specific example will be described in more detail with reference to FIGS.

【0027】図5は、統計処理などの基準となる時点3
2,最新データ更新時に設定すべき保有時点2および最
新データ更新要求1の指示による最新データ更新タイミ
ング33の関係の一例を示す図である。
FIG. 5 shows time point 3 serving as a reference for statistical processing and the like.
2 is a diagram showing an example of the relationship between the holding point 2 to be set at the time of updating the latest data and the latest data update timing 33 according to the instruction of the latest data update request 1. FIG.

【0028】図6は、最新データ更新要求1に対応して
図5ののタイミングで最新データ表7を更新した結果
のリレーショナルデータベース6の内容と、データ検索
要求9に対応して最新データまたは時系列データを検索
する場合に検索対象となるデータ内容との一例を示す図
である。なお、最新データ表7の終了時点列22の値H
Vは、データ挿入時の初期値として最大値(HIGH−
VALUE)が設定されていることを示す。
FIG. 6 shows the contents of the relational database 6 as a result of updating the latest data table 7 at the timing of FIG. 5 corresponding to the latest data update request 1 and the latest data or time corresponding to the data search request 9. FIG. 9 is a diagram illustrating an example of data contents to be searched when searching for series data. The value H in the end time column 22 of the latest data table 7
V is the maximum value (HIGH-
VALUE) is set.

【0029】(1) まず、最新データ更新時の動作に
ついて説明する。
(1) First, the operation at the time of updating the latest data will be described.

【0030】図5にあるように、例えば毎月末の時系列
データを保有する場合、利用者は1994年7月1日0
時から1994年8月1日0時直前までの期間は、保有
時点2に9406という値を、また8月1日0時から9
月1日0時直前までの期間は、保有時点2に9407と
いう値を設定する。
As shown in FIG. 5, for example, when time-series data at the end of each month is held , the user is
During the period from time to immediately before 0:00 on August 1, 1994, the value of 9406 was held at holding time 2 and 9
In the period immediately before 0:00 on the first day of the month, a value of 9407 is set at the holding point 2.

【0031】図6で、最新データ更新要求1が図5の
のタイミングで最新データ45に対する更新を指示した
場合、保有判定手段3は、保有時点2と最新データ45
内の開始時点とを比較する。いま、最新データ45内の
開始時点は9407であり、保有時点2が示す9409
時点の時系列データが保有されていないことが確認され
るため、時系列データ保有手段4は、最新データ45の
更新前イメージを最新データ表7から取得し、終了時点
に保有時点2の値9409を設定し、時系列データ51
として時系列データ表8に挿入する。次に、最新データ
更新手段5は、最新データ45の開始時点に保有時点2
の値9409を設定して最新データ表7の最新データ4
5を更新する。
In FIG. 6, when the latest data update request 1 instructs to update the latest data 45 at the timing shown in FIG.
With the start time in Now, the starting point in the latest data 45 is 9407, and the holding point 2 indicates 9409
Since it is confirmed that the time-series data at the time is not held, the time-series data holding unit 4 acquires the pre-update image of the latest data 45 from the latest data table 7 and, at the end time, the value 9409 of the holding time 2. Is set, and the time-series data 51 is set.
In the time series data table 8. Next, the latest data updating means 5 sets the holding time 2 at the start time of the latest data 45.
Of the latest data 4 of the latest data table 7 by setting the value 9409 of
Update 5

【0032】次に、最新データ更新要求1が図5のの
タイミングで最新データ45に対する更新を指示した場
合、保有判定手段3は、保有時点2と最新データ45内
の開始時点とを比較するが、この場合は、最新データ4
5内の開始時点が保有時点2と同じ9409時点を示し
ているため、時系列データ保有手段4による時系列デー
タの保有を行わず、最新データ更新手段5により最新デ
ータ45の更新のみを行う。
Next, when the latest data update request 1 instructs to update the latest data 45 at the timing shown in FIG. 5, the possession judging means 3 compares the possession time 2 with the start time in the latest data 45. , In this case, the latest data 4
Since the start time in 5 indicates the time 9409, which is the same as the holding time 2, the time-series data holding means 4 does not hold the time-series data, and only the latest data updating means 5 updates the latest data 45.

【0033】(2) 次に、データ検索時の動作につい
て説明する。
(2) Next, the operation at the time of data search will be described.

【0034】まず、利用者は、最新データを検索するた
め、検索対象時点15に初期値0を設定してデータ検索
要求9を指示したとする。検索時点判定手段11は、検
対象時点15を参照し、初期値0が設定されているの
で、最新データの検索が指示されたと判断する。このと
き、最新データ検索手段10は、最新データ表7に対し
てデータ検索要求9に従った検索処理を行う。
First, it is assumed that the user designates a data search request 9 by setting an initial value 0 at a search target time point 15 in order to search for the latest data. Since the initial value 0 is set with reference to the search target time point 15, the search time point determination means 11 determines that the search for the latest data has been instructed. At this time, the latest data search means 10 performs a search process on the latest data table 7 in accordance with the data search request 9.

【0035】次に、利用者は、1994年7月末時点の
時系列データを検索するため、検索対象時点15に94
07を設定してデータ検索要求9を指示したとする。検
索時点判定手段11は、検索対象時点15を参照し、9
407時点の時系列データの検索が指示されたと判断す
る。このとき、時系列データ抽出手段12は、最新デー
タ表7および時系列データ表8内のデータのうち、開始
時点が検索対象時点の値9407より小さく、かつ終了
時点が検索対象時点の値9407以上の最新データ46
および47と時系列データ48および49とを抽出し、
時系列データ集合13を作成する。さらに、時系列デー
タ検索手段14は、時系列データ集合13に対してデー
タ検索要求9に従った検索処理を行う。
Next, in order to search the time series data as of the end of July 1994, the user sets the search target time point 15 to 94.
It is assumed that 07 is set and the data search request 9 is instructed. The search time determination means 11 refers to the search target time 15 and
It is determined that the search for the time-series data at time 407 has been instructed. At this time, among the data in the latest data table 7 and the time-series data table 8, the time-series data extraction unit 12 determines that the start time is smaller than the value 9407 at the search target time and the end time is not less than the value 9407 at the search target time. Latest data 46
And 47 and time series data 48 and 49 are extracted,
A time series data set 13 is created. Further, the time-series data search unit 14 performs a search process on the time-series data set 13 in accordance with the data search request 9.

【0036】[0036]

【発明の効果】以上説明したように本発明は、リレーシ
ョナルデータベース内に最新データを格納する最新デー
タ表と時系列データを格納する時系列データ表とを用意
し、最新データ表および時系列データ表内に開始時点列
および終了時点列を設けるとともに、保有判定手段,時
系列データ保有手段,最新データ更新手段,検索時点判
定手段,最新データ検索手段,時系列データ抽出手段お
よび時系列データ検索手段を設けたことにより、最新デ
ータについては従来のアクセス性能や利用者インタフェ
ースを保持しながら、時系列データの管理,運用および
それを用いた統計業務の簡易化を図ることができるとい
う効果がある。
As described above, according to the present invention, the latest data table for storing the latest data and the time series data table for storing the time series data are prepared in the relational database, and the latest data table and the time series data table are prepared. The start time point column and the end time point column are provided within the, and the possession determining means, the time series data retaining means, the latest data updating means, the retrieval time judging means, the latest data retrieving means, the time series data extracting means and the time series data retrieving means are provided. With the provision, it is possible to simplify the management and operation of the time-series data and the statistical work using the same while maintaining the conventional access performance and user interface for the latest data.

【0037】また、時系列データを最新データの更新時
に自動採取することができ、リレーショナルデータベー
スを中核とするオンライン情報システムにおいて、連続
無停止動作環境下でリレーショナルデータベースの更新
業務とそのリレーショナルデータベースを用いた統計業
務とを同時に実行することが可能になるという効果があ
る。
In addition, time series data can be automatically collected when the latest data is updated. In an online information system having a relational database as a core, the relational database update operation and the relational database can be used in a continuous nonstop operation environment. There is an effect that it is possible to simultaneously execute the statistical work that has been performed.

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

【図1】本発明の一実施例に係る時系列データ管理方式
の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a time-series data management system according to one embodiment of the present invention.

【図2】図1中の最新データ表および時系列データ表の
データ構造の具体例を示す図である。
FIG. 2 is a diagram showing a specific example of a data structure of a latest data table and a time-series data table in FIG.

【図3】本実施例の時系列データ管理方式の最新データ
更新時の処理を示す流れ図である。
FIG. 3 is a flowchart illustrating processing at the time of updating the latest data in the time-series data management method according to the present embodiment.

【図4】本実施例の時系列データ管理方式のデータ検索
時の処理を示す流れ図である。
FIG. 4 is a flowchart illustrating a process at the time of data search in the time-series data management method according to the present embodiment.

【図5】図1中の保有時点と最新データ更新タイミング
との関係の一例を示す図である。
FIG. 5 is a diagram illustrating an example of a relationship between a possession point and a latest data update timing in FIG. 1;

【図6】本実施例の時系列データ管理方式により最新デ
ータ更新およびデータ検索が行われた際のリレーショナ
ルデータベースのデータ内容の具体例を示す図である。
FIG. 6 is a diagram illustrating a specific example of data contents of a relational database when the latest data update and data search are performed by the time-series data management method according to the present embodiment.

【符号の説明】[Explanation of symbols]

1 最新データ更新要求 2 保有時点 3 保有判定手段 4 時系列データ保有手段 5 最新データ更新手段 6 リレーショナルデータベース 7 最新データ表 8 時系列データ表 9 データ検索要求 10 最新データ検索手段 11 検索時点判定手段 12 時系列データ抽出手段 13 時系列データ集合 14 時系列データ検索手段 15 検索対象時点 21 開始時点列 22 終了時点列 23 ユーザデータ列 32 基準となる時点 33 最新データ更新タイミング 45,46,47 最新データ 48,49,51 時系列データ1 Latest data update request 2 Holding time 3 Holding judgment means 4 Time series data holding means 5 Latest data updating means 6 Relational database 7 Latest data table 8 Time series data table 9 Data search request 10 Latest data search means 11 Search time judgment means 12 Time series data extraction means 13 Time series data set 14 Time series data search means 15 Search target time 21 Start time sequence 22 End time sequence 23 User data sequence 32 Reference time 33 Latest data update timing 45, 46, 47 Latest data 48 , 49,51 Time series data

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G11B 17/30 国内特許文献 外国特許文献 非特許文献Continuation of the front page (58) Fields investigated (Int.Cl. 7 , DB name) G11B 17/30 Japanese patent literature Foreign patent literature Non-patent literature

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 開始時点と終了時点とユーザデータとが
列として定義され、表構造を有するデータ表であって、
現時点のユーザデータの開始時点と、初期値としての最
大値を設定した終了時点と、当該ユーザデータである最
新データとを格納した最新データ表と、前記最新データ
表と同一の表構造を有するデータ表であって、最新デー
タ表の更新前データを時系列データとして保有した時系
列データ表とを含むリレーショナルデータベースと、最新データを時系列データ表へ保有するか否かを判断す
る基準となる時点である保有時点を設定した 最新データ
の更新要求があると、当該最新データの開始時点が前記
保有時点よりも前の場合には、当該最新データを時系列
データとして前記時系列データ表に保有することが必要
であると判定し、それ以外の場合には、当該最新データ
を時系列データとして前記時系列データ表に保有するこ
とが不要であると判定する保有判定手段と、前記 保有判定手段により前記時系列データ表への保有が
必要と判定された場合に、当該最新データをその終了時
点に前記保有時点を設定した上でその開始時点と共に
系列データとして前記時系列データ表に保有する時系列
データ保有手段と、 前記時系列データ保有手段により前記時系列データ表へ
の保有が行われると当該最新データをその開始時点に前
記保有時点を設定した上で当該更新要求に従い更新し、
一方、前記保有判定手段により前記時系列データ表への
保有が不要と判定された場合に、当該最新データのみ
前記更新要求に従い更新する最新データ更新手段と、 検索対象時点を設定したデータ検索要求があると、前記
検索対象時点が初期値の場合は最新データの検索が指示
されていると判断し、前記検索対象時点が初期値以外の
場合は当該検索対象時点で有効なデータの検索が指示さ
れていると判断する検索時点判定手段と、 この検索時点判定手段により最新データの検索が指示さ
れていると判断された場合に前記最新データ表について
当該検索要求に従い検索を行う最新データ検索手段と、 前記検索時点判定手段により当該検索対象時点で有効な
データの検索が指示されていると判断された場合に
記最新データ表および前記時系列データ表から開始時点
より後で終了時点以前に前記検索対象時点が含まれるデ
ータを抽出して時系列データ集合を生成する時系列デー
タ抽出手段と、 前記時系列データ集合について前記検索要求に従い検索
を行う時系列データ検索手段とを有することを特徴とす
る時系列データ管理方式。
1. A data table having a table structure in which a start time, an end time, and user data are defined as columns, and
The starting point of the current user data and the initial value
The end point when the large value is set and the maximum
The latest data table which stores the new data, a data table having the latest data table the same table structure, the latest data
A relational database that includes a time-series data table that holds the data before update of the data table as time-series data, and determines whether to keep the latest data in the time-series data table
If there is a request to update the latest data that sets the holding time, which is the reference time, if the start time of the latest data is earlier than the holding time, the latest data is used as the time-series data and It is determined that it is necessary to hold in the data table, otherwise, holding determination means that determines that it is not necessary to hold the latest data as time-series data in the time-series data table, If it is determined by the holding determination means that the holding in the time-series data table is necessary, the latest data is set to the holding time at the end time and the time-series data is set as time-series data together with the start time. Time-series data holding means to hold the table, and when the time-series data holding means holds the data in the time-series data table, the latest data is stored at the start time. After setting the points, update according to the update request,
On the other hand, when the holding determination unit determines that the holding in the time-series data table is unnecessary, the latest data updating unit that updates only the latest data in accordance with the update request; and a data search request that sets a search target time. When the search target time is the initial value, it is determined that the search for the latest data is instructed. When the search target time is other than the initial value, the search for valid data at the search target time is instructed. Search time determination means for determining that the latest data table has been instructed by the search time determination means, and a latest data search means for performing a search in accordance with the search request for the latest data table , when the search for valid data in the search target point is determined to be instructed by the searching time determining means, the latest data table and the time-based The starting point from the data table
A time-series data extraction unit that extracts data including the search target time later and before an end time to generate a time-series data set; and a time-series data search that searches the time-series data set according to the search request. Means for managing time-series data.
JP11410895A 1995-04-17 1995-04-17 Time series data management method Expired - Fee Related JP3260587B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11410895A JP3260587B2 (en) 1995-04-17 1995-04-17 Time series data management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11410895A JP3260587B2 (en) 1995-04-17 1995-04-17 Time series data management method

Publications (2)

Publication Number Publication Date
JPH08287104A JPH08287104A (en) 1996-11-01
JP3260587B2 true JP3260587B2 (en) 2002-02-25

Family

ID=14629332

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11410895A Expired - Fee Related JP3260587B2 (en) 1995-04-17 1995-04-17 Time series data management method

Country Status (1)

Country Link
JP (1) JP3260587B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5068350B2 (en) * 2010-08-10 2012-11-07 ヤフー株式会社 Data processing apparatus, method and program
EP3249549B1 (en) * 2015-01-22 2020-03-18 Mitsubishi Electric Corporation Time series data search device and time series data search program
JP6608544B2 (en) * 2016-12-02 2019-11-20 株式会社日立製作所 Data processing system
JP7704702B2 (en) * 2022-03-16 2025-07-08 株式会社日立製作所 Data migration management device, data migration management method and data migration management system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3132613B2 (en) * 1993-07-13 2001-02-05 カシオ計算機株式会社 Personnel file processing apparatus and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
NEC技報、Vol.46,No.8/1993,p25〜p29「DIOSによる24時間運転

Also Published As

Publication number Publication date
JPH08287104A (en) 1996-11-01

Similar Documents

Publication Publication Date Title
JP4214712B2 (en) Database page allocation processing method
JPH1049414A (en) Version management apparatus and version management method
JP3260587B2 (en) Time series data management method
JP2624170B2 (en) Logical deletion data physical deletion method
JP3239924B2 (en) Relational database access control method
JP2933486B2 (en) How to search all databases simultaneously
JP3039632B2 (en) Data management method
JP2870308B2 (en) Database management system
JP2828354B2 (en) Database management device
JPH09146968A (en) Document search method
JPH0744426A (en) File system file management method
JP3398672B2 (en) Intermediate data storage device
JPH02159646A (en) Database data preservation method
JPH0398110A (en) Multiplex data reading system
JPH0447367A (en) Data base retrieval system
JPH1131148A (en) Full-text search apparatus and method
JPH05189482A (en) Information retrieval device
JPH0969124A (en) Patient list creation system
JPH07230399A (en) File restoring system
JPH03225558A (en) Data retrieving system
JPH07325743A (en) Information processing apparatus and information processing method
JPH0329039A (en) Data control system
JPS62209617A (en) Retrieving system for knowledge expressing frame
JPH05257777A (en) Data base region securing system
JPH02137036A (en) Data base updating system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees