CN110019508B - Data synchronization method, device and system - Google Patents

Data synchronization method, device and system Download PDF

Info

Publication number
CN110019508B
CN110019508B CN201710894912.1A CN201710894912A CN110019508B CN 110019508 B CN110019508 B CN 110019508B CN 201710894912 A CN201710894912 A CN 201710894912A CN 110019508 B CN110019508 B CN 110019508B
Authority
CN
China
Prior art keywords
data
synchronized
account structure
account
background 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.)
Active
Application number
CN201710894912.1A
Other languages
Chinese (zh)
Other versions
CN110019508A (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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201710894912.1A priority Critical patent/CN110019508B/en
Publication of CN110019508A publication Critical patent/CN110019508A/en
Application granted granted Critical
Publication of CN110019508B publication Critical patent/CN110019508B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • G06F16/275Synchronous replication

Abstract

The data synchronization method is applied to a background server, and firstly attribute information of data to be synchronized is acquired, wherein the data to be synchronized comprises an account structure and consumption data, and the attribute information at least comprises a feature identifier of the account structure. Then, judging whether the background server contains an account structure in the data to be synchronized or not based on the characteristic identification, and if so, synchronizing consumption data in the data to be synchronized; if not, synchronizing the account structure in the data to be synchronized, and synchronizing the consumption data in the data to be synchronized after the account structure is successfully synchronized. Therefore, the data synchronization method provided by the scheme has the advantages that whether the account structure is included is judged, if yes, the account structure is not synchronized, and the consumption data is directly synchronized, so that the account structure synchronization is avoided being unnecessarily executed, the processing load of a background server is saved, and the data synchronization time is shortened.

Description

Data synchronization method, device and system
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data synchronization method, apparatus, and system.
Background
With the continuous development of science and technology, web search is more and more common, and currently, when a user carries out web search, a search engine can display a series of advertisement creatives besides information searched by the user.
When an advertiser places an advertisement on a search engine, a background server needs to create an account structure, the account structure includes a series of promotion plans as shown in fig. 1, each promotion plan includes a series of promotion units, each promotion unit includes a keyword to be promoted and a creative displayed on the search engine, wherein the creative generally includes a title, a description, an access URL, a display URL, and the like of the advertisement, and is displayed on the search engine in a creative style specified by a user.
The user can produce a series of consumption data based on the advertisement creative idea, the background server needs to synchronize the account structure and the consumption data corresponding to the account structure every day, and in the process of synchronizing the data, data synchronization failure may occur, so that the data recorded by the background server is not matched with the actually occurring data. Therefore, how to provide a data synchronization method to enable data to be synchronized quickly and with high data accuracy is a major technical problem to be solved urgently by those skilled in the art.
Disclosure of Invention
In view of the above problems, the present invention has been made to provide a solution that overcomes or at least partially solves the above problems:
a data synchronization method is applied to a background server and comprises the following steps:
acquiring attribute information of data to be synchronized, wherein the data to be synchronized comprises an account structure and consumption data, and the attribute information at least comprises a feature identifier of the account structure;
judging whether a background server contains an account structure in the data to be synchronized or not based on the feature identification, and if so, synchronizing the consumption data in the data to be synchronized;
if not, synchronizing the account structure in the data to be synchronized, and synchronizing the consumption data in the data to be synchronized after the account structure is successfully synchronized.
Optionally, before determining whether the background server includes the account structure in the data to be synchronized, the method further includes:
pre-establishing a list of feature identifiers of an account structure contained in a background server;
correspondingly, the determining whether the background server includes the account structure in the data to be synchronized includes:
and searching whether the list of the feature identifiers contains the feature identifiers of the account mechanisms in the data to be synchronized, if so, determining that the background server contains the account structures in the data to be synchronized, and if not, determining that the background server does not contain the account structures in the data to be synchronized.
Optionally, determining whether the account structure is successfully synchronized includes:
acquiring a state identifier representing the synchronous state of the account structure;
judging whether the state identification is a preset completion identification, and if so, determining that the account structure is successfully synchronized; and if not, the account structure is resynchronized until the state identifier is the preset completion identifier.
Optionally, after the synchronizing the consumption data in the data to be synchronized, the method further includes:
configuring an index identification for the consumption data,
establishing an incidence relation between the index identification of the consumption data and the characteristic identification of the account structure;
determining the association relationship as the corresponding relationship between the consumption data and the account structure;
and storing the corresponding relation.
A data synchronization device is applied to a background server and comprises:
the system comprises an acquisition module, a synchronization module and a synchronization module, wherein the acquisition module is used for acquiring attribute information of data to be synchronized, the data to be synchronized comprises an account structure and consumption data, and the attribute information at least comprises a feature identifier of the account structure;
the judging module is used for judging whether the background server contains the account structure in the data to be synchronized or not based on the characteristic identification, and if so, synchronizing the consumption data in the data to be synchronized;
if not, synchronizing the account structure in the data to be synchronized, and synchronizing the consumption data in the data to be synchronized after the account structure is successfully synchronized.
Optionally, the method further includes:
the system comprises a creating module, a searching module and a judging module, wherein the creating module is used for pre-establishing a list of the characteristic identifications of the account structure contained in a background server;
correspondingly, the judging module comprises:
and the searching unit is used for searching whether the list of the feature identifiers contains the feature identifiers of the account mechanisms in the data to be synchronized, if so, determining that the background server contains the account structures in the data to be synchronized, and if not, determining that the background server does not contain the account structures in the data to be synchronized.
Optionally, the determining module includes:
the acquisition unit is used for acquiring a state identifier representing the synchronous state of the account structure;
the judging unit is used for judging whether the state identifier is a preset completion identifier or not, and if so, determining that the account structure is successfully synchronized; and if not, the account structure is resynchronized until the state identifier is the preset completion identifier.
Optionally, the method further includes:
a configuration unit for configuring an index identifier for the consumption data,
the creating unit is used for creating an incidence relation between the index identification of the consumption data and the characteristic identification of the account structure;
the determining unit is used for determining that the association relationship is the corresponding relationship between the consumption data and the account structure;
and the storage unit is used for storing the corresponding relation.
A data synchronization system, comprising:
a memory for storing a program;
a processor for executing the program, wherein the program executes any one of the above data synchronization methods when running.
A storage medium storing a program which, when executed by a processor, implements any one of the above-described data synchronization methods.
By means of the technical scheme, the data synchronization method provided by the invention is applied to a background server, and firstly, the attribute information of the data to be synchronized is obtained, wherein the data to be synchronized comprises an account structure and consumption data, and the attribute information at least comprises the feature identification of the account structure. Then, based on the feature identifier, judging whether a background server contains an account structure in the data to be synchronized, if so, synchronizing the consumption data in the data to be synchronized; if not, synchronizing the account structure in the data to be synchronized, and synchronizing the consumption data in the data to be synchronized after the account structure is successfully synchronized. Therefore, the data synchronization method provided by the scheme has the advantages that whether the account structure is included is judged, if yes, the account structure is not synchronized, and the consumption data is directly synchronized, so that the account structure synchronization is avoided being unnecessarily executed, the processing load of a background server is saved, and the data synchronization time is shortened.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 shows a schematic diagram of an account structure in the prior art;
fig. 2 is a schematic flow chart illustrating a data synchronization method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a further data synchronization method according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating a further data synchronization method according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating a further data synchronization method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram illustrating a data synchronization apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
An embodiment of the present invention provides a data synchronization method, please refer to fig. 2, which shows a flow diagram of the data synchronization method, and the method may include:
and S21, acquiring the attribute information of the data to be synchronized.
The data to be synchronized comprises an account structure and consumption data, and the attribute information at least comprises a feature identifier of the account structure. The feature identifier of the account structure indicates the type of the account structure, that is, different types of account structures, and the creative presentation forms of the account structures are different. And, based on the same account structure, there may be multiple users to trigger, generate multiple sets of consumption data. For example, an advertising creative about a "sports bracelet" belonging to a flagship store under a certain brand of flags is displayed on the search engine, and the sports bracelet has an account A structure.
At present, after a user triggers the creative idea of the advertisement, if the user clicks the advertisement of the sports bracelet, a series of consumption information is triggered, and the consumption information may be purchase information of the user for the sports bracelet or consumption information for browsing parameters of the sports bracelet. However, no matter what kind of consumption information is, the background server synchronizes the consumption data while synchronizing the a account structure. The inventor finds that when the advertisement of the sports bracelet is triggered by a plurality of users, the background server can independently synchronize the account structure and the corresponding consumption data, and when the account structure or the consumption data are synchronized wrongly, the synchronization process of the account structure and the consumption data can be executed again. The data processing amount of the background server is large.
Therefore, the scheme is characterized in that each account structure is established in advance, and the following judgment is carried out when data is synchronized:
s22, judging whether the background server contains the account structure in the data to be synchronized based on the feature identification, and if so, synchronizing the consumption data in the data to be synchronized;
if not, synchronizing the account structure in the data to be synchronized, and synchronizing the consumption data in the data to be synchronized after the account structure is successfully synchronized.
Therefore, the data synchronization method provided by the scheme saves the processing load of the background server by judging whether the account structure is included or not, and if the account structure is included, the account structure is not synchronized.
On the basis of the foregoing embodiment, as shown in fig. 3, in this embodiment, before determining whether the background server includes the account structure in the data to be synchronized, a list of feature identifiers of the account structure included in the background server needs to be established in advance. Correspondingly, the step of judging whether the background server contains the account structure in the data to be synchronized includes the steps of:
s31, searching whether the list of the feature identifiers contains the feature identifiers of the account mechanisms in the data to be synchronized, if yes, determining that the background server contains the account structures in the data to be synchronized, and if not, determining that the background server does not contain the account structures in the data to be synchronized.
Note that, in this embodiment, a plurality of account structures may be established in the backend server in advance, or an account structure not included in the backend server may be created at the same time in the process of the determination in step S22.
In addition, the embodiment further provides a specific implementation step of determining whether the account structure is successfully synchronized, as shown in fig. 4, including:
s41, acquiring a state identifier representing the synchronous state of the account structure;
s42, judging whether the state mark is a preset completion mark or not, and if so, determining that the account structure synchronization is successful; and if not, the account structure is resynchronized until the state identifier is the preset completion identifier.
In the account structure or the synchronization process of the message data, the present embodiment realizes the determination of the synchronization state by comparing the state identifier obtained in the synchronization process. For example, the status flag of the synchronized data is collected every preset time period, and if the collected status flag is 80%, it indicates that the data is not successfully uploaded. Of course, the present embodiment is merely an example, and is not limited to this method for confirming the synchronization status.
Specifically, this embodiment further provides an implementation manner of recording a corresponding relationship between the consumption data and the account structure after the consumption data in the data to be synchronized is synchronized, as shown in fig. 5, including:
s51, configuring an index identifier for the consumption data;
s52, establishing an incidence relation between the index identification of the consumption data and the characteristic identification of the account structure;
s53, determining the correlation relationship as the corresponding relationship between the consumption data and the account structure;
and S54, storing the corresponding relation.
Illustratively, the same account structure may correspond to a plurality of consumption data, and how to distinguish the consumption data is implemented by configuring an index identifier for each group of consumption data in this embodiment. For example, the index identification may be assigned according to the generation time of the consumption data, or assigned according to attribute information of the user such as a user ID. And then recording the relation between the index information and the account characteristic identification.
In summary, the data synchronization method provided by the present invention determines whether the account structure is included, and if the account structure is included, the account structure is not synchronized, but the consumption data is directly synchronized, thereby avoiding unnecessary execution of account structure synchronization, not only saving the processing load of the background server, but also shortening the data synchronization time.
In addition, on the basis of the above embodiments, corresponding to the above method, an embodiment of the present invention further provides a data synchronization apparatus, please refer to fig. 6, which shows a schematic structural diagram of the data synchronization apparatus, and the data synchronization apparatus may include:
an obtaining module 61, configured to obtain attribute information of data to be synchronized, where the data to be synchronized includes an account structure and consumption data, and the attribute information at least includes a feature identifier of the account structure;
a judging module 62, configured to judge, based on the feature identifier, whether an account structure in the to-be-synchronized data is included in a background server, and if so, synchronize the consumption data in the to-be-synchronized data;
if not, synchronizing the account structure in the data to be synchronized, and synchronizing the consumption data in the data to be synchronized after the account structure is successfully synchronized.
Optionally, the method further includes:
the system comprises a creating module, a searching module and a judging module, wherein the creating module is used for pre-establishing a list of the characteristic identifications of the account structure contained in a background server;
correspondingly, the judging module comprises:
and the searching unit is used for searching whether the list of the feature identifiers contains the feature identifiers of the account mechanisms in the data to be synchronized, if so, determining that the background server contains the account structures in the data to be synchronized, and if not, determining that the background server does not contain the account structures in the data to be synchronized.
Optionally, the determining module includes:
the acquisition unit is used for acquiring the state identifier in the account structure synchronization process;
the judging unit is used for judging whether the state identifier is a preset completion identifier or not, and if so, determining that the account structure is successfully synchronized; and if not, the account structure is resynchronized until the state identifier is the preset completion identifier.
Optionally, the determining module further includes:
a configuration unit for configuring an index identifier for the consumption data,
the creating unit is used for creating an incidence relation between the index identification of the consumption data and the characteristic identification of the account structure;
the determining unit is used for determining that the association relationship is the corresponding relationship between the consumption data and the account structure;
and the storage unit is used for storing the corresponding relation.
The data synchronization device comprises a processor and a memory, wherein the acquisition module, the judgment module and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more, and the fast synchronization of the data is realized by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium on which a program is stored, the program implementing the data synchronization method when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the data synchronization method is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps:
acquiring attribute information of data to be synchronized, wherein the data to be synchronized comprises an account structure and consumption data, and the attribute information at least comprises a feature identifier of the account structure;
judging whether a background server contains an account structure in the data to be synchronized or not based on the feature identification, if so, synchronizing the consumption data in the data to be synchronized, and recording the corresponding relation between the consumption data and the account structure;
if not, synchronizing the account structure in the data to be synchronized, synchronizing the consumption data in the data to be synchronized after the account structure is successfully synchronized, and recording the corresponding relation between the consumption data and the account structure.
Optionally, before determining whether the background server includes the account structure in the data to be synchronized, the method further includes:
pre-establishing a list of feature identifiers of an account structure contained in a background server;
correspondingly, the determining whether the background server includes the account structure in the data to be synchronized includes:
and searching whether the list of the feature identifiers contains the feature identifiers of the account mechanisms in the data to be synchronized, if so, determining that the background server contains the account structures in the data to be synchronized, and if not, determining that the background server does not contain the account structures in the data to be synchronized.
Optionally, determining whether the account structure is successfully synchronized includes:
a state identifier characterizing a synchronization state of the account structure;
judging whether the state identification is a preset completion identification, and if so, determining that the account structure is successfully synchronized; and if not, the account structure is resynchronized until the state identifier is the preset completion identifier.
Optionally, the recording the correspondence between the consumption data and the account structure includes:
configuring an index identification for the consumption data,
establishing an incidence relation between the index identification of the consumption data and the characteristic identification of the account structure;
determining the association relationship as the corresponding relationship between the consumption data and the account structure;
and storing the corresponding relation.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
acquiring attribute information of data to be synchronized, wherein the data to be synchronized comprises an account structure and consumption data, and the attribute information at least comprises a feature identifier of the account structure;
judging whether a background server contains an account structure in the data to be synchronized or not based on the feature identification, if so, synchronizing the consumption data in the data to be synchronized, and recording the corresponding relation between the consumption data and the account structure;
if not, synchronizing the account structure in the data to be synchronized, synchronizing the consumption data in the data to be synchronized after the account structure is successfully synchronized, and recording the corresponding relation between the consumption data and the account structure.
Optionally, before determining whether the background server includes the account structure in the data to be synchronized, the method further includes:
pre-establishing a list of feature identifiers of an account structure contained in a background server;
correspondingly, the determining whether the background server includes the account structure in the data to be synchronized includes:
and searching whether the list of the feature identifiers contains the feature identifiers of the account mechanisms in the data to be synchronized, if so, determining that the background server contains the account structures in the data to be synchronized, and if not, determining that the background server does not contain the account structures in the data to be synchronized.
Optionally, determining whether the account structure is successfully synchronized includes:
a state identifier characterizing a synchronization state of the account structure;
judging whether the state identification is a preset completion identification, and if so, determining that the account structure is successfully synchronized; and if not, the account structure is resynchronized until the state identifier is the preset completion identifier.
Optionally, the recording the correspondence between the consumption data and the account structure includes:
configuring an index identification for the consumption data,
establishing an incidence relation between the index identification of the consumption data and the characteristic identification of the account structure;
determining the association relationship as the corresponding relationship between the consumption data and the account structure;
and storing the corresponding relation.
In summary, the data synchronization method, the device and the system provided by the present invention are applied to a background server, and first obtain attribute information of data to be synchronized, where the data to be synchronized includes an account structure and consumption data, and the attribute information at least includes a feature identifier of the account structure. Then, judging whether the background server contains an account structure in the data to be synchronized or not based on the characteristic identification, and if so, synchronizing consumption data in the data to be synchronized; if not, synchronizing the account structure in the data to be synchronized, and synchronizing the consumption data in the data to be synchronized after the account structure is successfully synchronized. Therefore, the data synchronization method provided by the scheme has the advantages that whether the account structure is included is judged, if yes, the account structure is not synchronized, and the consumption data is directly synchronized, so that the account structure synchronization is avoided being unnecessarily executed, the processing load of a background server is saved, and the data synchronization time is shortened.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A data synchronization method is applied to a background server and is characterized by comprising the following steps:
acquiring attribute information of data to be synchronized, wherein the data to be synchronized comprises an account structure and consumption data, the attribute information at least comprises a feature identifier of the account structure, the feature identifier of the account structure indicates the type of the account structure, the display forms of advertisement creatives corresponding to account structures of different types are different, and the consumption data is a series of consumption data generated after a user triggers the advertisement creatives;
judging whether a background server contains an account structure in the data to be synchronized or not based on the feature identification, and if so, synchronizing the consumption data in the data to be synchronized;
if not, synchronizing the account structure in the data to be synchronized, and synchronizing the consumption data in the data to be synchronized after the account structure is successfully synchronized.
2. The data synchronization method according to claim 1, before determining whether the background server contains the account structure in the data to be synchronized, further comprising:
pre-establishing a list of feature identifiers of an account structure contained in a background server;
correspondingly, the determining whether the background server includes the account structure in the data to be synchronized includes:
and searching whether the list of the feature identifiers contains the feature identifiers of the account mechanisms in the data to be synchronized, if so, determining that the background server contains the account structures in the data to be synchronized, and if not, determining that the background server does not contain the account structures in the data to be synchronized.
3. The data synchronization method of claim 1, wherein determining whether the account structure is successfully synchronized comprises:
acquiring a state identifier representing the synchronous state of the account structure;
judging whether the state identification is a preset completion identification, and if so, determining that the account structure is successfully synchronized; and if not, the account structure is resynchronized until the state identifier is the preset completion identifier.
4. The data synchronization method according to claim 1, further comprising, after the synchronizing the consumption data in the data to be synchronized:
configuring an index identification for the consumption data,
establishing an incidence relation between the index identification of the consumption data and the characteristic identification of the account structure;
determining the association relationship as the corresponding relationship between the consumption data and the account structure;
and storing the corresponding relation.
5. A data synchronization device is applied to a background server and is characterized by comprising:
the system comprises an acquisition module, a synchronization module and a synchronization module, wherein the acquisition module is used for acquiring attribute information of data to be synchronized, the data to be synchronized comprises an account structure and consumption data, the attribute information at least comprises a feature identifier of the account structure, the feature identifier of the account structure indicates the type of the account structure, the display forms of advertisement creatives corresponding to account structures of different types are different, and the consumption data is a series of consumption data generated after a user triggers the advertisement creatives;
the judging module is used for judging whether the background server contains the account structure in the data to be synchronized or not based on the characteristic identification, and if so, synchronizing the consumption data in the data to be synchronized;
if not, synchronizing the account structure in the data to be synchronized, and synchronizing the consumption data in the data to be synchronized after the account structure is successfully synchronized.
6. The data synchronization apparatus according to claim 5, further comprising:
the system comprises a creating module, a searching module and a judging module, wherein the creating module is used for pre-establishing a list of the characteristic identifications of the account structure contained in a background server;
correspondingly, the judging module comprises:
and the searching unit is used for searching whether the list of the feature identifiers contains the feature identifiers of the account mechanisms in the data to be synchronized, if so, determining that the background server contains the account structures in the data to be synchronized, and if not, determining that the background server does not contain the account structures in the data to be synchronized.
7. The data synchronization apparatus according to claim 6, wherein the determining module comprises:
the acquisition unit is used for acquiring a state identifier representing the synchronous state of the account structure;
the judging unit is used for judging whether the state identifier is a preset completion identifier or not, and if so, determining that the account structure is successfully synchronized; and if not, the account structure is resynchronized until the state identifier is the preset completion identifier.
8. The data synchronization apparatus according to claim 5, further comprising:
a configuration unit for configuring an index identifier for the consumption data,
the creating unit is used for creating an incidence relation between the index identification of the consumption data and the characteristic identification of the account structure;
the determining unit is used for determining that the association relationship is the corresponding relationship between the consumption data and the account structure;
and the storage unit is used for storing the corresponding relation.
9. A data synchronization system, comprising:
a memory for storing a program;
a processor for executing the program, the program when running performing the data synchronization method of any of claims 1 to 4.
10. A storage medium characterized by storing a program which, when executed by a processor, implements the data synchronization method according to any one of claims 1 to 4.
CN201710894912.1A 2017-09-28 2017-09-28 Data synchronization method, device and system Active CN110019508B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710894912.1A CN110019508B (en) 2017-09-28 2017-09-28 Data synchronization method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710894912.1A CN110019508B (en) 2017-09-28 2017-09-28 Data synchronization method, device and system

Publications (2)

Publication Number Publication Date
CN110019508A CN110019508A (en) 2019-07-16
CN110019508B true CN110019508B (en) 2021-05-07

Family

ID=67186467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710894912.1A Active CN110019508B (en) 2017-09-28 2017-09-28 Data synchronization method, device and system

Country Status (1)

Country Link
CN (1) CN110019508B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114726871A (en) * 2022-03-22 2022-07-08 阿里巴巴(中国)有限公司 Data synchronization method, device and network system
CN114979175B (en) * 2022-05-10 2024-02-23 飞书深诺数字科技(上海)股份有限公司 Advertisement putting account synchronization method and device and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102843395B (en) * 2011-06-22 2015-08-19 阿里巴巴集团控股有限公司 A kind of method of data synchronization and device
CN103546426A (en) * 2012-07-10 2014-01-29 北京同观新天科技有限公司 Information sharing method and management server
CN103024039B (en) * 2012-12-13 2016-04-06 东莞宇龙通信科技有限公司 Method of data synchronization and system
CN103870977A (en) * 2012-12-18 2014-06-18 风网科技(北京)有限公司 Method and system thereof for data synchronizing of mobile advertising platform
CN104679869B (en) * 2015-03-05 2018-09-11 广州品唯软件有限公司 A kind of method and apparatus that Active Directory data are synchronized to RTX
US10489378B2 (en) * 2015-12-08 2019-11-26 Sap Se Detection and resolution of conflicts in data synchronization
CN105787709A (en) * 2016-03-24 2016-07-20 深圳竹云科技有限公司 Method of synchronizing multiple system accounts
CN105656946B (en) * 2016-03-29 2019-04-19 努比亚技术有限公司 A kind of method, business service end and account server-side handling login account
CN107038088A (en) * 2016-09-28 2017-08-11 阿里巴巴集团控股有限公司 A kind of data reconstruction method and device

Also Published As

Publication number Publication date
CN110019508A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
CN109561326B (en) Data query method and device
KR102391839B1 (en) Method and device for processing user personal, server and storage medium
CN106897342B (en) Data verification method and equipment
CN109598171B (en) Data processing method, device and system based on two-dimensional code
CN110717536A (en) Method and device for generating training sample
CN108259942B (en) Method, device and system for acquiring preview advertisement
CN109254801A (en) Starting, configuration method, device, equipment, medium and operating system
CN110019508B (en) Data synchronization method, device and system
CN106919620B (en) Single page processing method and device
CN105354195B (en) Information searching method and device
CN111784468A (en) Account association method and device and electronic equipment
CN106909567B (en) Data processing method and device
CN108073595B (en) Method and device for realizing data updating and snapshot in OLAP database
CN113518187B (en) Video editing method and device
CN110806866A (en) Generation method and device of front-end management system
CN109471901B (en) Data synchronization method and device
CN106155754B (en) Display template processing method and device
CN110069488A (en) A kind of date storage method, method for reading data and its device
CN114281461A (en) Management method, equipment and medium for configurable data source attributes
CN108804403B (en) Method and device for realizing service chart
CN115048083A (en) Visualization method and device for assembly, storage medium and electronic equipment
CN114138745A (en) Data integration method and device, storage medium and processor
CN111177593B (en) Data communication method and system
CN110019507B (en) Data synchronization method and device
CN112561549A (en) Advertisement generation method, advertisement delivery method, advertisement generation device and advertisement delivery device

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

Address after: 100080 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant