CN109933596A - A kind of method of data synchronization, device and terminal device - Google Patents

A kind of method of data synchronization, device and terminal device Download PDF

Info

Publication number
CN109933596A
CN109933596A CN201910148242.8A CN201910148242A CN109933596A CN 109933596 A CN109933596 A CN 109933596A CN 201910148242 A CN201910148242 A CN 201910148242A CN 109933596 A CN109933596 A CN 109933596A
Authority
CN
China
Prior art keywords
data
synchronization
synchrodata
failure
new data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910148242.8A
Other languages
Chinese (zh)
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 Tyre Automobile Maintenance Technology Co Ltd
Original Assignee
Shenzhen Tyre Automobile Maintenance Technology 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 Tyre Automobile Maintenance Technology Co Ltd filed Critical Shenzhen Tyre Automobile Maintenance Technology Co Ltd
Priority to CN201910148242.8A priority Critical patent/CN109933596A/en
Publication of CN109933596A publication Critical patent/CN109933596A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The application is suitable for technical field of data processing, provides a kind of method of data synchronization, device and terminal device, which comprises obtains the revision ID of more new data in the first synchrodata;Using the maximum more new data of revision ID in the corresponding more new data of each data item as effective more new data, the non-effective more new data in the first synchrodata is deleted, the second synchrodata is obtained;Data simultaneously operating is executed to second synchrodata.When the application can solve existing method of data synchronization and carry out redundant data screening, the time performance of consumption can with square form increase, limit single hyposynchronous data volume the problem of.

Description

