CN110147380A - Data-updating method, device, server and storage medium - Google Patents

Data-updating method, device, server and storage medium Download PDF

Info

Publication number
CN110147380A
CN110147380A CN201910436055.XA CN201910436055A CN110147380A CN 110147380 A CN110147380 A CN 110147380A CN 201910436055 A CN201910436055 A CN 201910436055A CN 110147380 A CN110147380 A CN 110147380A
Authority
CN
China
Prior art keywords
eigenvalue
data
terminal
target object
server
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
CN201910436055.XA
Other languages
Chinese (zh)
Other versions
CN110147380B (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.)
Tencent Technology Chengdu Co Ltd
Original Assignee
Tencent Technology Chengdu 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 Tencent Technology Chengdu Co Ltd filed Critical Tencent Technology Chengdu Co Ltd
Priority to CN201910436055.XA priority Critical patent/CN110147380B/en
Publication of CN110147380A publication Critical patent/CN110147380A/en
Application granted granted Critical
Publication of CN110147380B publication Critical patent/CN110147380B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (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

The invention discloses a kind of data-updating method, device, server and storage mediums, belong to technical field of image processing.The present invention passes through when receiving data acquisition request, characteristic value entrained by the data acquisition request is matched with the multiple characteristic values safeguarded based on the data change operation on server, so that it is determined that data change record corresponding to the characteristic value of successful match, and data change record can represent the difference of data and data on server in the terminal, therefore, the data distributing of increment type need to be only carried out based on the data change record, the part that increment changes only is returned to terminal every time, also avoids the waste of data traffic.

Description

Data-updating method, device, server and storage medium
Technical field
The present invention relates to network technique field, in particular to a kind of data-updating method, device, server and storage are situated between Matter.
Background technique
With the development of network technology, more and more applications can provide various data services for user, for example, when using Family in application, when may need to obtain such as race list live information, then can be arranged using live streaming from server pull race Table.It is, of course, also possible to pull the data such as friend relation chain, military success list based on different use demands.These data are logical It is often the data packet that the scale of construction is larger, structure is more complex, update is not frequent, if pulled again every time, will cause A large amount of useless flow waste.
In order to save flow, general way is to carry out Hash operation, the Hash that will be calculated for these data packets Value is issued to client, and client first judges the Kazakhstan that cryptographic Hash and server in client request save when pulling Whether uncommon value, equally then shows that this data has no update after pulling apart from last time, so server does not need to return Duplicate data are returned, the flow of this request is saved.
However, above-mentioned way reduce to a certain extent repetition update consumed by flow, but there are still it is some not Foot.Increase inside part or minor variations, such as friend relation chain when data only have occurred, reduce a good friend, it is this The cryptographic Hash that local or tiny variation also results in entire data changes, and leading to server still can determine to need again Entire data are issued, that is to say, can repeat to issue remaining most of identical data, a large amount of flow is caused to waste.
Summary of the invention
The embodiment of the invention provides a kind of data-updating method, device, server and readable storage medium storing program for executing, Neng Goushi Existing incremental update, avoids the waste of flow.The technical solution is as follows:
On the one hand, a kind of data-updating method is provided, which comprises
The data acquisition request of terminal is received, the data acquisition request carries the First Eigenvalue, the First Eigenvalue For the characteristic value of the stored target object of terminal;
It according to the First Eigenvalue, is matched at least one Second Eigenvalue of server, described second is special Value indicative is characteristic value of the target object after data change operation at least once;
The corresponding at least one data change record of target Second Eigenvalue is issued to the terminal, wherein the mesh Marking Second Eigenvalue is the Second Eigenvalue with the First Eigenvalue successful match.
On the one hand, a kind of data update apparatus is provided, which comprises
Receiving module, for receiving the data acquisition request of terminal, the data acquisition request carries the First Eigenvalue, institute State the characteristic value that the First Eigenvalue is the stored target object of terminal;
Matching module is used for the progress at least one Second Eigenvalue of server according to the First Eigenvalue Match, the Second Eigenvalue is characteristic value of the target object after data change operation at least once;
Module is issued, for the corresponding at least one data change record of target Second Eigenvalue to be issued to the end End, wherein the target Second Eigenvalue is the Second Eigenvalue with the First Eigenvalue successful match.
In a kind of possible implementation, the matching module is used to determine described first according to the First Eigenvalue The generation time of characteristic value;According to the generation time of the First Eigenvalue, generated at least one described Second Eigenvalue Time is later than in the Second Eigenvalue of generation time of the First Eigenvalue, successively according to generation time vertical sequence It is matched.
On the one hand, a kind of server is provided, the server includes processor and memory, is stored in the memory There is at least one instruction, described instruction is loaded as the processor and executed to realize as performed by above-mentioned data-updating method Operation.
On the one hand, provide a kind of computer readable storage medium, be stored in the computer readable storage medium to A few instruction, described instruction are loaded as the processor and are executed to realize the behaviour as performed by above-mentioned data-updating method Make.
Technical solution provided in an embodiment of the present invention, by when receiving data acquisition request, by the data acquisition The entrained characteristic value of request is matched with the multiple characteristic values safeguarded based on the data change operation on server, so that it is determined that Data change record corresponding to the characteristic value of successful match, and data change record can represent data and service in the terminal Therefore the difference of data on device need to only be carried out the data distributing of increment type based on the data change record, only be returned every time to terminal The part of the amount of increasing back up variation, also avoids the waste of data traffic.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 shows the structural block diagram of the application service system 100 of one exemplary embodiment of the application offer;
Fig. 2 is a kind of flow chart of data-updating method provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of data-updating method provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of data storage method provided in an embodiment of the present invention;
Fig. 5 is a kind of flow chart of method for recording data change operation provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of data update apparatus provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of server provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 shows the structural block diagram of the application service system 100 of one exemplary embodiment of the application offer.The application Service system 100 includes: terminal 110 and application service platform 140.
Terminal 110 is connected by wireless network or cable network with application service platform 110.Terminal 110 can be intelligence Mobile phone, game host, desktop computer, tablet computer, E-book reader, MP3 player, MP4 player and it is on knee just Take at least one of computer.110 installation and operation of terminal has the application program for supporting application service.The application program can be with Be games, social application program, instant messaging application program, video program be for example broadcast live in program any one.Show Meaning property, terminal 110 is the terminal that the first user uses, and user's account can be logged in the application program run in terminal 110 Number.
Terminal 110 is connected by wireless network or cable network with application service platform 140.
Application service platform 140 include a server, multiple servers, cloud computing platform and virtualization center in extremely Few one kind.Optionally, application service platform 140 includes: logical server, database of record and content data base.Logic clothes Business device provides request processing service for providing terminal 110.Logical server can be one or more.When logical server is At more, there are at least two logical servers for providing different services, and/or, there are at least two logical servers Same service is provided for providing identical service, such as with load balancing mode, the embodiment of the present application does not limit this It is fixed.The content data base is used to store the data content of application service platform, can also provide the full dose more new function of terminal, should Database of record is used to record data change operation in the content data base, and based on the data next life after data change operation It at corresponding characteristic value, and safeguards the corresponding relationship between data change record and characteristic value, is provided so as to subsequent for terminal The function of incremental update.
Terminal 110 can refer to one in multiple terminals, and the present embodiment is only illustrated with terminal 110.This field Technical staff could be aware that the quantity of above-mentioned terminal can be more or less.For example above-mentioned terminal can be only one, Huo Zheshang Stating terminal is tens or several hundred or greater number, and above-mentioned application service system further includes other terminals at this time.The application Embodiment is not limited the quantity and device type of terminal.
Fig. 2 is a kind of flow chart of data-updating method provided in an embodiment of the present invention.Referring to fig. 2, it is taken with terminal, logic Business device, record server and content server between interaction for be illustrated, the process can specifically include terminal to The mistake of the acquisition of incremental data is carried out between logical server request data, logical server and database of record based on request Journey, certainly, in order to realize the acquisition of above-mentioned incremental data, for content data base, it is also necessary to be related to becoming in data The process of Notification Record database when more.In the following, in conjunction with Fig. 2 and process shown in Fig. 3, to the interaction flow of the embodiment of the present invention It is specifically described.
301, terminal sends data acquisition request to logical server, which carries the First Eigenvalue, should The First Eigenvalue is the characteristic value of the stored target object of terminal.
For terminal, the data acquisition request of the target object can be periodic triggers either in the target pair Triggering when being updated as place webpage then can be from terminal storing data when terminal triggers data acquisition process The First Eigenvalue is obtained, that is to say, the characteristic value of the target object, which is carried and is sent out in data acquisition request It send.
In any secondary renewal process to target object, terminal is available to for indicating working as the target object The characteristic value of preceding data content, this feature value can be obtained by logical server at no point in the update process by terminal, be also possible to It is generated after having carried out data and having updated based on the updated data of terminal local, it is not limited in the embodiment of the present invention.
Wherein, which can be any object, for example, some table data, some common contextual data, some Common page etc., that is to say, instructs when terminal receives any list load, then obtains the List Identification and list Hash The List Identification and list cryptographic Hash are carried and are issued in data acquisition request by value, other situations and this process are similarly.The spy Value indicative can be the cryptographic Hash of data, the data content for the unique identification data, it is to be understood that characteristic value difference is then Data content is different, and therefore, the comparison between characteristic value can determine whether data content is changed.
In some embodiments, which can also carry what last data updated when sending data acquisition request Timestamp or version number, to identify the last time updated or version, certainly, version number can also use the expression of timestamp Form, it is not limited in the embodiment of the present invention.
It should be noted that the logical server can preset object listing, characteristic value is able to carry out for storing Matched object, then when receiving data acquisition request, logical server can detecte the target pair of the data acquisition request As;When the target object is present in object listing, then this is executed according to the First Eigenvalue, at least one of server The step of being matched in Second Eigenvalue;When the target object is not present in the object listing, then by the First Eigenvalue It is matched with third feature value, the characteristic value which is currently stored on that server for the target object.
302, the logical server sends matching request to database of record after the data acquisition request received, should Matching request carries the First Eigenvalue.
Database of record is used to record data change operation in content data base, and based on the number after data change operation According to generating corresponding characteristic value, and safeguard the corresponding relationship between data change operation and characteristic value.Certainly, for each For target object, which can safeguard corresponding data according to object identity come respectively each target object. Therefore, which can initiate matching process to database of record, so as to true based on the data acquisition request received Which data of the fixed target object are changed.
In embodiments of the present invention, logical server, which is mainly responsible for, handles the request received, and request is corresponded to Data acquisition task corresponding database be distributed to by the method for matching request handled, so as to avoid single service Device realizes the case where load excessive caused by each function, it is ensured that the operation of the normal table of whole system.
303, the database of record is after receiving matching request, according to the First Eigenvalue, at least one the second spy It is matched in value indicative, determines target Second Eigenvalue, which is that the target object is changed in data at least once Characteristic value after operation, the target Second Eigenvalue are the Second Eigenvalue with the First Eigenvalue successful match.
The database of record is when receiving matching request, the object mark for the target object that can be carried according to matching request Know, determines at least one corresponding Second Eigenvalue of the object identity, then based at least one Second Eigenvalue and the matching The entrained the First Eigenvalue of request is matched, to determine the Second Eigenvalue of successful match.
In a kind of possible implementation, the matching process may include: according to the First Eigenvalue, at this at least one In Second Eigenvalue according to generate time vertical sequence successively matched, when the First Eigenvalue and any one second Characteristic value is identical, it is determined that successful match.Wherein, generating the time refers to generation time of Second Eigenvalue, for any one the It for two characteristic values, is generated according to the data change operation occurred in content data base, therefore, generating the time can To indicate the changed time between data content, thus matched according to time vertical sequence is generated, it can be with So that matching process is more orderly, the case where matching entanglement not will cause.
In some embodiments, it when successively being matched according to generation time vertical sequence, is also based on The generation time of the First Eigenvalue improves matched efficiency, that is to say, according to the First Eigenvalue, determines the First Eigenvalue The generation time;According to the generation time of the First Eigenvalue, the generation time is later than this at least one Second Eigenvalue In the Second Eigenvalue of the generation time of the First Eigenvalue, successively matched according to time vertical sequence is generated.Its In, the generation time of the First Eigenvalue can indicate data content that terminal is updated in the renewal time of server, therefore, That is to say, the data of the bright stored target object of terminal have been updated to the generation time, then, in the generation time Data before are the data of updated completion, there is no need to match to this partial data, only for the terminal It needs to be compared the Second Eigenvalue for generating the generation time that the time is later than the First Eigenvalue, greatly reduce matched Calculation amount improves matched efficiency.
In some embodiments, which can also carry version number, then matching request can also carry this Version number, Second Eigenvalue corresponding to the more new version after database of record side can determine the version number, then be based on Second Eigenvalue corresponding to the more new version of this part is matched, and to reduce matched calculation amount, improves matched efficiency.
304, the database of record obtains the corresponding at least one data change record of the target Second Eigenvalue.
Wherein, data change record includes data change type and change data, for example, for data modification operation, The data change type can be modification, and change data can be modified data, and for data delete operation, which becomes More type can be to delete, and change data can be the information of data to be deleted, such as data name, the data of data to be deleted Mark etc..The data change record is generated based on any secondary data change operation of content data base, and specifically, a data becomes More record can correspond to data change operation at least once, and it is not limited in the embodiment of the present invention.
In some embodiments, database of record can deposit data change record using key assignments type database Storage.For example, with reference to shown in Fig. 4, for different objects, it can correspond to and be stored with its each data change record and Hash Value.
305, at least one data change record is sent to logical server by the database of record.
306, at least one data change record received is issued to the terminal by the logical server.
In above-mentioned steps 305 to 306, after database of record gets data change record, then it can pass through logic The data change record is issued to the terminal by server, and terminal is accordingly updated.
307, terminal is after receiving at least one data change record, more based on at least one data change record The stored target object of new terminal.
Terminal can be changed after receiving at least one data change record based on the data in data change record Type and change data, carry out corresponding update to stored target object at the terminal, for example, working as data change type When for data modification operation, then the corresponding data in stored target object is updated to the change data, when data change When type is data delete operation, then the corresponding data in stored target object is deleted.
In some embodiments, terminal can be generated special after having carried out corresponding update based on updated target object Value indicative covers original characteristic value with newly-generated characteristic value, to apply new life when needing to carry out data acquisition next time At characteristic value come carry out the increment as shown in the above process obtain.
It in some embodiments, can also be by target when database of record is when sending an at least data change record Second Eigenvalue is sent together, so that terminal can receive at least one data change record and target Second Eigenvalue, is used The target Second Eigenvalue covers original characteristic value, then regenerates characteristic value without terminal, reduce the calculation amount of terminal.
Technical solution provided in an embodiment of the present invention, by when receiving data acquisition request, by the data acquisition The entrained characteristic value of request is matched with the multiple characteristic values safeguarded based on the data change operation on server, so that it is determined that Data change record corresponding to the characteristic value of successful match, and data change record can represent data and service in the terminal Therefore the difference of data on device need to only be carried out the data distributing of increment type based on the data change record, only be returned every time to terminal The part of the amount of increasing back up variation, also avoids the waste of data traffic.
The process that data update how is carried out for terminal is provided in the above-described embodiments, and in order to realize above-mentioned data more New process, database of record are needed to record the data change in content data base, be carried out below for the recording process Illustrate, referring to Fig. 5, which may include:
501, when detecting that any data change operation occurs for the target object in content data base, the content data base Data Notification of Changes is sent to database of record, which carries the data change operation.
502, database of record generates data change based on the data change operation after receiving the data Notification of Changes Record is based on the data change operation and stored data content, generates Second Eigenvalue.
503, database of record by the data change record of the target object it is corresponding with Second Eigenvalue storage.
For any object, the data change record of the object and corresponding Second Eigenvalue can be stored in the object The sequence of operation in, when related data has altered in content data base, be then based on the above process, database of record will record this Change, to guarantee the consistency of data.
The process of above-mentioned record data change operation can be every time data change occurs operation when progress, be also possible to base It is carried out in the data change operation of preset number, database of record can be obtained first when receiving arbitrary data Notification of Changes Data change operation, and data change operation is stored into buffer queue, when the buffer queue has been expired, then by buffer queue Middle stored data change operation generates data change record, avoids reading and writing data excessively frequent.
Above-described embodiment can be applied in any application scenarios, and it is not limited in the embodiment of the present invention.In addition, needing It is noted that above-described embodiment can be applied to include in the system architecture of database of record, and in some embodiments, The database of record can be used as a part of content data base, which kind of system architecture is the embodiment of the present invention to being applied particularly to not It is specifically limited.
The embodiment of the present invention increases database of record in systems, can be by the data of the object for any object Change record and corresponding Second Eigenvalue are stored in the sequence of operation of the object, when related data has in content data base Change is then based on the above process, and database of record will record the change, to guarantee the consistency of data.
Fig. 6 is a kind of structural schematic diagram of data update apparatus provided in an embodiment of the present invention, referring to Fig. 6, described device Include:
Receiving module 601, for receiving the data acquisition request of terminal, the data acquisition request carries fisrt feature Value, the First Eigenvalue are the characteristic value of the stored target object of terminal;
Matching module 602, for being carried out at least one Second Eigenvalue of server according to the First Eigenvalue Matching, the Second Eigenvalue are characteristic value of the target object after data change operation at least once;
Module 603 is issued, it is described for the corresponding at least one data change record of target Second Eigenvalue to be issued to Terminal, wherein the target Second Eigenvalue is the Second Eigenvalue with the First Eigenvalue successful match.
In a kind of possible implementation, the matching module 602 is used for according to the First Eigenvalue, it is described at least In one Second Eigenvalue according to generate time vertical sequence successively matched, when the First Eigenvalue with it is any A Second Eigenvalue is identical, it is determined that successful match.
In a kind of possible implementation, the matching module is used to determine described first according to the First Eigenvalue The generation time of characteristic value;According to the generation time of the First Eigenvalue, generated at least one described Second Eigenvalue Time is later than in the Second Eigenvalue of generation time of the First Eigenvalue, successively according to generation time vertical sequence It is matched.
In a kind of possible implementation, described device further include:
Exception processes module, for becoming based on the data when any data change operation occurs for the target object More operation generates data change record;Based on the target object Jing Guo the data change operation, generates and changed with the data Record corresponding Second Eigenvalue.
Fig. 7 is a kind of structural schematic diagram of server provided in an embodiment of the present invention, which can be because of configuration or property Energy is different and generates bigger difference, may include one or more processors (centralprocessing Units, CPU) 701 and one or more memory 702, wherein at least one finger is stored in the memory 702 It enables, which is loaded by the processor 701 and executed the data to realize above-mentioned each embodiment of the method offer more New method.Certainly, which can also have the components such as wired or wireless network interface, keyboard and input/output interface, To carry out input and output, which can also include other for realizing the component of functions of the equipments, and this will not be repeated here.
Terminal involved in above-described embodiment can be using the framework such as Fig. 8, and Fig. 8 is provided in an embodiment of the present invention one The structural schematic diagram of kind terminal.The terminal 800 can be portable mobile termianl, such as: smart phone, tablet computer, MP3 are broadcast Put device (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio layer Face 3), MP4 (Moving Picture Experts Group AudioLayer IV, dynamic image expert's compression standard audio Level 4) player, laptop, desktop computer, headset equipment or any other intelligent terminal.Terminal 800 is also possible to Referred to as other titles such as user equipment, portable terminal, laptop terminal, terminal console.
In general, terminal 800 includes: processor 801 and memory 802.
Processor 801 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place Reason device 801 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 801 also may include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.? In some embodiments, processor 801 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 801 can also be wrapped AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning Calculating operation.
Memory 802 may include one or more computer readable storage mediums, which can To be non-transient.Memory 802 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 802 can Storage medium is read for storing at least one instruction, at least one instruction by processor 801 for being had to realize this Shen Please in embodiment of the method provide data-updating method.
In some embodiments, terminal 800 is also optional includes: peripheral device interface 803 and at least one peripheral equipment. It can be connected by bus or signal wire between processor 801, memory 802 and peripheral device interface 803.Each peripheral equipment It can be connected by bus, signal wire or circuit board with peripheral device interface 803.Specifically, peripheral equipment includes: radio circuit 804, at least one of touch display screen 805, camera 806, voicefrequency circuit 807, positioning component 808 and power supply 809.
Peripheral device interface 803 can be used for I/O (Input/Output, input/output) is relevant outside at least one Peripheral equipment is connected to processor 801 and memory 802.In some embodiments, processor 801, memory 802 and peripheral equipment Interface 803 is integrated on same chip or circuit board;In some other embodiments, processor 801, memory 802 and outer Any one or two in peripheral equipment interface 803 can realize on individual chip or circuit board, the present embodiment to this not It is limited.
Radio circuit 804 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.It penetrates Frequency circuit 804 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 804 turns electric signal It is changed to electromagnetic signal to be sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 804 wraps It includes: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, codec chip Group, user identity module card etc..Radio circuit 804 can be carried out by least one wireless communication protocol with other terminals Communication.The wireless communication protocol includes but is not limited to: Metropolitan Area Network (MAN), each third generation mobile communication network (2G, 3G, 4G and 8G), wireless office Domain net and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, radio circuit 804 may be used also To include the related circuit of NFC (Near Field Communication, wireless near field communication), the application is not subject to this It limits.
Display screen 805 is for showing UI (User Interface, user interface).The UI may include figure, text, figure Mark, video and its their any combination.When display screen 805 is touch display screen, display screen 805 also there is acquisition to show The ability of the touch signal on the surface or surface of screen 805.The touch signal can be used as control signal and be input to processor 801 are handled.At this point, display screen 805 can be also used for providing virtual push button and/or dummy keyboard, also referred to as soft button and/or Soft keyboard.In some embodiments, display screen 805 can be one, and the front panel of terminal 800 is arranged;In other embodiments In, display screen 805 can be at least two, be separately positioned on the different surfaces of terminal 800 or in foldover design;In still other reality It applies in example, display screen 805 can be flexible display screen, be arranged on the curved surface of terminal 800 or on fold plane.Even, it shows Display screen 805 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 805 can use LCD (Liquid Crystal Display, liquid crystal display), OLED (OrganicLight-Emitting Diode, Organic Light Emitting Diode) Etc. materials preparation.
CCD camera assembly 806 is for acquiring image or video.Optionally, CCD camera assembly 806 include front camera and Rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.One In a little embodiments, rear camera at least two is main camera, depth of field camera, wide-angle camera, focal length camera shooting respectively Any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide-angle Camera fusion realizes that pan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are clapped Camera shooting function.In some embodiments, CCD camera assembly 806 can also include flash lamp.Flash lamp can be monochromatic warm flash lamp, It is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for not With the light compensation under colour temperature.
Voicefrequency circuit 807 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and will Sound wave, which is converted to electric signal and is input to processor 801, to be handled, or is input to radio circuit 804 to realize voice communication. For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of terminal 800 to be multiple.Mike Wind can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 801 or radio circuit will to be come from 804 electric signal is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramic loudspeaker.When When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, it can also be by telecommunications Number the sound wave that the mankind do not hear is converted to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 807 can also include Earphone jack.
Positioning component 808 is used for the current geographic position of positioning terminal 800, to realize navigation or LBS (Location Based Service, location based service).Positioning component 808 can be the GPS (Global based on the U.S. Positioning System, global positioning system), the dipper system of China, Russia Gray receive this system or European Union The positioning component of Galileo system.
Power supply 809 is used to be powered for the various components in terminal 800.Power supply 809 can be alternating current, direct current, Disposable battery or rechargeable battery.When power supply 809 includes rechargeable battery, which can support wired charging Or wireless charging.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 800 further includes having one or more sensors 810.The one or more sensors 810 include but is not limited to: acceleration transducer 811, gyro sensor 812, pressure sensor 813, fingerprint sensor 814, Optical sensor 815 and proximity sensor 816.
The acceleration that acceleration transducer 811 can detecte in three reference axis of the coordinate system established with terminal 811 is big It is small.For example, acceleration transducer 811 can be used for detecting component of the acceleration of gravity in three reference axis.Processor 801 can With the acceleration of gravity signal acquired according to acceleration transducer 811, touch display screen 805 is controlled with transverse views or longitudinal view Figure carries out the display of user interface.Acceleration transducer 811 can be also used for the acquisition of game or the exercise data of user.
Gyro sensor 812 can detecte body direction and the rotational angle of terminal 800, and gyro sensor 812 can To cooperate with acquisition user to act the 3D of terminal 800 with acceleration transducer 811.Processor 801 is according to gyro sensor 812 Following function may be implemented in the data of acquisition: when action induction (for example changing UI according to the tilt operation of user), shooting Image stabilization, game control and inertial navigation.
The lower layer of side frame and/or touch display screen 805 in terminal 800 can be set in pressure sensor 813.Work as pressure When the side frame of terminal 800 is arranged in sensor 813, user can detecte to the gripping signal of terminal 800, by processor 801 Right-hand man's identification or prompt operation are carried out according to the gripping signal that pressure sensor 813 acquires.When the setting of pressure sensor 813 exists When the lower layer of touch display screen 805, the pressure operation of touch display screen 805 is realized to UI circle according to user by processor 801 Operability control on face is controlled.Operability control includes button control, scroll bar control, icon control, menu At least one of control.
Fingerprint sensor 814 is used to acquire the fingerprint of user, collected according to fingerprint sensor 814 by processor 801 The identity of fingerprint recognition user, alternatively, by fingerprint sensor 814 according to the identity of collected fingerprint recognition user.It is identifying When the identity of user is trusted identity out, authorize the user that there is relevant sensitive operation, the sensitive operation packet by processor 801 Include solution lock screen, check encryption information, downloading software, payment and change setting etc..Terminal can be set in fingerprint sensor 814 800 front, the back side or side.When being provided with physical button or manufacturer Logo in terminal 800, fingerprint sensor 814 can be with It is integrated with physical button or manufacturer's mark.
Optical sensor 815 is for acquiring ambient light intensity.In one embodiment, processor 801 can be according to optics The ambient light intensity that sensor 815 acquires controls the display brightness of touch display screen 805.Specifically, when ambient light intensity is higher When, the display brightness of touch display screen 805 is turned up;When ambient light intensity is lower, the display for turning down touch display screen 805 is bright Degree.In another embodiment, the ambient light intensity that processor 801 can also be acquired according to optical sensor 815, dynamic adjust The acquisition parameters of CCD camera assembly 806.
Proximity sensor 816, also referred to as range sensor are generally arranged at the front panel of terminal 800.Proximity sensor 816 For acquiring the distance between the front of user Yu terminal 800.In one embodiment, when proximity sensor 816 detects use When family and the distance between the front of terminal 800 gradually become smaller, touch display screen 805 is controlled from bright screen state by processor 801 It is switched to breath screen state;When proximity sensor 816 detects user and the distance between the front of terminal 800 becomes larger, Touch display screen 805 is controlled by processor 801 and is switched to bright screen state from breath screen state.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal 800 of structure shown in Fig. 8, can wrap It includes than illustrating more or fewer components, perhaps combine certain components or is arranged using different components.
In the exemplary embodiment, a kind of computer readable storage medium is additionally provided, the memory for example including instruction, Above-metioned instruction can be executed by the processor in terminal or server to complete the data-updating method in above-described embodiment.For example, The computer readable storage medium can be read-only memory (Read-OnlyMemory, ROM), random access memory (Random Access Memory, RAM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM), magnetic Band, floppy disk and optical data storage devices etc..
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, which can store in a kind of computer-readable storage In medium, storage medium mentioned above can be read-only memory, disk or CD etc..
It above are only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all in the spirit and principles in the present invention Within, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of data-updating method, which is characterized in that the described method includes:
The data acquisition request of terminal is received, the data acquisition request carries the First Eigenvalue, and the First Eigenvalue is eventually Hold the characteristic value of stored target object;
According to the First Eigenvalue, matched at least one Second Eigenvalue of server, the Second Eigenvalue For characteristic value of the target object after data change operation at least once;
The corresponding at least one data change record of target Second Eigenvalue is issued to the terminal, wherein the target Two characteristic values are the Second Eigenvalue with the First Eigenvalue successful match.
2. the method according to claim 1, wherein described according to the First Eigenvalue, server extremely Carrying out matching in a few Second Eigenvalue includes:
According to the First Eigenvalue, at least one described Second Eigenvalue according to generate time vertical sequence according to It is secondary to be matched, when the First Eigenvalue is identical as any one Second Eigenvalue, it is determined that successful match.
3. according to the method described in claim 2, it is characterized in that, described according to the First Eigenvalue, described at least one Successively carrying out matching according to generation time vertical sequence in a Second Eigenvalue includes:
According to the First Eigenvalue, the generation time of the First Eigenvalue is determined;
According to the generation time of the First Eigenvalue, generating the time at least one described Second Eigenvalue is later than described the In the Second Eigenvalue of the generation time of one characteristic value, successively matched according to time vertical sequence is generated.
4. the method according to claim 1, wherein it is described receive terminal data acquisition request before, it is described Method further include:
When any data change operation occurs for the target object, change operation generates data change note based on the data Record;
Based on the target object Jing Guo the data change operation, second feature corresponding with the data change record is generated Value.
5. the method according to claim 1, wherein it is described receive terminal data acquisition request after, it is described Method further include:
Detect the target object of the data acquisition request;
When the target object is present in object listing, then execute it is described according to the First Eigenvalue, in server The step of being matched at least one Second Eigenvalue;
When the target object is not present in the object listing, then by the First Eigenvalue and the progress of third feature value Match, the characteristic value that the third feature value is currently stored on the server by the target object.
6. a kind of data update apparatus, which is characterized in that the described method includes:
Receiving module, for receiving the data acquisition request of terminal, the data acquisition request carries the First Eigenvalue, and described the One characteristic value is the characteristic value of the stored target object of terminal;
Matching module, for being matched at least one Second Eigenvalue of server, institute according to the First Eigenvalue Stating Second Eigenvalue is characteristic value of the target object after data change operation at least once;
Module is issued, for the corresponding at least one data change record of target Second Eigenvalue to be issued to the terminal, In, the target Second Eigenvalue is the Second Eigenvalue with the First Eigenvalue successful match.
7. device according to claim 6, which is characterized in that the matching module is used for according to the First Eigenvalue, It is successively matched at least one described Second Eigenvalue according to generation time vertical sequence, as first spy Value indicative is identical as any one Second Eigenvalue, it is determined that successful match.
8. device according to claim 6, which is characterized in that described device further include:
Exception processes module, for when any data change operation occurs for the target object, change to be grasped based on the data Make to generate data change record;Based on the target object Jing Guo the data change operation, generate and the data change record Corresponding Second Eigenvalue.
9. a kind of server, which is characterized in that the server includes processor and memory, be stored in the memory to A few instruction, described instruction are loaded by the processor and are executed to realize such as any one of claim 1 to claim 5 institute Operation performed by the data-updating method stated.
10. a kind of computer readable storage medium, which is characterized in that be stored at least one in the computer readable storage medium Item instruction, described instruction are loaded by the processor and are executed to realize as claim 1 is described in any item to claim 5 Operation performed by data-updating method.
CN201910436055.XA 2019-05-23 2019-05-23 Data updating method, device, server and storage medium Active CN110147380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910436055.XA CN110147380B (en) 2019-05-23 2019-05-23 Data updating method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910436055.XA CN110147380B (en) 2019-05-23 2019-05-23 Data updating method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN110147380A true CN110147380A (en) 2019-08-20
CN110147380B CN110147380B (en) 2023-11-24

Family

ID=67592783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910436055.XA Active CN110147380B (en) 2019-05-23 2019-05-23 Data updating method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN110147380B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569311A (en) * 2019-10-30 2019-12-13 上海商魁信息科技有限公司 Data synchronization method and device for database and computer storage medium
CN110825762A (en) * 2019-11-14 2020-02-21 北京融易做科技有限公司 Data storage method, device and system
CN111339107A (en) * 2020-02-10 2020-06-26 支付宝(杭州)信息技术有限公司 Comparison source data synchronization method and device, electronic equipment and storage medium
CN111708335A (en) * 2020-06-03 2020-09-25 深圳前海禾盈科技有限公司 Equipment data acquisition method based on smart factory
CN111752240A (en) * 2020-06-03 2020-10-09 深圳前海禾盈科技有限公司 Construction method of automatic production control framework

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1790266A (en) * 2004-12-14 2006-06-21 微软公司 Method and system for downloading updates
CN102904887A (en) * 2012-09-26 2013-01-30 东软集团股份有限公司 Method and system for data synchronization of Web client and server
CN103108024A (en) * 2012-11-14 2013-05-15 福建联迪商用设备有限公司 Incremental downloading method for multi-media self-service terminal
CN103164422A (en) * 2011-12-09 2013-06-19 百度在线网络技术(北京)有限公司 Method, equipment and system for conducting data synchronism by adopting general data storage format
US20140279886A1 (en) * 2013-03-15 2014-09-18 Wal-Mart Stores, Inc. Incrementally updating a large key-value store
US20160093206A1 (en) * 2014-09-26 2016-03-31 Here Global B.V. Method and apparatus for providing smaller incremental updates to a navigational database
CN105468623A (en) * 2014-09-03 2016-04-06 阿里巴巴集团控股有限公司 Data processing method and apparatus
CN105740259A (en) * 2014-12-09 2016-07-06 阿里巴巴集团控股有限公司 Method and device for processing incremental data
CN105808373A (en) * 2014-12-30 2016-07-27 中兴通讯股份有限公司 Incremental backup method and device of data, and NAS (Network Attached Storage) equipment
CN105868361A (en) * 2016-03-29 2016-08-17 中国银行股份有限公司 Data updating method and device
CN109597717A (en) * 2018-12-07 2019-04-09 北京金山云网络技术有限公司 A kind of data backup, restoration methods, device, electronic equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1790266A (en) * 2004-12-14 2006-06-21 微软公司 Method and system for downloading updates
CN103164422A (en) * 2011-12-09 2013-06-19 百度在线网络技术(北京)有限公司 Method, equipment and system for conducting data synchronism by adopting general data storage format
CN102904887A (en) * 2012-09-26 2013-01-30 东软集团股份有限公司 Method and system for data synchronization of Web client and server
CN103108024A (en) * 2012-11-14 2013-05-15 福建联迪商用设备有限公司 Incremental downloading method for multi-media self-service terminal
US20140279886A1 (en) * 2013-03-15 2014-09-18 Wal-Mart Stores, Inc. Incrementally updating a large key-value store
CN105468623A (en) * 2014-09-03 2016-04-06 阿里巴巴集团控股有限公司 Data processing method and apparatus
US20160093206A1 (en) * 2014-09-26 2016-03-31 Here Global B.V. Method and apparatus for providing smaller incremental updates to a navigational database
CN105740259A (en) * 2014-12-09 2016-07-06 阿里巴巴集团控股有限公司 Method and device for processing incremental data
CN105808373A (en) * 2014-12-30 2016-07-27 中兴通讯股份有限公司 Incremental backup method and device of data, and NAS (Network Attached Storage) equipment
CN105868361A (en) * 2016-03-29 2016-08-17 中国银行股份有限公司 Data updating method and device
CN109597717A (en) * 2018-12-07 2019-04-09 北京金山云网络技术有限公司 A kind of data backup, restoration methods, device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MOHANTY RAKESH 等: "New Results on Competitive Analysis of Move To Middle(MTM) List Update Algorithm using Doubly Linked List", 《PROCEDIA COMPUTER SCIENCE》, pages 762 - 769 *
杨晓云: "电信级企业网的安全加密***的设计", 《中国优秀硕士学位论文全文数据库信息科技辑》, pages 139 - 68 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569311A (en) * 2019-10-30 2019-12-13 上海商魁信息科技有限公司 Data synchronization method and device for database and computer storage medium
CN110569311B (en) * 2019-10-30 2020-07-10 上海商魁信息科技有限公司 Data synchronization method and device for database and computer storage medium
CN110825762A (en) * 2019-11-14 2020-02-21 北京融易做科技有限公司 Data storage method, device and system
CN111339107A (en) * 2020-02-10 2020-06-26 支付宝(杭州)信息技术有限公司 Comparison source data synchronization method and device, electronic equipment and storage medium
CN111339107B (en) * 2020-02-10 2023-07-28 支付宝(杭州)信息技术有限公司 Method and device for synchronizing comparison source data, electronic equipment and storage medium
CN111708335A (en) * 2020-06-03 2020-09-25 深圳前海禾盈科技有限公司 Equipment data acquisition method based on smart factory
CN111752240A (en) * 2020-06-03 2020-10-09 深圳前海禾盈科技有限公司 Construction method of automatic production control framework

Also Published As

Publication number Publication date
CN110147380B (en) 2023-11-24

Similar Documents

Publication Publication Date Title
KR102350462B1 (en) Signature generation method, electronic device and storage medium
CN110147380A (en) Data-updating method, device, server and storage medium
CN110841285B (en) Interface element display method and device, computer equipment and storage medium
CN111339086B (en) Block processing method, and data query method and device based on block chain
CN110213153A (en) Display methods, acquisition methods, device, terminal and the storage medium of unread message
CN110569220B (en) Game resource file display method and device, terminal and storage medium
CN108805560A (en) Numerical value integration method, device, electronic equipment and computer readable storage medium
CN111569435B (en) Ranking list generation method, system, server and storage medium
CN110322151A (en) Platform enters system, method, equipment and storage medium
CN109522146A (en) The method, apparatus and storage medium of abnormality test are carried out to client
CN110032384A (en) Method, apparatus, equipment and the storage medium of resource updates
CN109933594A (en) Obtain method, apparatus, electronic equipment and the medium of data
CN110769050B (en) Data processing method, data processing system, computer device, and storage medium
CN109218751A (en) The method, apparatus and system of recommendation of audio
CN110535890A (en) The method and apparatus that file uploads
CN110290191B (en) Resource transfer result processing method, device, server, terminal and storage medium
CN109600301A (en) Message treatment method and device
CN109783176A (en) Switch the method and apparatus of the page
CN109871497A (en) The method and apparatus of sharing information
CN110149408A (en) Business datum display methods, device, terminal and server
CN109107163A (en) Analogue-key detection method, device, computer equipment and storage medium
CN109359259A (en) Load the method and device of webpage
CN114140105A (en) Resource transfer method, device, equipment and computer readable storage medium
CN109871411B (en) Method, device, electronic equipment and medium for synchronizing data
CN111125095A (en) Data prefix adding method and device, electronic equipment and medium

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