CN104424246A - Data storage system and method - Google Patents
Data storage system and method Download PDFInfo
- Publication number
- CN104424246A CN104424246A CN201310379376.3A CN201310379376A CN104424246A CN 104424246 A CN104424246 A CN 104424246A CN 201310379376 A CN201310379376 A CN 201310379376A CN 104424246 A CN104424246 A CN 104424246A
- Authority
- CN
- China
- Prior art keywords
- file data
- data
- significance level
- described file
- database
- 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
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/22—Indexing; Data structures therefor; Storage structures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A data storage method is applied to a calculating device and includes the steps: receiving file data transmitted by an electronic device; deleting the file data when judging that the file data can be deleted at any time according to importance effective durations and importance level of the corresponding file data; storing the file data in a first database when the file data cannot be deleted at any time and storage space in the first database performing data transmission with the calculating device is enough. The file data include one or a plurality of importance effective durations and the importance level of the file data corresponding to the importance effective durations. The invention further provides a data storage system capable of preventing the important file data in the database from being deleted and automatically deleting unimportant file data.
Description
Technical field
The present invention relates to a kind of data-storage system and method, particularly relate to data-storage system and the method for multiple electronic installation in network.
Background technology
At present, when there being multiple electronic installation in network, when the data of these electronic installations are stored in the server on backstage, if when carrying out the memory space inadequate of the database of data transmission with server, just need to delete the oldest file in database, up-to-date file is allowed to be stored with vacating space, if but the oldest file is very important, important File lose will be caused.
Summary of the invention
In view of above content, be necessary to provide a kind of data-storage system and method, its file data that delete database can be prevented important, and can automatically delete unessential file data.
A kind of data-storage system, run in calculation element, this system comprises: receiver module, for receiving the file data that electronic installation transmits, described file data comprises the significance level grade of the effective duration of one or more significance level and the file data corresponding to the effective duration of each significance level; Removing module, for when the significance level grade of the file data according to the effective duration of described significance level and correspondence judges that described file data is the data that can delete at any time, deletes described file data; And memory module, for being be not the data that can delete at any time when described file data, and when the storage space carried out in the first database of data transmission with described calculation element is enough, described file data is stored in this first database.
A kind of date storage method, be applied in calculation element, the method comprises: receiving step, receive the file data that electronic installation transmits, described file data comprises the significance level grade of the effective duration of one or more significance level and the file data corresponding to the effective duration of each significance level; Delete step one, when the significance level grade of the file data according to the effective duration of described significance level and correspondence judges that described file data is the data that can delete at any time, deletes described file data; And storing step one, be not the data that can delete at any time when described file data, and when the storage space carried out in the first database of data transmission with described calculation element is enough, described file data be stored in this first database.
Compared to prior art, data-storage system provided by the invention and method, the file data of its electronic installation is stored in the first database according to significance level grade, effectively can prevent the file data that deletion first cdr database is important, and can automatically delete unessential file data.
Accompanying drawing explanation
Fig. 1 is the applied environment figure of the preferred embodiment of data-storage system of the present invention.
Fig. 2 is the functional block diagram of the preferred embodiment of data-storage system of the present invention.
Fig. 3 is the process flow diagram of the first preferred embodiment of date storage method of the present invention.
Fig. 4 is the process flow diagram of the second preferred embodiment of date storage method of the present invention.
Main element symbol description
Calculation element | 1 |
First database | 2 |
Network | 3 |
Client | 4 |
Electronic installation | 5 |
Second database | 6 |
Data-storage system | 10 |
Memory device | 11 |
Processor | 12 |
Receiver module | 100 |
Judge module | 101 |
Removing module | 102 |
Memory module | 103 |
Logging modle | 104 |
Update module | 105 |
Following embodiment will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Embodiment
Consulting shown in Fig. 1, is the applied environment figure of the preferred embodiment of data-storage system of the present invention.Described data-storage system 10 is applied in calculation element 1, and described calculation element 1 is connected with multiple electronic installation 5 by network 3, and described calculation element 1 also carries out data transmission with the first database 2 and the second database 6.First database 2 is for storing the file data of each electronic installation 5.Second database 6 is for storing the backup of the partial document data of each electronic installation 5.Described calculation element 1 is also by network 3 to communicate to make client 4 can inquire about, retrieve or play the first database 2 and the second database 6 to store file data with client 4.Described data-storage system 10 comprises series of computation machine program segment, this series of computation machine program segment is stored in the memory device 11 of calculation element 1, and can be performed so that specific function can be completed by the processor 12 of calculation element 1, as automatically deleted unessential file data in the first database 2.
The each file data stored in first database 2 is assigned the significance level grade of the effective duration of one or more significance level and the file data corresponding to the effective duration of each significance level.When the file data time be stored in the first database 2 is in the time range of the effective duration of different significance levels, the significance level of this file data can change.In this preferred embodiment, four effective durations of significance level are distributed to give certain file data, from described file data is stored in the first database 2, timing is the effective duration of the first significance level to the time range of the first preset time t 1, and the grade of the file data that the effective duration of this first significance level is corresponding is A.Grade A represents that described file data is very important data, while being stored in the first database 2, also needing to back up in the second database 6, and cannot delete.Be the effective duration of the second significance level from the time range of the first preset time t 1 to the second preset time t 2, the significance level grade of the file data that the effective duration of this second significance level is corresponding is B.Grade B represents that described file data is important data, is only stored in the first database 2, but cannot deletes.Be the effective duration of the 3rd significance level from the time range of the second preset time t 2 to the three preset time t 3, the significance level grade of the file data that the effective duration of the 3rd significance level is corresponding is C.Grade C represents that described file data is general data, is only stored in the first database 2, when the insufficient memory of the first database 2, can delete.Be the effective duration of the 4th significance level from the 3rd preset time t 3, the significance level grade of the file data that the effective duration of the 4th significance level is corresponding is D.Grade D represents that described file data is the data that can delete at any time.
In addition, the first database 2 also can store the transformation period of the significance level grade corresponding to each file data, and as the point in the morning 9 of some day, the significance level grade of certain file data needs to become B from A, is the transformation period of grade A at 9 in the described morning.Described data-storage system 10 can record the transformation period of the significance level grade corresponding to All Files data in the first database 2.In the present embodiment, when described transformation period arrives or when having file data to need to be stored in the first database 2, will trigger and start described data-storage system 10.
In the present embodiment, described data-storage system 10 provides user interface to client 4, person easy to use sets the grade of the effective duration of significance level of each file data of each electronic installation 5 and file data corresponding to the effective duration of each significance level in advance, in 30 minutes the moment be stored in from certain file data in the first database 2 as arranged, the grade A of this file data, in 3 days after 30 minutes, the grade B of this file data, in 5 days after 3 days, the grade C of this file data, after 5 days, the grade D of this file data.In this preferred embodiment, user can set the grade of the effective duration of significance level of the file data of electronic installation 5 and file data corresponding to the effective duration of each significance level according to the purposes of electronic installation 5.For electronic installation 5 for network camera, as client 4 is monitor the file data (i.e. Video Document) of each web camera, when at night or people is relatively tired time, can this time period (as 21:00 to 04:00) web camera effective duration of the significance level of highest ranking (as the A grade) correspondence of file data of gathering arrange longer; And time by day, can this time period (as 8:00 to 17:00) web camera effective duration of significance level corresponding to the file data highest ranking that gathers arrange shorter.
In another embodiment, the significance level grade of the file data of all right Lookup protocol electronic installation 5 of described data-storage system 10.For electronic installation 5 for network camera, if when whether this network camera has the object of movement to exist for detecting, during the file data of described data-storage system 10 according to received electronic installation 5, when utilizing image processing techniques to judge that the object of movement exists, automatically effective duration of significance level corresponding for highest ranking is arranged longer, as 1 day.
Described calculation element 1 may be, but not limited to, the device such as server, computing machine.Described electronic installation 5 may be, but not limited to, personal computer, panel computer, smart mobile phone, the devices such as web camera.In this preferred embodiment, described electronic installation 5 is web camera, and the file data that the first database 2 and the second database 6 store is the data that web camera gathers.
Described network 3 can be the communication network of internet (Internet) or other type, as GPRS, Wi-Fi/WLAN, 3G/WCDMA, 3.5G/HSDPA etc.
Described first database 2 and the second database 6 are connected with calculation element 1, can be any type of database, such as Structured Query Language (SQL) (Structured Query Language, SQL), open database inter connection (Open Database Connectivity, or Java DataBase combining (Java Database Connectivity, JDBC) ODBC).Described first database 2 and the second database 6 independent of calculation element 1, also can be arranged in hard disk or the flash disk of calculation element 1.Described first database 2 and the second database 6 also can be arranged in network storage medium, and described network storage medium can provide storage space on the net at the outer of network 3, and user over-network registration registration outside can obtain some free storage spaces.Network storage medium comprises DropBox, GoogleDrive, Microsoft MySpace etc.
As shown in Figure 2, be the functional block diagram of preferred embodiment of data-storage system 10 in calculation element 1 of the present invention.In the present embodiment, described data-storage system 10 comprises receiver module 100, judge module 101, removing module 102, memory module 103, logging modle 104 and update module 105.Function about each module will specifically describe in the flowchart of fig. 3.
As shown in Figure 3, be the process flow diagram of the first preferred embodiment of date storage method of the present invention.In this preferred embodiment, according to different demands, in this process flow diagram, the order of step can change, and some step can be omitted.
Step S11, receiver module 100 receives the file data that an electronic installation 5 transmits, and wherein, described file data comprises the significance level grade of the effective duration of one or more significance level and the file data corresponding to the effective duration of each significance level.
Step S12, according to the grade of the file data of the effective duration of the significance level of described file data and correspondence, judge module 101 judges whether this file data can be deleted at any time.As mentioned above, each file data of each electronic installation 5 is assigned the grade of the file data that the effective duration of one or more significance level is and the effective duration of each significance level is corresponding.When the effective duration of significance level of described file data is from (0 ~ ∞), namely any time from storing, the grade of corresponding file data is D, namely file data is inessential, can delete at any time, then judge module 101 judges that described file data can be deleted at any time, and perform step S19, removing module 102 deletes described file data.When cannot the deleting at any time of described file data, perform following step S13.
Step S13, judge module 101 judges whether the significance level grade of described file data is A, and namely whether described file data is very important data.When the significance level grade of described file data is A, perform step S14, described file data is stored in the first database 2 and the second database 6 by memory module 103, then continue to perform step S18, logging modle 104 records the transformation period of the described significance level grade of described file data.When the significance level grade of described file data is not A, perform following step S15.
Step S15, judge module 101 judges whether the significance level grade of described file data is that B judges whether described file data is important data.When the significance level grade of described file data is B, perform step S17, described file data is stored in the first database 2 by memory module 103, and then continue to perform step S18, logging modle 104 records the transformation period of the described significance level grade of described file data.
When the significance level grade of described file data is not B, then the significance level grade of described file data is C, and namely described file data is general data, and perform step S16, judge module 101 judges that whether the storage space in described first database 2 is enough.When the storage space in described first database 2 is enough, perform step S17, described file data is stored in the first database 2 by memory module 103, and then continue to perform step S18, logging modle 104 records the transformation period of the described significance level grade of described file data.When the memory space inadequate in described first database 2 is enough, perform step S19, file data described in removing module 102.
In the present embodiment, whether described receiver module 100 can be greater than preset value and judge that whether the storage space of described first database 2 is enough according to the storage space in described first database 2.
As shown in Figure 4, be the process flow diagram of the second preferred embodiment of date storage method of the present invention.In this preferred embodiment, according to different demands, in this process flow diagram, the order of step can change, and some step can be omitted.
Step S40, when the transformation period of the significance level grade of certain file data in the first database 2 arrives, judge module 101 judges whether the significance level grade of described file data is changed to B from A, namely from the data that very important data variation is important.
When the significance level grade of described file data is changed to B from A, perform step S41, the significance level grade of described file data is updated to B by update module 105, and then perform step S42, removing module 102 deletes the described file data in the second database 6.
When the significance level grade of described file data is not be changed to B from A, perform step S43, judge module 101 judges whether the significance level grade of described file data is changed to C or B from A and is changed to C, is namely changed to general data from very important data or significant data.
When the significance level grade of described file data is changed to C or B from A to be changed to C, perform step S44, judge that whether the storage space in described first database 2 is enough.When insufficient memory in described first database 2, perform step S46, removing module 102 deletes the described file data in the first database 2.When the storage space in described first database 2 is enough, perform step S45, the significance level grade of described file data is updated to C by update module 105.
When the significance level grade of described file data is not be changed to C from B, then the significance level grade of described file data is changed to D or B from A to be changed to D or C and to be changed to D, namely be changed to the data that can delete at any time from very important data, significant data or general data, then execution step S46 removing module 102 deletes the described file data in the first database 2.
It should be noted last that, above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to above preferred embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, can modify to technical scheme of the present invention or equivalent replacement, and not depart from the spirit and scope of technical solution of the present invention.
Claims (10)
1. a data-storage system, runs in calculation element, it is characterized in that, this system comprises:
Receiver module, for receiving the file data that electronic installation transmits, described file data comprises the significance level grade of the effective duration of one or more significance level and the file data corresponding to the effective duration of each significance level;
Removing module, for when the significance level grade of the file data according to the effective duration of described significance level and correspondence judges that described file data is the data that can delete at any time, deletes described file data; And
Memory module, for being be not the data that can delete at any time when described file data, and when the storage space carried out in the first database of data transmission with described calculation element is enough, is stored in described file data in this first database.
2. data-storage system as claimed in claim 1, it is characterized in that, this system also comprises:
Judge module, significance level grade for the file data according to the effective duration of described significance level and correspondence judges the significance level grade of described file data, and the significance level grade of described file data comprises: very important data, significant data, general data, the data that can delete at any time.
3. data-storage system as claimed in claim 2, it is characterized in that, described memory module, also for when the significance level grade of described file data is very important data, is stored in described file data and carries out in the second database of data transmission with calculation element.
4. data-storage system as claimed in claim 2, is characterized in that, described removing module is also general data for the significance level grade when described file data, and when memory space inadequate in described first database, deletes described file data.
5. data-storage system as claimed in claim 2, it is characterized in that, described system also comprises:
Logging modle, for the significance level grade of the file data according to the effective duration of described significance level and correspondence, records the transformation period of the significance level grade of described file data; And
Update module, for the transformation period of the significance level grade according to described file data, upgrades the significance level grade of described file data.
6. a date storage method, be applied in calculation element, it is characterized in that, the method comprises:
Receiving step, receive the file data that electronic installation transmits, described file data comprises the significance level grade of the effective duration of one or more significance level and the file data corresponding to the effective duration of each significance level;
Delete step one, when the significance level grade of the file data according to the effective duration of described significance level and correspondence judges that described file data is the data that can delete at any time, deletes described file data; And
Storing step one is be not the data that can delete at any time when described file data, and when the storage space carried out in the first database of data transmission with described calculation element is enough, is stored in by described file data in this first database.
7. date storage method as claimed in claim 6, it is characterized in that, the method also comprises:
Determining step, judge the significance level grade of described file data according to the significance level grade of the file data of the effective duration of described significance level and correspondence, the significance level grade of described file data comprises: very important data, significant data, general data, the data that can delete at any time.
8. date storage method as claimed in claim 7, it is characterized in that, the method also comprises storing step two, when the significance level grade of described file data is very important data, is stored in by described file data and carries out in the second database of data transmission with calculation element.
9. date storage method as claimed in claim 7, it is characterized in that, the method also comprises delete step two, when the significance level grade of described file data is general data, and when memory space inadequate in described first database, delete described file data.
10. date storage method as claimed in claim 7, it is characterized in that, described method also comprises:
Recording step, according to the significance level grade of the file data of the effective duration of described significance level and correspondence, records the transformation period of the significance level grade of described file data; And
Step of updating, according to the transformation period of the significance level grade of described file data, upgrades the significance level grade of described file data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310379376.3A CN104424246A (en) | 2013-08-27 | 2013-08-27 | Data storage system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310379376.3A CN104424246A (en) | 2013-08-27 | 2013-08-27 | Data storage system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104424246A true CN104424246A (en) | 2015-03-18 |
Family
ID=52973235
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310379376.3A Pending CN104424246A (en) | 2013-08-27 | 2013-08-27 | Data storage system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104424246A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105744310A (en) * | 2016-02-17 | 2016-07-06 | 四川长虹电器股份有限公司 | Control method for display of pushed announcement on smart TV |
CN106446101A (en) * | 2016-09-13 | 2017-02-22 | 郑州云海信息技术有限公司 | Data management system |
CN109918340A (en) * | 2019-03-18 | 2019-06-21 | 维沃移动通信有限公司 | A kind of document handling method and terminal device |
CN110083573A (en) * | 2019-04-30 | 2019-08-02 | 维沃移动通信有限公司 | A kind of file management method and mobile terminal |
WO2021218626A1 (en) * | 2020-04-27 | 2021-11-04 | 北京三快在线科技有限公司 | Data storage method and apparatus, device, and storage medium |
CN114281250A (en) * | 2021-12-01 | 2022-04-05 | 上海闪马智能科技有限公司 | Method and device for cleaning storage file, storage medium and electronic device |
-
2013
- 2013-08-27 CN CN201310379376.3A patent/CN104424246A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105744310A (en) * | 2016-02-17 | 2016-07-06 | 四川长虹电器股份有限公司 | Control method for display of pushed announcement on smart TV |
CN106446101A (en) * | 2016-09-13 | 2017-02-22 | 郑州云海信息技术有限公司 | Data management system |
CN109918340A (en) * | 2019-03-18 | 2019-06-21 | 维沃移动通信有限公司 | A kind of document handling method and terminal device |
CN109918340B (en) * | 2019-03-18 | 2021-07-02 | 维沃移动通信有限公司 | File processing method and terminal equipment |
CN110083573A (en) * | 2019-04-30 | 2019-08-02 | 维沃移动通信有限公司 | A kind of file management method and mobile terminal |
WO2021218626A1 (en) * | 2020-04-27 | 2021-11-04 | 北京三快在线科技有限公司 | Data storage method and apparatus, device, and storage medium |
CN114281250A (en) * | 2021-12-01 | 2022-04-05 | 上海闪马智能科技有限公司 | Method and device for cleaning storage file, storage medium and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104424246A (en) | Data storage system and method | |
CN109857737B (en) | Cold and hot data storage method and device and electronic equipment | |
US20180260114A1 (en) | Predictive models of file access patterns by application and file type | |
US7603340B2 (en) | Automatic workload repository battery of performance statistics | |
JP2022016589A (en) | System and method for collecting, tracking, and storing system performance and event data about computing device | |
US7292961B2 (en) | Capturing session activity as in-memory snapshots using a time-based sampling technique within a database for performance tuning and problem diagnosis | |
CN108463817A (en) | Personalised entity library | |
CN107092628B (en) | Time series data processing method and device | |
US20200409925A1 (en) | Data processing method and apparatus, storage medium and electronic device | |
CN101557427A (en) | Method for providing diffluent information and realizing the diffluence of clients, system and server thereof | |
CN103412916A (en) | Methods and device for multi-dimensionally storing and retrieving data of monitoring system | |
US11449509B2 (en) | Workflow driven database partitioning | |
CN108369550B (en) | Real-time alteration of data from different sources | |
CN106326025A (en) | Method and device for processing abnormality of browser | |
CN109815425A (en) | Caching data processing method, device, computer equipment and storage medium | |
WO2021073260A1 (en) | Object management method and apparatus, computer device, and storage medium | |
CN108520052B (en) | Slow query information retrieval method and device, server and readable storage medium | |
US11829377B2 (en) | Efficient storage method for time series data | |
CN113360094B (en) | Data prediction method and device, electronic equipment and storage medium | |
US9503543B2 (en) | Proxy cache aggregator | |
CN111427920B (en) | Data acquisition method, device, system, computer equipment and storage medium | |
CN108509639B (en) | Table information management method, device and readable storage medium | |
JPWO2014162397A1 (en) | Computer system, data management method, and computer | |
CN116048846A (en) | Data transmission method, device, equipment and storage medium | |
CN109558425A (en) | A kind of backup method and device of caching |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150318 |