CN107748652A - A kind of date storage method and device - Google Patents

A kind of date storage method and device Download PDF

Info

Publication number
CN107748652A
CN107748652A CN201711085632.2A CN201711085632A CN107748652A CN 107748652 A CN107748652 A CN 107748652A CN 201711085632 A CN201711085632 A CN 201711085632A CN 107748652 A CN107748652 A CN 107748652A
Authority
CN
China
Prior art keywords
data
parameter
current
flex point
history
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.)
Granted
Application number
CN201711085632.2A
Other languages
Chinese (zh)
Other versions
CN107748652B (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.)
Shenzhen Mixlinker Network Co Ltd
Original Assignee
Shenzhen Mixlinker Network Co Ltd
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 Shenzhen Mixlinker Network Co Ltd filed Critical Shenzhen Mixlinker Network Co Ltd
Priority to CN201711085632.2A priority Critical patent/CN107748652B/en
Publication of CN107748652A publication Critical patent/CN107748652A/en
Application granted granted Critical
Publication of CN107748652B publication Critical patent/CN107748652B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • G06F3/0611Improving I/O performance in relation to response time

Abstract

The invention discloses a kind of date storage method and device, this method includes:The data at current time are obtained, and with different time unit, the index of default parameter in data and corresponding basic data are saved as into permanent data record, and preserve the flex point in data and recorded for permanent data.So, it is compressed equivalent to by data, no longer it is all to be stored all data received, without disposably asking all data from Cloud Server, but the index of correlation and jitter points for passing through data in the unit interval, to represent the situation of change of data in the unit interval, so reduce the amount of storage of data while ensure the higher reduction degree of data.Also, when carrying out data call, the response time of server is also reduced, improves inquiry and the efficiency rendered.

Description