A kind of method of data synchronization, device and terminal device
Technical field
The application belongs to technical field of data processing more particularly to a kind of method of data synchronization, device and terminal device.
Background technique
Database can be considered as the file cabinet of electronization, can be used to store electronic document, user can be in file The operations such as data run is newly-increased, updates and deletes.
When multiple databases needs in enterprise cooperate or the database of multiple enterprises needs to cooperate, The data for needing to carry out between database are synchronous.
When progress data are synchronous, need to reject the redundant data screening in data to be synchronized, it is current mainly by double Baryon inquiry carries out the screening of redundant data, and the principle of dual subquery is that each element of ectonexine inquiry will carry out one Secondary comparison calculation, therefore, when the data volume of data to be synchronized increases, the time performance of the consumption of dual subquery can with square Form increase, significantly limit single hyposynchronous data volume.
To sum up, when existing method of data synchronization carries out redundant data screening, the time performance of consumption can with square shape Formula increases, and limits single hyposynchronous data volume.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of method of data synchronization, device and terminal device, it is existing to solve Method of data synchronization when carrying out redundant data screening, the time performance of consumption can with square form increase, limit single The problem of synchronous data volume.
The first aspect of the embodiment of the present application provides a kind of method of data synchronization, comprising:
Obtain the revision ID of more new data in the first synchrodata;
Using the maximum more new data of revision ID in the corresponding more new data of each data item as effective more new data, delete Non-effective more new data in first synchrodata, obtains the second synchrodata;
Data simultaneously operating is executed to second synchrodata.
Optionally, the method also includes:
When failure of data synchronization and when failure cause is network failure, the third synchrodata of synchronization failure is executed again Simultaneously operating.
Optionally, described when failure of data synchronization and when failure cause is network failure, it is synchronous to the third of synchronization failure Data execute re-synchronization operation and specifically include:
When failure of data synchronization and when failure cause is network failure, data are written into the third synchrodata of synchronization failure In backing sheet;
Scan data backing sheet, when in the data backing sheet there are when third synchrodata, to the same step number of the third It is operated according to re-synchronization is executed.
Optionally, the method also includes:
When re-synchronization failure when, by first it is preset warn in a manner of warn.
Optionally, the method also includes:
When the synchronous obstruction failure of generation data, record obstruction duration;
Judge whether the obstruction duration is greater than preset time period;
When the obstruction duration is greater than preset time period, log-on data clash handle prediction scheme is handled.
Optionally, the method also includes:
After executing the data collision processing prediction scheme, judge whether to have removed the synchronous obstruction failure of the data;
When the synchronous obstruction failure of the data is not removed, warned with the second preset prompting mode.
Optionally, before the execution data simultaneously operating to second synchrodata, further includes:
Improve the data bulk of each data simultaneously operating.
The second aspect of the embodiment of the present application provides a kind of data synchronization unit, comprising:
Data acquisition module, for obtaining the revision ID of more new data in the first synchrodata;
Redundancy removing module, for using the maximum more new data of revision ID in the corresponding more new data of each data item as having The more new data of effect deletes the non-effective more new data in the first synchrodata, obtains the second synchrodata;
Data simultaneous module, for executing data simultaneously operating to second synchrodata.
Optionally, described device further include:
Re-synchronization module, for when failure of data synchronization and when failure cause is network failure, to the of synchronization failure Three synchrodatas execute re-synchronization operation.
Optionally, the re-synchronization module specifically includes:
Spare submodule, for when failure of data synchronization and when failure cause is network failure, by the third of synchronization failure Synchrodata is written in data backing sheet;
Scan submodule, be used for scan data backing sheet, when in the data backing sheet there are when third synchrodata, it is right The third synchrodata executes re-synchronization operation.
Optionally, described device further include:
First warning module, for when re-synchronization failure when, by first it is preset warn in a manner of warn.
Optionally, described device further include:
Duration logging modle, for recording obstruction duration when the synchronous obstruction failure of generation data;
Duration judgment module, for judging whether the obstruction duration is greater than preset time period;
Prediction scheme starting module, for when the obstruction duration is greater than preset time period, log-on data clash handle prediction scheme into Row processing.
Optionally, described device further include:
Breakdown judge module, for judging whether to have removed the data after executing the data collision processing prediction scheme Synchronous obstruction failure;
Second warning module, for when the synchronous obstruction failure of the data is not removed, with the second preset prompting mode into Row is warned.
Optionally, the data simultaneous module is also used to improve the data bulk of each data simultaneously operating.
The third aspect of the embodiment of the present application provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program It realizes such as the step of the above method.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, realizes when the computer program is executed by processor such as the step of the above method.
Existing beneficial effect is the embodiment of the present application compared with prior art:
In the method for data synchronization of the application, the revision ID of more new data in the first synchrodata is obtained, due to for same For one data item, the more new data updated each time can all cover before more new data, only newest primary update Data are effective more new data, and when updating each time, the revision ID of more new data be will increase, and therefore, can use the number According to the maximum more new data of revision ID in the corresponding more new data of item as the corresponding valid data of the data item, together due to first More new data in step data is probably derived from one or more data item, therefore, in the corresponding more new data of each data item For the maximum more new data of revision ID as effective more new data, remaining non-effective more new data is redundant data, is deleted The second synchrodata is obtained later, in the process for searching redundant data, is screened by revision ID, comparison number is few, even if A large amount of time performance will not be consumed by increasing substantially single hyposynchronous data volume, solve existing method of data synchronization into When row redundant data is screened, the time performance of consumption can with square form increase, limit asking for single hyposynchronous data volume Topic.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application Embodiment for those of ordinary skill in the art without creative efforts, can also be attached according to these Figure obtains other attached drawings.
Fig. 1 is a kind of implementation process schematic diagram of method of data synchronization provided by the embodiments of the present application;
Fig. 2 is a kind of schematic diagram of data synchronization unit provided by the embodiments of the present application;
Fig. 3 is the schematic diagram of terminal device provided by the embodiments of the present application;.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
In order to illustrate technical solution described herein, the following is a description of specific embodiments.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step, Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In addition, term " first ", " second ", " third " etc. are only used for distinguishing description, and cannot in the description of the present application It is interpreted as indication or suggestion relative importance.
Embodiment one:
A kind of method of data synchronization provided below the embodiment of the present application one is described, and please refers to attached drawing 1, the application Method of data synchronization in embodiment one includes:
Step S101, the revision ID of more new data in the first synchrodata is obtained;
First synchrodata is to need synchronous data, and the first data may include more new data, newly-increased data and delete Except data, wherein newly-increased data and to have deleted data needs fully synchronized, and then there is a large amount of redundant digit in more new data According to needing to screen and clear up these redundant datas.
There are multiple data item in database, each data item can be used for describing recording one or more contents, whenever Can generate corresponding more new data when the content update of these data item, the same data item there may be a plurality of more new data, Each more new data has corresponding revision ID, for example, data item 1 can be the quantity in stock of commodity A, only records in one kind To hold, data item 1 also may include the sales volume and quantity in stock of commodity A, record plurality of kinds of contents, and commodity A may occur repeatedly to trade, Changes will occur for transaction sales amount and quantity in stock each time, and data item 1 can then generate a plurality of more new data at this time, and each is more New data has corresponding revision ID.
Step S102, it is updated using the maximum more new data of revision ID in the corresponding more new data of each data item as effective Data delete the non-effective more new data in the first synchrodata, obtain the second synchrodata;
Since the possible source of the more new data of the first synchrodata and one or more data item, each data item are corresponding with One or more more new data, in the corresponding more new data of each data item, only newest more new data is effective updates Data, during being updated due to data, the revision ID of new more new data can be bigger than the revision ID of a upper more new data, because This can respectively using the maximum more new data of revision ID in the corresponding more new data of each data item as effective more new data, Retain the corresponding effective more new data of each data item, delete non-effective more new data, completes the screening of redundant data and clear Reason, obtains the second synchrodata.
When carrying out the screening of redundant data using dual subquery due to tradition, each element of ectonexine inquiry will Primary comparison operation is carried out, therefore screening process can bring great time performance to consume, such as per subsynchronous 300 data, It then screens redundant data and needs to carry out 90000 (300*300) secondary operations, as synchrodata quantity increases, time performance disappears Consumption can sharply increase, and limit single hyposynchronous data bulk;When carrying out the screening of redundant data using revision ID, it is only necessary to make It can be completed with simple sort algorithm and a small amount of operation of execution, the time complexity of sort algorithm is much smaller than dibaryon query operator Method will not lead to sharply increasing for time performance, reduce to single even if increasing substantially single hyposynchronous data bulk The limitation of synchrodata amount.
Step S103, data simultaneously operating is executed to second synchrodata.
After screening and cleaning up redundant data, data simultaneously operating can be executed to the second synchrodata, complete data Data between library are synchronous.
Meanwhile before executing data simultaneously operating to the second synchrodata, further includes: improve each data simultaneously operating Data bulk.
After changing the screening technique of redundant data, the limitation to single synchrodata amount is reduced, it at this time can be with Single synchrodata amount is improved, the data volume of the first synchrodata is changed to the second preset quantity from the first preset quantity, In, the second preset quantity is greater than the first preset quantity, for example, it is assumed that the data volume of current first synchrodata is that 300 (first is pre- Set quantity), then the data volume of the first synchrodata can be revised as to 5000 (the second preset quantities), improve single hyposynchronous number According to amount, synchronizing capacity is improved.
Further, the method also includes:
A1, when failure of data synchronization and when failure cause is network failure, the third synchrodata of synchronization failure is executed Re-synchronization operation.
When there is a situation where failure of data synchronization, the reason of can detecte synchronization failure, it is when the reason of synchronization failure When network failure, re-synchronization operation is executed to the third synchrodata of synchronization failure, third synchrodata is counted again According to synchronization.
Further, described when failure of data synchronization and when failure cause is network failure, it is same to the third of synchronization failure Step data executes re-synchronization operation and specifically includes:
B1, when failure of data synchronization and when failure cause is network failure, the third synchrodata of synchronization failure is written In data backing sheet;
When executing re-synchronization operation to the third synchrodata of synchronization failure, number first can be written into third synchrodata According in backing sheet.
B2, scan data backing sheet, when in the data backing sheet there are when third synchrodata, it is synchronous to the third Data execute re-synchronization operation.
At this point it is possible to which the mechanism of periodic scanning data backing sheet is arranged, judge whether deposit in data backing sheet by scanning In the third synchrodata for needing re-synchronization, when in data backing sheet there are when third synchrodata, to third synchrodata Re-synchronization operation is executed, it is synchronous data preferentially can be carried out to third synchrodata.
The frequency of scanning can be configured according to the actual situation, such as can be set to 30 seconds.
Further, the method also includes:
C1, when re-synchronization failure when, by first it is preset warn in a manner of warn.
If again to third synchrodata carry out data it is synchronous when, still there is a situation where failure of data synchronization, then this When can be warned by the first preset mode of warning to staff, so that staff can be handled in time abnormal feelings Condition, the first mode of warning may include sound warn (such as buzzer is warned), light alerting system (such as flashing lamp is warned), text It warns (such as display screen display corresponding prompt) and information is warned (such as by mail, short message and instant communication software Etc. modes send information) etc. one of mode or a variety of of warning.
In addition, can also first record the number of re-synchronization failure when re-synchronization failure, judge that re-synchronization fails Number whether be greater than predetermined times, when the number of re-synchronization failure is greater than predetermined times, then with the first preset side of warning Formula is warned, and the workload of staff is reduced.
Further, the method also includes:
D1, when the synchronous obstruction failure of data occurs, record obstruction duration;
When detecting because data collision generation data synchronize when blocking failure, since the synchronous obstruction failure of data is possible to It automatically terminates, therefore first obstruction failure can be observed, record obstruction duration.
D2, judge whether the obstruction duration is greater than preset time period;
Judge to block whether duration is greater than preset time period, it, can first not when length is less than or equal to preset time period when plugged Obstruction failure is handled, it is long when being greater than preset time period when plugged, in order to guarantee the synchronous normal operation of data, need pair Obstruction failure is handled.
Preset duration can be configured according to the actual situation, such as can be set to 1 hour.
D3, when the obstruction duration be greater than preset time period when, log-on data clash handle prediction scheme is handled.
When length is greater than preset time period when plugged, it can star data collision processing prediction scheme, handled according to data collision pre- Case combs colliding data, and guaranteeing that data synchronize can operate normally.
Further, the method also includes:
E1, after executing data collision processing prediction scheme, judge whether to have removed the synchronous obstruction failure of the data;
After executing data collision processing prediction scheme, troubleshooting effect should be detected, judges whether the synchronization that cleared data Block failure.
E2, when the synchronous obstruction failure of the data is not removed, warned with the second preset prompting mode.
If data synchronization obstruction failure is removed, can continue normally to carry out data synchronization, if data are same Step obstruction failure is not removed, then should be warned with the second preset prompting mode to staff, so that staff can be with Processing obstruction failure in time, the second mode of warning may include that sound is warned (such as buzzer is warned), light alerting system (such as dodges Bright lamp is warned), text warn (such as display screen display corresponding prompt) and information warn (such as by mail, short message with And the modes such as instant communication software send information) etc. one of mode or a variety of of warning.
In the method for data synchronization that the present embodiment one provides, the revision ID of more new data in the first synchrodata is obtained, by More new data before the more new data for the same data item, updated each time can all cover, only newest one Secondary more new data is effective more new data, and when updating each time, the revision ID of more new data be will increase, therefore, can To use in the corresponding more new data of the data item the maximum more new data of revision ID as the corresponding valid data of the data item, by More new data in the first synchrodata is probably derived from one or more data item, therefore, corresponding more with each data item For the maximum more new data of revision ID as effective more new data, remaining non-effective more new data is redundant digit in new data According to, the second synchrodata is obtained after deleting, in the process for searching redundant data, is screened by revision ID, comparison number It is few, a large amount of time performance will not be consumed increasing substantially single hyposynchronous data volume, it is same to solve existing data When one step process carries out redundant data screening, the time performance of consumption can with square form increase, limit single hyposynchronous number The problem of according to amount.
When failure of data synchronization occurring and failure cause is network failure, automatically to the third synchrodata of synchronization failure Execute re-synchronization operation, re-synchronization failure then by first it is preset warn in a manner of warn.
When the synchronous obstruction failure of generation data, record obstruction duration then starts when length is greater than preset time period when plugged Data collision handles prediction scheme and combs colliding data, preset with second when data collision processing prediction scheme can not clear up obstruction failure The mode of warning is warned.
By the way that the exception handling to failure of data synchronization and obstruction failure is arranged, the synchronous stalwartness of data can be ensured Property and stability, promote the synchronous performance of data.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit It is fixed.
Embodiment two:
The embodiment of the present application two provides a kind of data synchronization unit, for purposes of illustration only, only showing relevant to the application Part, as shown in Fig. 2, data synchronization unit includes,
Data acquisition module 201, for obtaining the revision ID of more new data in the first synchrodata;
Redundancy removing module 202, for being made with the maximum more new data of revision ID in the corresponding more new data of each data item For effectively more new data, the non-effective more new data in the first synchrodata is deleted, the second synchrodata is obtained;
Data simultaneous module, for executing data simultaneously operating to second synchrodata.
Further, described device further include:
Re-synchronization module, for when failure of data synchronization and when failure cause is network failure, to the of synchronization failure Three synchrodatas execute re-synchronization operation.
Further, the re-synchronization module specifically includes:
Spare submodule, for when failure of data synchronization and when failure cause is network failure, by the third of synchronization failure Synchrodata is written in data backing sheet;
Scan submodule, be used for scan data backing sheet, when in the data backing sheet there are when third synchrodata, it is right The third synchrodata executes re-synchronization operation.
Further, described device further include:
First warning module, for when re-synchronization failure when, by first it is preset warn in a manner of warn.
Further, described device further include:
Duration logging modle, for recording obstruction duration when the synchronous obstruction failure of generation data;
Duration judgment module, for judging whether the obstruction duration is greater than preset time period;
Prediction scheme starting module, for when the obstruction duration is greater than preset time period, log-on data clash handle prediction scheme into Row processing.
Further, described device further include:
Breakdown judge module, for judging whether to have removed the data after executing the data collision processing prediction scheme Synchronous obstruction failure;
Second warning module, for when the synchronous obstruction failure of the data is not removed, with the second preset prompting mode into Row is warned.
Further, the data simultaneous module is also used to improve the data bulk of each data simultaneously operating.
It should be noted that the contents such as information exchange, implementation procedure between above-mentioned apparatus/unit, due to the application Installation practice is based on same design, concrete function and bring technical effect, for details, reference can be made to Installation practice part, this Place repeats no more.
Embodiment three:
Fig. 3 is the schematic diagram for the terminal device that the embodiment of the present application three provides.As shown in figure 3, the terminal of the embodiment is set Standby 3 include: processor 30, memory 31 and are stored in the meter that can be run in the memory 31 and on the processor 30 Calculation machine program 32.The processor 30 realizes the step in above-mentioned method of data synchronization embodiment when executing the computer program 32 Such as step S101 to S103 shown in FIG. 1 suddenly,.Alternatively, the processor 30 is realized when executing the computer program 32 State the function of each module/unit in each Installation practice, such as the function of module 201 to 203 shown in Fig. 2.
Illustratively, the computer program 32 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 31, and are executed by the processor 30, to complete the application.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 32 in the terminal device 3 is described.For example, the computer program 32 can be divided It is cut into data acquisition module, redundancy removing module and data simultaneous module, each module concrete function is as follows:
Data acquisition module, for obtaining the revision ID of more new data in the first synchrodata;
Redundancy removing module, for using the maximum more new data of revision ID in the corresponding more new data of each data item as having The more new data of effect deletes the non-effective more new data in the first synchrodata, obtains the second synchrodata;
Data simultaneous module, for executing data simultaneously operating to second synchrodata.
The terminal device 3 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 30, memory 31.It will be understood by those skilled in the art that Fig. 3 The only example of terminal device 3 does not constitute the restriction to terminal device 3, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 30 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 31 can be the internal storage unit of the terminal device 3, such as the hard disk or interior of terminal device 3 It deposits.The memory 31 is also possible to the External memory equipment of the terminal device 3, such as be equipped on the terminal device 3 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 31 can also both include the storage inside list of the terminal device 3 Member also includes External memory equipment.The memory 31 is for storing needed for the computer program and the terminal device Other programs and data.The memory 31 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions Believe signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all Comprising within the scope of protection of this application.

Claims (10)

1. a kind of method of data synchronization characterized by comprising
Obtain the revision ID of more new data in the first synchrodata;
Using the maximum more new data of revision ID in the corresponding more new data of each data item as effective more new data, first is deleted Non-effective more new data in synchrodata, obtains the second synchrodata;
Data simultaneously operating is executed to second synchrodata.
2. method of data synchronization as described in claim 1, which is characterized in that the method also includes:
When failure of data synchronization and when failure cause is network failure, re-synchronization is executed to the third synchrodata of synchronization failure Operation.
3. method of data synchronization as claimed in claim 2, which is characterized in that described when failure of data synchronization and failure cause is When network failure, re-synchronization operation is executed to the third synchrodata of synchronization failure and is specifically included:
It is when failure of data synchronization and when failure cause is network failure, the third synchrodata write-in data of synchronization failure are spare In table;
Scan data backing sheet, when, there are when third synchrodata, being held to the third synchrodata in the data backing sheet The operation of row re-synchronization.
4. method of data synchronization as claimed in claim 3, which is characterized in that the method also includes:
When re-synchronization failure when, by first it is preset warn in a manner of warn.
5. method of data synchronization as described in claim 1, which is characterized in that the method also includes:
When the synchronous obstruction failure of generation data, record obstruction duration;
Judge whether the obstruction duration is greater than preset time period;
When the obstruction duration is greater than preset time period, log-on data clash handle prediction scheme is handled.
6. method of data synchronization as claimed in claim 5, which is characterized in that the method also includes:
After executing the data collision processing prediction scheme, judge whether to have removed the synchronous obstruction failure of the data;
When the synchronous obstruction failure of the data is not removed, warned with the second preset prompting mode.
7. such as method of data synchronization of any of claims 1-6, which is characterized in that described synchronous to described second Data execute before data simultaneously operating, further includes:
Improve the data bulk of each data simultaneously operating.
8. a kind of data synchronization unit characterized by comprising
Data acquisition module, for obtaining the revision ID of more new data in the first synchrodata;
Redundancy removing module, for using the maximum more new data of revision ID in the corresponding more new data of each data item as effectively More new data deletes the non-effective more new data in the first synchrodata, obtains the second synchrodata;
Data simultaneous module, for executing data simultaneously operating to second synchrodata.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 7 of realization the method.
CN201910148242.8A 2019-02-27 2019-02-27 A kind of method of data synchronization, device and terminal device Pending CN109933596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910148242.8A CN109933596A (en) 2019-02-27 2019-02-27 A kind of method of data synchronization, device and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910148242.8A CN109933596A (en) 2019-02-27 2019-02-27 A kind of method of data synchronization, device and terminal device

Publications (1)

Publication Number Publication Date
CN109933596A true CN109933596A (en) 2019-06-25

Family

ID=66986133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910148242.8A Pending CN109933596A (en) 2019-02-27 2019-02-27 A kind of method of data synchronization, device and terminal device

Country Status (1)

Country Link
CN (1) CN109933596A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347481A (en) * 2019-07-17 2019-10-18 北京搜狐新媒体信息技术有限公司 A kind of method and system for realizing distributed transaction
CN112445805A (en) * 2019-08-29 2021-03-05 北京国双科技有限公司 Data query method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984715A (en) * 2014-05-08 2014-08-13 武汉库百网络技术有限公司 Data synchronizing and checking method, device and system of isomerous database
CN104615759A (en) * 2015-02-13 2015-05-13 厦门雅迅网络股份有限公司 Data synchronization method for different business system platforms
CN105701218A (en) * 2016-01-14 2016-06-22 四川长虹电器股份有限公司 Method for realizing data synchronism of different terminals on database
CN105898882A (en) * 2016-03-29 2016-08-24 珠海格力电器股份有限公司 Data transmission method, sending terminal, receiving terminal and data transmission system
CN106557364A (en) * 2015-09-24 2017-04-05 阿里巴巴集团控股有限公司 A kind of method of data synchronization and system
CN107172169A (en) * 2017-05-27 2017-09-15 广东欧珀移动通信有限公司 Method of data synchronization, device, server and storage medium
CN108683718A (en) * 2018-04-27 2018-10-19 五八同城信息技术有限公司 Method, apparatus, electronic equipment and the storage medium that data increment synchronizes

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984715A (en) * 2014-05-08 2014-08-13 武汉库百网络技术有限公司 Data synchronizing and checking method, device and system of isomerous database
CN104615759A (en) * 2015-02-13 2015-05-13 厦门雅迅网络股份有限公司 Data synchronization method for different business system platforms
CN106557364A (en) * 2015-09-24 2017-04-05 阿里巴巴集团控股有限公司 A kind of method of data synchronization and system
CN105701218A (en) * 2016-01-14 2016-06-22 四川长虹电器股份有限公司 Method for realizing data synchronism of different terminals on database
CN105898882A (en) * 2016-03-29 2016-08-24 珠海格力电器股份有限公司 Data transmission method, sending terminal, receiving terminal and data transmission system
CN107172169A (en) * 2017-05-27 2017-09-15 广东欧珀移动通信有限公司 Method of data synchronization, device, server and storage medium
CN108683718A (en) * 2018-04-27 2018-10-19 五八同城信息技术有限公司 Method, apparatus, electronic equipment and the storage medium that data increment synchronizes

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347481A (en) * 2019-07-17 2019-10-18 北京搜狐新媒体信息技术有限公司 A kind of method and system for realizing distributed transaction
CN112445805A (en) * 2019-08-29 2021-03-05 北京国双科技有限公司 Data query method and device

Similar Documents

Publication Publication Date Title
US20190266195A1 (en) Filtering queried data on data stores
CN104081353B (en) Balancing dynamic load in scalable environment
CN109101528A (en) Data processing method, data processing equipment and electronic equipment
CN109344153A (en) The processing method and terminal device of business datum
CN104715001A (en) Method and system performing wirite operation on shared resource in cluster of data processing system
US9052972B2 (en) Determining the processing order of a plurality of events
CN109815007A (en) Thread control method, device, electronic equipment and storage medium based on cloud monitoring
CN108369599A (en) Duplication control between redundant data center
CN102999384B (en) Managing processes within suspend states and execution states
CN109885565B (en) Data table cleaning method and device
CN103544153A (en) Data updating method and system based on database
CN105843937A (en) Data processing method and device
CN102385588B (en) Method and system for improving performance of data parallel insertion
CN108431807A (en) The duplication of structured data in partition data memory space
CN109684082A (en) The data cleaning method and system of rule-based algorithm
CN108595316A (en) Life cycle management method, manager, equipment and the medium of Distributed Application
CN109933596A (en) A kind of method of data synchronization, device and terminal device
CN109800080A (en) A kind of method for scheduling task based on Quartz frame, system and terminal device
CN109903050A (en) Transaction De-weight method, transaction building method, equipment and storage medium
CN110266805A (en) Information-pushing method, device, electronic equipment and readable medium
JP2006260056A (en) Integrated operation management server, extraction method of message for integrative operation management, and program
CN107111578A (en) Efficient interruption for multiline procedure processor is route
CN109063066A (en) Data query method and device, data management system
CN109597810A (en) A kind of task cutting method, device, medium and electronic equipment
JP2008165272A (en) Database update management system, program, and method

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Bantian street, Longgang District of Shenzhen City, Guangdong province 518000 yuan and five Avenue sign technology plant No. 1 building 4 floor

Applicant after: SHENZHEN GOLO CHELIAN DATA TECHNOLOGY Co.,Ltd.

Address before: Bantian street, Longgang District of Shenzhen City, Guangdong province 518000 yuan and five Avenue sign technology plant No. 1 building 4 floor

Applicant before: GOLO IOV DATA TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190625