CN104166650B - Data storage device and date storage method - Google Patents
Data storage device and date storage method Download PDFInfo
- Publication number
- CN104166650B CN104166650B CN201310182207.0A CN201310182207A CN104166650B CN 104166650 B CN104166650 B CN 104166650B CN 201310182207 A CN201310182207 A CN 201310182207A CN 104166650 B CN104166650 B CN 104166650B
- Authority
- CN
- China
- Prior art keywords
- data
- file
- storage
- time
- date
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
Abstract
Description
Claims (8)
- A kind of 1. data storage device, it is characterised in that including:Storage file creating unit, for corresponding storage file to be respectively created according to multiple preset time ranges;Real time data acquisition unit, for obtaining real time data, and by the real-time data memory to transfer file;Data storage cell, for obtaining data from the transfer file, and according to the time where the time of the data Scope, by the data storage to storage file corresponding with the time range;The data storage cell is in the time When scope is a year and a day, for according to the time where the data, by the data storage to using the time for it is corresponding in advance If the first storage file of time range;And according to the date of the data, by the data storage to using the date as corresponding preset time range starting point, and The second storage file using the identical date after 1 year as corresponding preset time range terminal;AndThe data are uniformly extracted, and according to the date of the data extracted, by the data storage extracted extremely Using the extraction date of the data extracted as corresponding preset time range starting point, and using identical after for many years extract the date as 3rd storage file of corresponding preset time range terminal.
- 2. data storage device according to claim 1, it is characterised in that also include:First judging unit, for according to the query statement that receives, judge the date of data to be checked to current date ought Whether preceding time range is more than object time scope, if being not more than, creates temporary file, and according to the current time model Enclose, data storage corresponding with the current time frame is obtained from the transfer file to the temporary file, according to institute State the data generation chart in temporary file.
- 3. data storage device according to claim 2, it is characterised in that also include:Second judging unit, in the case of being in the judged result of first judging unit, when judging described current Between scope whether be more than 1 year, if being more than, inquire about using the current date as corresponding preset time range starting point, and with for many years Current date described in identical is the 3rd storage file of corresponding preset time range terminal afterwards, and according to the described 3rd storage text Data generation chart in part;3rd judging unit, in the case of being no in the judged result of second judging unit, judge described to be checked Whether the time of data and the time of current time are identical, if identical, inquire about using current year as corresponding preset time range The first storage file, and in first storage file data generation chart, if differing, inquiry with it is described work as The preceding date is corresponding preset time range starting point, and is deposited using current date after 1 year as the second of corresponding preset time range terminal Store up file, and the data generation chart in second storage file.
- 4. data storage device according to any one of claim 1 to 3, it is characterised in that also include:Load information judging unit, for obtaining hardware load information, and judge whether the load information is normal, andThe data storage cell is in the case of the load information judging unit determines that the load information is normal, according to more New time range obtains data from the transfer file, and determines the load information not in the load information judging unit In the case of normal, after the renewal time scope, or after the load information recovers normal, from transfer text Data are obtained in part.
- A kind of 5. date storage method, it is characterised in that including:Step 202, corresponding storage file is respectively created according to multiple preset time ranges;Step 204, real time data is obtained, and by the real-time data memory to transfer file;Step 206, data are obtained from the transfer file, according to the time range where the time of the data, by described in Data storage extremely storage file corresponding with the time range;The step 206 includes:When the time range is a year and a day, according to the time where the data, by the number According to storing to the first storage file using the time as corresponding preset time range;And according to the date of the data, by the data storage to using the date as corresponding preset time range starting point, and The second storage file using the identical date after 1 year as corresponding preset time range terminal;AndThe data are uniformly extracted, and according to the date of the data extracted, by the data storage extracted extremely Using the extraction date of the data extracted as corresponding preset time range starting point, and using identical after for many years extract the date as 3rd storage file of corresponding preset time range terminal.
- 6. date storage method according to claim 5, it is characterised in that also include:According to the query statement received, Judge whether the date of data to be checked is more than object time scope to the current time frame of current date, if being not more than, Temporary file is created, and according to the current time frame, is obtained and the current time frame pair from the transfer file The data storage answered is to the temporary file, the data generation chart in the temporary file.
- 7. date storage method according to claim 6, it is characterised in that also include:If the current time frame is big In object time scope, then judge whether the current time frame is more than 1 year,If being more than, inquire about using the current date as corresponding preset time range starting point, and with for many years afterwards described in identical when The preceding date is the 3rd storage file of corresponding preset time range terminal, and the data generation in the 3rd storage file Chart;If being not more than, determine whether the data to be checked time and current time time it is whether identical,If identical, the first storage file using current year as corresponding preset time range is inquired about, and deposit according to described first Store up the data generation chart in file;If differing, inquire about using the current date as corresponding preset time range starting point, and using current date after 1 year as Second storage file of corresponding preset time range terminal, and the data generation chart in second storage file.
- 8. the date storage method according to any one of claim 5 to 7, it is characterised in that the step 204 is also wrapped Include:Hardware load information is obtained, and judges whether the load information is normal, if normally, according to renewal time scope from institute State and data are obtained in transfer file, and in the case of the load information is abnormal, after the renewal time scope, Or after the load information recovers normal, data are obtained from the transfer file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310182207.0A CN104166650B (en) | 2013-05-16 | 2013-05-16 | Data storage device and date storage method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310182207.0A CN104166650B (en) | 2013-05-16 | 2013-05-16 | Data storage device and date storage method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104166650A CN104166650A (en) | 2014-11-26 |
CN104166650B true CN104166650B (en) | 2018-03-06 |
Family
ID=51910469
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310182207.0A Expired - Fee Related CN104166650B (en) | 2013-05-16 | 2013-05-16 | Data storage device and date storage method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104166650B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106201333B (en) * | 2015-06-01 | 2019-04-12 | 株式会社东芝 | Storage device, controller and data reading method again |
CN109508244B (en) * | 2018-10-18 | 2021-03-12 | 北京新唐思创教育科技有限公司 | Data processing method and computer readable medium |
CN110347661A (en) * | 2019-07-05 | 2019-10-18 | 北京红山信息科技研究院有限公司 | Method, apparatus, server and the storage medium that data source is quasi real time put in storage |
CN112463746B (en) * | 2020-12-11 | 2023-11-03 | 杭州海康汽车软件有限公司 | File storage and generation method and device and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101216821A (en) * | 2007-01-05 | 2008-07-09 | 中兴通讯股份有限公司 | Data acquisition system storage management method |
CN101341468A (en) * | 2005-12-20 | 2009-01-07 | 富士通株式会社 | Information processing apparatus, computer, resource distribution method and resource distribution program |
CN102141963A (en) * | 2010-01-28 | 2011-08-03 | 阿里巴巴集团控股有限公司 | Method and equipment for analyzing data |
CN103020255A (en) * | 2012-12-21 | 2013-04-03 | 华为技术有限公司 | Hierarchical storage method and hierarchical storage device |
CN103077200A (en) * | 2012-12-27 | 2013-05-01 | 深圳市赛为智能股份有限公司 | Audio/video index storage method and device |
-
2013
- 2013-05-16 CN CN201310182207.0A patent/CN104166650B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101341468A (en) * | 2005-12-20 | 2009-01-07 | 富士通株式会社 | Information processing apparatus, computer, resource distribution method and resource distribution program |
CN101216821A (en) * | 2007-01-05 | 2008-07-09 | 中兴通讯股份有限公司 | Data acquisition system storage management method |
CN102141963A (en) * | 2010-01-28 | 2011-08-03 | 阿里巴巴集团控股有限公司 | Method and equipment for analyzing data |
CN103020255A (en) * | 2012-12-21 | 2013-04-03 | 华为技术有限公司 | Hierarchical storage method and hierarchical storage device |
CN103077200A (en) * | 2012-12-27 | 2013-05-01 | 深圳市赛为智能股份有限公司 | Audio/video index storage method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104166650A (en) | 2014-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108536761B (en) | Report data query method and server | |
US20170351585A1 (en) | Transaction consistency query support for replicated data from recovery log to external data stores | |
CN105989076A (en) | Data statistical method and device | |
CN103778148B (en) | Life cycle management method and equipment for data file of Hadoop distributed file system | |
CN109344153A (en) | The processing method and terminal device of business datum | |
CN105989160A (en) | Memory data persistence method and apparatus for Redis database | |
CN110245145A (en) | Structure synchronization method and apparatus of the relevant database to Hadoop database | |
CN104166650B (en) | Data storage device and date storage method | |
CN107040578A (en) | Method of data synchronization, device and system | |
CN104639658A (en) | Realization method for accessing object storage by file system mounting | |
CN103577546B (en) | A kind of method of data backup, equipment and distributed cluster file system | |
CN107103014A (en) | The replay method of history pushed information, device and system | |
CN104750703A (en) | Method and device for improving data accuracy | |
CN110083600A (en) | A kind of method, apparatus, calculating equipment and the storage medium of log collection processing | |
CN110232291A (en) | Intelligent data desensitization method, device, computer equipment and storage medium | |
CN113141410B (en) | Dynamically adjusted QPS control method, system, device and storage medium | |
CN108563776A (en) | Off-line data acquisition methods and system, server and storage medium | |
CN106250501B (en) | Report processing method and reporting system | |
CN111831744A (en) | DAPP on-chain data retrieval system, method and medium | |
CN115827646A (en) | Index configuration method and device and electronic equipment | |
CN110851758A (en) | Webpage visitor number statistical method and device | |
CN104956334A (en) | Sending a request to a management service | |
WO2012027697A1 (en) | Incorporating temporal aspects of data in a relational storage system | |
CN115757642A (en) | Data synchronization method and device based on filing log file | |
CN106909472B (en) | Input/output load adjusting method and device of distributed file system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 100088 No. 15 South College Road, Haidian District, Beijing Patentee after: FOUNDER BROADBAND NETWORK SERVICE Co.,Ltd. Address before: 100088 5th Floor, Block B, Beifa Building, No. 15 South College Road, Haidian District, Beijing Patentee before: FOUNDER BROADBAND NETWORK SERVICE Co.,Ltd. |
|
CP03 | Change of name, title or address | ||
TR01 | Transfer of patent right |
Effective date of registration: 20190522 Address after: Room 802, 8th Floor, 52 North Fourth Ring West Road, Haidian District, Beijing Co-patentee after: Beijing Digital Home Network Technology Co.,Ltd. Patentee after: FOUNDER BROADBAND NETWORK SERVICE Co.,Ltd. Address before: 100088 No. 15 South College Road, Haidian District, Beijing Patentee before: FOUNDER BROADBAND NETWORK SERVICE Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180306 Termination date: 20210516 |
|
CF01 | Termination of patent right due to non-payment of annual fee |