A kind of date storage method and device
Technical field
The present invention relates to field of data storage, more particularly to a kind of date storage method and device.
Background technology
As the continuous development of requirement more and more higher of the people for quality of life and science and technology, the application of Internet of Things are more next It is more universal, such as intelligent domestic system, environmental monitoring, intelligent medical etc., Internet of Things is during use, it is necessary to continual Gathered data, and by the data Cun Chudao servers collected.
This storage mode greatly consumes the memory space of server, moreover, working as needs to call some period During data, because data volume is excessive, the corresponding overlong time of server can be caused.
The content of the invention
In view of this, the embodiment of the invention discloses a kind of date storage method and device, reduction data storage is realized The purpose in space, also, due to reducing the memory space of data, when carrying out data call, shorten the response of server Time.
A kind of date storage method disclosed in the embodiment of the present invention, including:
Obtain the data at current time;
The history desired value of parameter is corresponded to according to the data and the data, updates the current desired value of the parameter, And according to the history flex point of parameter, bearing data described in the data and caching, judge whether the data are flex point data;
Judge whether current time has reached the current preservation moment;The current preservation moment is based on default input time Determined with preset time unit;
If having reached the current preservation moment, the current desired value of the parameter and default first foundation data are entered Row preserves;
If the data are flex point data, current flex point, the bearing data of the parameter are updated, and by the current flex point Value, the current data change direction and default second basic data are preserved.
Optionally, the history desired value that parameter is corresponded to according to the data and the data, update the parameter and work as Preceding desired value, including:
Judge whether the data are more than the history maximum of the parameter, if more than the history maximum of the parameter, The current maximum of the parameter is updated to the data;
Judge whether the data are less than the history minimum value of the parameter, if less than the history minimum value of the parameter, The current minimum value of the parameter is updated to the data;
According to the history average of the data and the parameter, the current average of the parameter is updated.
Optionally, it is described according to the history flex point of parameter, bearing data described in the data and caching, judge the number According to whether being flex point data, including:
According to the data and the history flex point data of the parameter, the change direction of current data is determined;
Judge current data change direction and historical data change direction it is whether identical;
If the change direction of current data and the change direction of historical data differ, judge the absolute value of the data and be It is no to have exceeded default dithering threshold;
If having exceeded default dithering threshold, it is flex point data to determine the data.
Optionally, in addition to:
Initialize the related data of the parameter;The related data of the parameter includes:At least one finger of the parameter Mark, input time and current time;
Initialize the flex point record of the parameter;The flex point record includes:The change direction of knee value and data.
Optionally, the default chronomere is at least one chronomere.
Optionally, in addition to:
Receive data call request;
Determine the very first time unit in the data call request;
The data preserved with the very first time unit are sent to calling terminal, so that the calling terminal displays reception The data arrived;
The data preserved with second chronomere are sent to calling terminal;Second chronomere is less than described Very first time unit.
The embodiment of the invention also discloses a kind of data storage device, including:
Acquiring unit, for obtaining the data at current time;
Updating block, for corresponding to the history desired value of parameter according to the data and the data, update the parameter Current desired value;
First judging unit, for according to the history flex point of parameter, bearing data described in the data and caching, judging Whether the data are flex point data;
Second judging unit, for judging whether current time has reached the current preservation moment;The current preservation moment It is to be determined based on default input time and preset time unit;
Data saving unit, if for having reached the current preservation moment, by the current desired value of the parameter and in advance If first foundation data preserved;
Flex point storage unit, if being flex point data for the data, update current flex point, the direction number of the parameter According to, and current knee value, the current data change direction and default second basic data are preserved.
Optionally, the updating block, including:
First renewal subelement, for judging whether the data are more than the history maximum of the parameter, if being more than institute The history maximum of parameter is stated, the current maximum of the parameter is updated to the data;
Second renewal subelement, for judging whether the data are less than the history minimum value of the parameter, if being less than institute The history minimum value of parameter is stated, the current minimum value of the parameter is updated to the data;
3rd renewal subelement, for the history average according to the data and the parameter, updates the parameter Current average.
Optionally, first judging unit, including:
First determination subelement, for the history flex point data according to the data and the parameter, determine current data Change direction;
First judgment sub-unit, for judge current data change direction and historical data change direction whether phase Together;
Second judgment sub-unit, if being differed for the change direction of current data and the change direction of historical data, sentence Whether the absolute value for the data of breaking has exceeded default dithering threshold;
Second determination subelement, if for having exceeded default dithering threshold, it is flex point data to determine the data.
Optionally, the default chronomere is at least one chronomere, in addition to:
Receiving unit, for receiving data call request;
Determining unit, for determining the very first time unit in the data call request;
First transmitting element, for the data preserved with the very first time unit to be sent into calling terminal, so that institute State the data for calling terminal displays reception to arrive;
Second transmitting element, for the data preserved with second chronomere to be sent into calling terminal;Described Two chronomeres are less than the very first time unit.
The embodiment of the invention discloses a kind of date storage method and device, this method includes:Receive the number at current time According to;The history desired value of parameter is corresponded to according to the data and the data, updates the current desired value of the parameter, and foundation The history flex point data of the data and the parameter, judge whether the data are flex point data;Whether judge current time The current preservation moment is reached;The current preservation moment is determined based on default input time and preset time unit;If The current preservation moment is reached, the current desired value of the parameter and default first foundation data has been preserved;If The data are flex point data, update the current flex point record of the parameter, and will currently flex point data, the current number Preserved according to change direction and default second basic data.It follows that the embodiment of the present invention can according to it is default when Between unit the current desired value of the parameter and default first foundation data are saved in database, and determining flex point After data, by flex point data Cun Chudao databases, equivalent to only preserved in database be each chronomere renewal Data and flex point data, be no longer all data that real-time reception arrives, so reduce the memory data output of server, and And when carrying out data call, also shorten the response time of server.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 shows a kind of schematic flow sheet of date storage method provided in an embodiment of the present invention;
Fig. 2 shows that data transfer the schematic flow sheet of method;
Fig. 3 shows a kind of structural representation of data storage device provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
With reference to figure 1, a kind of schematic flow sheet of date storage method provided in an embodiment of the present invention is shown, in this implementation In example, this method includes:
S101:Obtain the data at current time;
In the present embodiment, in order to ensure the timing of data, the number at current time can be obtained from fifo queue According to.
S102:The history desired value of parameter is corresponded to according to the data and the data, updates the current finger of the parameter Scale value;
In the present embodiment, Internet of Things can apply to many fields, such as smart home, environmental monitoring etc., therefore, service The data that device receives can include it is a variety of, in this embodiment, represent that every kind of data, such as parameter can include by parameter: Temperature, pressure, air quality data etc..
Before S102 is performed, it can be included with the related data of initiation parameter, related data:At least the one of the parameter Individual index, input time and current time etc., wherein, the index of parameter includes:Maximum, minimum value and average value etc., for example, Maximum and minimum value can be initialized as zero.
Wherein, the related data of the parameter initialization can preserve in the buffer, current when being taken out from fifo queue The data at moment, the related data in caching is updated, it is necessary to update the data including:Maximum, minimum value and current Time etc.;Wherein, the desired value being directed in renewal related data, specifically, can include:
Judge whether the data are more than the history maximum of the parameter, if more than the history maximum of the parameter, The current maximum of the parameter is updated to the data;
Judge whether the data are less than the history minimum value of the parameter, if less than the history minimum value of the parameter, The current minimum value of the parameter is updated to the data;
According to the history average of the data and the parameter, the current average of the parameter is updated.
The caching can be realized by using the fifo queue of first in first out, preferred Redis teams in the embodiment of the present invention Row.In order to more clearly show technical scheme, following examples it is more with Redis queues as an example, but Technical scheme is in the specific implementation, however it is not limited to the various instruments or form for realizing caching.
In the present embodiment, data and the maximum of parameter preset, minimum value that current time is received are compared, if The data that current time receives are bigger than the maximum of the parameter, then maximum are updated into latest data, if current data ratio The minimum value of the parameter is small, then minimum value is updated into current data;, should if current data is less than or equal to the maximum of the parameter The maximum of parameter is constant, if current data is more than or equal to the minimum value of the parameter, the minimum value of the parameter is also constant.
S103:Judge whether current time has reached the current preservation moment;The current preservation moment is based on default defeated Enter what moment and preset time unit determined;
By foregoing description, before S102 is performed, input time is initialized, but pass through a time list Behind position, input time can be updated to the time at current time.
In the present embodiment, chronomere can be understood as a default time interval, if for example, chronomere is 1 small When, then it is a chronomere that chronomere, which can be understood as every 1 hour,.
Wherein, currently preserve the moment it is to be understood that default input time after default chronomere when Carve, such as:If default input time is 13 points, default chronomere is 1 hour, then it is 14 points currently to preserve the moment.
S104:If the current preservation moment is reached, by the current desired value of the parameter and default first foundation Data are preserved.
In the present embodiment, S104 is equivalent to each chronomere will insert a record, the record in database Including:The current desired value of the parameter and default first foundation data.Wherein, first foundation data can include:Adaptation Device ID, parameter, the chronomere used, renewal time etc..
For example, if chronomere is 1 hour, input time is start time, then the time of one after start time hour In unit, the data in Redis lists will be updated in real time, but after reaching one hour, that is, be reached after preserving the moment, be needed Maximum in Redis lists, minimum value, average value and default basic data are stored in database, specifically, protecting The data deposited can be shown in following table one:
Table 1
Adapter id Parameter Chronomere Maximum Minimum value Average value Time
aprusid Temperature time_unit Max min avg datetime
* * * (chronomere) * * * *
It is understood that Redis lists do not store data into data equivalent to data are carried out with interim caching In storehouse, S101~S104 equivalent to data processing procedure, often by a chronomere, by the dependency number in Redis lists According to preservation once.
In the present embodiment, in order to which user is when carrying out data call, the number of multiple chronomeres can be observed in real time According to situation of change, multiple chronomeres can be used simultaneously, data are stored.
In the present embodiment, when receiving the data at current time, according to the data received, it is corresponding to update the data Parameter current criteria value, and after the preservation moment has been reached, by the current criteria value of renewal and default first foundation number According to being preserved.So, a current criteria value and first foundation data are preserved equivalent to each chronomere, it is therefore not necessary to All data are stored again, save the memory space of server;And when reported data amount is very huge beyond the clouds, Use and important critical data is saved with upper type, can also ensure the higher reduction degree of data simultaneously, be easy to follow-up big data should With extension.
In the present embodiment, after S101 is performed, except needing the data according to the current time received to correspond to The desired value of parameter is updated, while also needs to judge whether the data that current time receives are flex point, specifically, such as with Under step S105:
S105:According to the history flex point of parameter, bearing data described in the data and caching, whether the data are judged For flex point data;
Due to the data that finally store, it is necessary to reflect the situation of change of data, the only maximum including data, minimum value And average value, it is impossible to the situation of change of comprehensive reflection data, therefore, it is also desirable to know the variation tendency of data, therefore, also need Whether the data for determining to receive are flex point data, specifically, including:
According to the data and the history flex point data of the parameter, the change direction of current data is determined;
Judge current data change direction and historical data change direction it is whether identical;
If the change direction of current data and the change direction of historical data differ, judge the absolute value of the data and be It is no to have exceeded default dithering threshold;
If having exceeded default dithering threshold, it is flex point data to determine the data.
In the present embodiment, before S105 is performed, in addition to:Initialize the flex point data of the parameter;The flex point number According to including:The change direction of knee value and data.
Wherein, flex point data can be stored in Redis lists, in Redis lists, often receive a data, all First to judge whether it is flex point data, if flex point data, then the flex point data preserved in Redis lists be carried out more Newly.
For example, the knee value and data change direction of initialization can be 0;If data variation trend is rises, then Change direction can be+1, if data variation trend is declines, change direction can be -1., it is necessary to illustrate in the present embodiment , history flex point data can be understood as last moment renewal flex point data.
In the present embodiment, the determination of flex point data includes two qualifications, and condition one is:The data that are currently received and History flex point data are compared, and change direction is in opposite direction with historical variations;Condition two:The data that current time receives are more than pre- If tolerance threshold value.
Because the change of data has a scope that can be fluctuated, in controllable scope, then the data cannot function as Flex point, if data are defined as flex point data beyond controllable scope, the data.The controlled range of the data is set as tolerance Threshold value is spent, the tolerance threshold value can be that technical staff is rule of thumb set, or be calculated by analysis, if doubtful For flex point data beyond tolerance threshold value, then the data being currently received are flex point data, even more than tolerance threshold value, are then existed The data being currently received are updated as new flex point data in caching.
Illustrate:Assuming that the shake tolerance pre-set is 0.5, the flex point preserved in caching is 1.9, the side of preservation To for rise.If the data being currently received are 1.1, the direction of current data is first determined whether, by calculating 1.1-1.9=- 0.8, therefore outgoing direction is judged to decline, it is seen that when front direction, front direction is opposite therewith;Then judge that current data turns with history Whether the absolute value of point is more than shake tolerance, due to absolute value | and -0.8 |>0.5, therefore will should currently receive in the buffer The data 1.1 arrived are updated as new flex point data, and direction is updated to decline.
Another illustration:When knee value is 32 DEG C in history flex point data, change direction is+1, if current time receives The data arrived are 22 DEG C, then compared with 32 DEG C, current change direction is declines, due to the change preserved in history flex point data Direction is rises, it is determined that the current data received is doubtful flex point.Assuming that tolerance threshold value is 30 DEG C, then doubtful flex point data For knee value, i.e., in the buffer, the data being currently received are preserved as flex point and preserve direction to decline.
S106:If the data are flex point data, current flex point, the bearing data of the parameter are updated, and described will work as Preceding knee value, the current data change direction and default second basic data are preserved.
In the present embodiment, S105~S106 be can be understood as often detecting flex point data, and a note is inserted in database Record, the record include:Current flex point data, the current data change direction and default second basic data are preserved.
Illustrate:Second basic data can include:Adapter ID, parameter, change direction and renewal time, specifically , flex point data can be with as shown in table 2 below:
Table 2
Adapter id key Chronomere Currently Direction Time
aprusid Temperature time_unit current arrow datetime
* * inflexion * * *
In the present embodiment, each flex point occurred in the data of reception is recorded so that user can more comprehensively understand The situation of change of data.
When user needs to be shown the data received, can be asked to system server with any time Unit is shown to data, and with reference to figure 2, the implementation procedure of system server includes:
S201:Receive data call request;
S202:Determine the very first time unit in the data call request;
S203:The data preserved with the very first time unit are sent to calling terminal, connect so as to call terminal to show The data received;
S204:The data preserved with second chronomere are sent to calling terminal;Second chronomere is small In the very first time unit.
Illustrate:When user needs display 12 small during the data of unit, call request is sent to system server, is The data of 12 hours units are sent to display terminal by system server.It is assumed that the chronomere preserved in system server includes: 12 hours, 8 hours, 1 hour and 0.5 hour, then the future time unit of 12 hours is 8 hours, and display terminal was by this 12 hours After the data of unit are shown, system server, which can preserve 8 hours in case calling as front end data, to be showed.It is assuming that aobvious Show terminal with 8 hours for the data of chronomere after, 1 hour data for chronomere is sent to data end by system server End.
Wherein, when carrying out data display, data can be shown using multiple types of tools, such as Echart can be used The mode of K line charts is shown.
In the present embodiment, user can be by dragging mouse, and by view zoom, the time equivalent to switching display is single Position.Such as:If starting the chronomere of 12 hours of selection, mouse is dragged, view is amplified, it is chronomere to show 8 hours Data.
In the present embodiment, because system server stores according to multiple chronomeres to data, moreover, to every The data of individual chronomere's storage are data after treatment, reduce the memory space of data, are so carrying out data tune Used time, improve the reaction speed of data call.
With reference to figure 3, a kind of structural representation of data storage device provided in an embodiment of the present invention is shown, in this implementation In example, the device includes:
Acquiring unit 301, for obtaining the data at current time;
Updating block 302, for corresponding to the history desired value of parameter according to the data and the data, update the ginseng The current desired value of number;
First judging unit 303, for according to the history flex point of parameter, bearing data described in the data and caching, Judge whether the data are flex point data;
Second judging unit 304, for judging whether current time has reached the current preservation moment;During the current preservation Quarter is determined based on default input time and preset time unit;
Data saving unit 305, if for reached it is described it is current preserve the moment, by the current desired value of the parameter and Default first foundation data are preserved;
Flex point storage unit 306, if being flex point data for the data, update current flex point, the direction of the parameter Data, and current knee value, the current data change direction and default second basic data are preserved.
Optionally, the updating block, including:
First renewal subelement, for judging whether the data are more than the history maximum of the parameter, if being more than institute The history maximum of parameter is stated, the current maximum of the parameter is updated to the data;
Second renewal subelement, for judging whether the data are less than the history minimum value of the parameter, if being less than institute The history minimum value of parameter is stated, the current minimum value of the parameter is updated to the data;
3rd renewal subelement, for the history average according to the data and the parameter, updates the parameter Current average.
Optionally, first judging unit, including:
First determination subelement, for the history flex point data according to the data and the parameter, determine current data Change direction;
First judgment sub-unit, for judge current data change direction and historical data change direction whether phase Together;
Second judgment sub-unit, if being differed for the change direction of current data and the change direction of historical data, sentence Whether the absolute value for the data of breaking has exceeded default dithering threshold;
Second determination subelement, if for having exceeded default dithering threshold, it is flex point data to determine the data.
Optionally, default chronomere is at least one chronomere, in addition to:
Receiving unit, for receiving data call request;
Determining unit, for determining the very first time unit in the data call request;
First transmitting element, for the data preserved with the very first time unit to be sent into calling terminal, so that institute State the data for calling terminal displays reception to arrive;
Second transmitting element, for the data preserved with second chronomere to be sent into calling terminal;Described Two chronomeres are less than the very first time unit.
By the device of the present embodiment, by the current desired value of the parameter and can be preset according to default chronomere First foundation data be saved in database, and after flex point data are determined, by flex point data Cun Chudao databases, phase When only preserved in database be each chronomere renewal data and flex point data, be no longer that real-time reception arrives All data, the memory data output of server is so reduced, also, when carrying out data call, also shorten server Response time, improve inquiry and rendering efficiency.And when reported data amount is very huge beyond the clouds, uses and protected with upper type Deposit important critical data, can also ensure the higher reduction degree of data simultaneously, be easy to follow-up big data application.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (10)

  1. A kind of 1. date storage method, it is characterised in that including:
    Obtain the data at current time;
    The history desired value of parameter is corresponded to according to the data and the data, updates the current desired value of the parameter, and according to According to the history flex point of parameter, bearing data described in the data and caching, judge whether the data are flex point data;
    Judge whether current time has reached the current preservation moment;It is described that current to preserve the moment be based on default input time and pre- What if chronomere determined;
    If having reached the current preservation moment, the current desired value of the parameter and default first foundation data are protected Deposit;
    If the data are flex point data, update current flex point, the bearing data of the parameter, and by the current knee value, The current data change direction and default second basic data are preserved.
  2. 2. according to the method for claim 1, it is characterised in that described to correspond to parameter according to the data and the data History desired value, the current desired value of the parameter is updated, including:
    Judge whether the data are more than the history maximum of the parameter, if more than the history maximum of the parameter, by institute The current maximum for stating parameter is updated to the data;
    Judge whether the data are less than the history minimum value of the parameter, if less than the history minimum value of the parameter, by institute The current minimum value for stating parameter is updated to the data;
    According to the history average of the data and the parameter, the current average of the parameter is updated.
  3. 3. according to the method for claim 1, it is characterised in that the going through according to parameter described in the data and caching History flex point, bearing data, judge whether the data are flex point data, including:
    According to the data and the history flex point data of the parameter, the change direction of current data is determined;
    Judge current data change direction and historical data change direction it is whether identical;
    If the change direction of current data and the change direction of historical data differ, judge whether the absolute value of the data surpasses Default dithering threshold is crossed;
    If having exceeded default dithering threshold, it is flex point data to determine the data.
  4. 4. according to the method for claim 1, it is characterised in that also include:
    Initialize the related data of the parameter;The related data of the parameter includes:It is at least one index of the parameter, defeated The angle of incidence and current time;
    Initialize the flex point record of the parameter;The flex point record includes:The change direction of knee value and data.
  5. 5. according to the method for claim 1, it is characterised in that the default chronomere is that at least one time is single Position.
  6. 6. according to the method for claim 5, it is characterised in that also include:
    Receive data call request;
    Determine the very first time unit in the data call request;
    The data preserved with the very first time unit are sent to calling terminal, so that described call what terminal displays reception arrived Data;
    The data preserved with second chronomere are sent to calling terminal;Second chronomere is less than described first Chronomere.
  7. A kind of 7. data storage device, it is characterised in that including:
    Acquiring unit, for obtaining the data at current time;
    Updating block, for corresponding to the history desired value of parameter according to the data and the data, it is current to update the parameter Desired value;
    First judging unit, for according to the history flex point of parameter, bearing data described in the data and caching, described in judgement Whether data are flex point data;
    Second judging unit, for judging whether current time has reached the current preservation moment;The current preservation moment is base Determined in default input time and preset time unit;
    Data saving unit, if for reached it is described it is current preserve the moment, by the current desired value of the parameter and default First foundation data are preserved;
    Flex point storage unit, if being flex point data for the data, current flex point, the bearing data of the parameter are updated, and Current knee value, the current data change direction and default second basic data are preserved.
  8. 8. device according to claim 7, it is characterised in that the updating block, including:
    First renewal subelement, for judging whether the data are more than the history maximum of the parameter, if being more than the ginseng Several history maximums, the current maximum of the parameter is updated to the data;
    Second renewal subelement, for judging whether the data are less than the history minimum value of the parameter, if being less than the ginseng Several history minimum values, the current minimum value of the parameter is updated to the data;
    3rd renewal subelement, for the history average according to the data and the parameter, updates the current of the parameter Average value.
  9. 9. device according to claim 7, it is characterised in that first judging unit, including:
    First determination subelement, for the history flex point data according to the data and the parameter, determine the change of current data Change direction;
    First judgment sub-unit, for judge current data change direction and historical data change direction it is whether identical;
    Second judgment sub-unit, if being differed for the change direction of current data and the change direction of historical data, judge institute Whether the absolute value for stating data has exceeded default dithering threshold;
    Second determination subelement, if for having exceeded default dithering threshold, it is flex point data to determine the data.
  10. 10. device according to claim 7, it is characterised in that the default chronomere is that at least one time is single Position, in addition to:
    Receiving unit, for receiving data call request;
    Determining unit, for determining the very first time unit in the data call request;
    First transmitting element, for the data preserved with the very first time unit to be sent into calling terminal, so that the tune The data arrived with terminal displays reception;
    Second transmitting element, for the data preserved with second chronomere to be sent into calling terminal;When described second Between unit be less than the very first time unit.
