Combined query cache establishment method and system for time series data, combined query cache method and system for time series data
A time series, time data technology, applied in memory systems, electrical digital data processing, special data processing applications, etc., can solve problems such as low efficiency of time series data
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] Such as figure 1 As shown, the metadata of Query takes QueryPattern as an organizational unit, and there are two files in the storage unit of a query result (here and in the subsequent expressions of this article, the files can be stored on the disk, or a section in the memory. Structured data), the first file is a unique identification file (file 1), which is used to store the TimeSeriesKey of all TimeSeries in the Query result, and the second file is the query time range file (file 2), which is used to store the QueryTimeRange of the Query Information collection, such as Query is to query the information from 3 o’clock to 5 o’clock, then after it is cached, add a record [3,5] to the time information file of this Query, indicating that this Query has a cache from 3 o’clock to 5 o’clock, then download Second, if you query the data from 1 o'clock to 6 o'clock, the data between 3 o'clock and 5 o'clock can be obtained from the cache.
[0038] Such as figure 2 As shown, ...
Embodiment 2
[0051] Such as Figure 4 As shown, the present invention also provides a method for combined query caching of time series data, including:
[0052] Step S21, when inquiring from the cache whether the current query has a corresponding query result, first locate the storage unit of the corresponding query result according to the query keyword of the current query;
[0053] Step S22, judging whether all or part of the query time range of the current query is included in the query time range file of the storage unit of the query result, if yes, then go to step S23, if not, then go to step S24;
[0054] Step S23, obtaining the unique identifier corresponding to all or part of the included query time range of the current query from the unique identifier file of the storage unit of the query result, and locating the corresponding time series data according to the unique identifier The storage unit, from the query time range file of the storage unit of time series data, obtains the t...
Embodiment 3
[0059] Such as Figure 7 As shown, the present invention also provides another system for establishing a combined query cache of time series data, including a first positioning module 11 , a first judging module 12 , a second positioning module 13 and a checking module 14 .
[0060] The first positioning module 11 is configured to locate the storage unit of the time series data according to the unique identifier of each time series data in the query results when a certain query result obtained according to the query keywords is written into the cache.
[0061]The first judging module 12 is used to judge for each storage unit of time series data whether all or part of the query time range of the query result is not included in the query time range file in the storage unit of time series data , if all or part of it is not included, write all or part of the query time range that is not included in the query time range file of the storage unit of the time series data, and then wri...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com