CN201711085632.2A 2017-11-07 2017-11-07 Data storage method and device Active CN107748652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711085632.2A CN107748652B (en) 2017-11-07 2017-11-07 Data storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711085632.2A CN107748652B (en) 2017-11-07 2017-11-07 Data storage method and device

Publications (2)

Publication Number Publication Date
CN107748652A true CN107748652A (en) 2018-03-02
CN107748652B CN107748652B (en) 2021-04-20

Family

ID=61250528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711085632.2A Active CN107748652B (en) 2017-11-07 2017-11-07 Data storage method and device

Country Status (1)

Country Link
CN (1) CN107748652B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767275A (en) * 2020-06-28 2020-10-13 北京林克富华技术开发有限公司 Data processing method and device and data processing system
CN112131210A (en) * 2020-09-16 2020-12-25 珠海格力电器股份有限公司 Data identification method, device, server and storage medium
CN112885065A (en) * 2021-01-14 2021-06-01 武汉宏佳启元科技有限公司 Data transmission processing method
CN111767275B (en) * 2020-06-28 2024-04-19 北京林克富华技术开发有限公司 Data processing method and device and data processing system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2360477A1 (en) * 2009-12-30 2011-08-24 Lifescan, Inc. Systems, devices and methods for improving accuracy of biosensors using fill time
CN102254001A (en) * 2011-07-14 2011-11-23 青岛海信网络科技股份有限公司 Efficient data management method and system
CN102437856A (en) * 2011-11-04 2012-05-02 国电南京自动化股份有限公司 Characteristic point extraction-based three state data compression method of underground integrated monitoring system
CN103207887A (en) * 2013-01-14 2013-07-17 广州佳都信息技术研发有限公司 Efficient historical trend data storage method
US20140358509A1 (en) * 2013-06-03 2014-12-04 General Electric Company Systems and Methods for Presenting Data Associated with a Power Plant Asset
CN104572505A (en) * 2015-02-03 2015-04-29 济南大学 System and method for ensuring eventual consistency of mass data caches
CN104598396A (en) * 2015-02-03 2015-05-06 济南大学 System and method for ensuring caching instantaneity and caching consistency of mass data
CN107273047A (en) * 2017-06-08 2017-10-20 郑州云海信息技术有限公司 A kind of buffer memory management method, cache manager and storage management software

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2360477A1 (en) * 2009-12-30 2011-08-24 Lifescan, Inc. Systems, devices and methods for improving accuracy of biosensors using fill time
CN102254001A (en) * 2011-07-14 2011-11-23 青岛海信网络科技股份有限公司 Efficient data management method and system
CN102437856A (en) * 2011-11-04 2012-05-02 国电南京自动化股份有限公司 Characteristic point extraction-based three state data compression method of underground integrated monitoring system
CN103207887A (en) * 2013-01-14 2013-07-17 广州佳都信息技术研发有限公司 Efficient historical trend data storage method
US20140358509A1 (en) * 2013-06-03 2014-12-04 General Electric Company Systems and Methods for Presenting Data Associated with a Power Plant Asset
CN104572505A (en) * 2015-02-03 2015-04-29 济南大学 System and method for ensuring eventual consistency of mass data caches
CN104598396A (en) * 2015-02-03 2015-05-06 济南大学 System and method for ensuring caching instantaneity and caching consistency of mass data
CN107273047A (en) * 2017-06-08 2017-10-20 郑州云海信息技术有限公司 A kind of buffer memory management method, cache manager and storage management software

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈玲剑、王勇等: "基于网络延时CEPH存储性能优化方法", 《微电子学与计算机》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767275A (en) * 2020-06-28 2020-10-13 北京林克富华技术开发有限公司 Data processing method and device and data processing system
CN111767275B (en) * 2020-06-28 2024-04-19 北京林克富华技术开发有限公司 Data processing method and device and data processing system
CN112131210A (en) * 2020-09-16 2020-12-25 珠海格力电器股份有限公司 Data identification method, device, server and storage medium
CN112885065A (en) * 2021-01-14 2021-06-01 武汉宏佳启元科技有限公司 Data transmission processing method

Also Published As

Publication number Publication date
CN107748652B (en) 2021-04-20

Similar Documents

Publication Publication Date Title
CN107026907B (en) Load balancing method, load balancer and load balancing system
US20210385171A1 (en) Software load balancer to maximize utilization
US8909725B1 (en) Content delivery network for ephemeral objects
JP6312751B2 (en) Query of business service processing status information
US6792510B1 (en) System and method for updating a cache
US20120324463A1 (en) System for Managing Data Collection Processes
CN107748652A (en) A kind of date storage method and device
CN109388351A (en) A kind of method and relevant apparatus of Distributed Storage
CN109274710A (en) Network load balancing method, device and cluster service system
CN107645520A (en) A kind of load-balancing method, device and system
CN109150745A (en) A kind of message processing method and device
CN107305570B (en) Data retrieval method and system
CN107819745B (en) Method and device for defending against abnormal traffic
CN108460030A (en) A kind of set element judgment method based on improved Bloom filter
CN108880885A (en) A kind of message processing method and device
Mitrani et al. Routing in the Presence of Breakdowns
US10713279B2 (en) Enhanced replication
CN105022753B (en) A kind of date storage method and system
CN104239538B (en) A kind of snapshot-type log compression method, system and device
CN116703071A (en) Resource sharing method, device and equipment and storage medium
CN104978327B (en) A kind of method, management control node and the target data node of inquiry data
CN104243587A (en) Load balancing method and system for message servers
CN105897560B (en) A kind of method and apparatus loading new mail in the mailbox client of mobile device
CN105471943B (en) The method that server and its distribution client device update firmware
CN103384219A (en) E-mail sending method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant