WO2017063143A1 - Method and device for updating data, terminal and server - Google Patents

Method and device for updating data, terminal and server Download PDF

Info

Publication number
WO2017063143A1
WO2017063143A1 PCT/CN2015/091848 CN2015091848W WO2017063143A1 WO 2017063143 A1 WO2017063143 A1 WO 2017063143A1 CN 2015091848 W CN2015091848 W CN 2015091848W WO 2017063143 A1 WO2017063143 A1 WO 2017063143A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
stored
data
user
local database
Prior art date
Application number
PCT/CN2015/091848
Other languages
French (fr)
Chinese (zh)
Inventor
刘均
李坤伦
Original Assignee
深圳还是威健康科技有限公司
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 深圳还是威健康科技有限公司 filed Critical 深圳还是威健康科技有限公司
Priority to PCT/CN2015/091848 priority Critical patent/WO2017063143A1/en
Priority to CN201580002063.3A priority patent/CN105934759A/en
Publication of WO2017063143A1 publication Critical patent/WO2017063143A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2308Concurrency control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a terminal, and a server for updating data.
  • the software login function only needs the server to verify whether the user name and the login password entered by the user are correct.
  • the user account is successfully logged in, only the basic information of the account can be obtained, and the other data under the account is not updated and downloaded.
  • most of the servers are server-centric, and the server sends the data to be synchronized to the client.
  • the server sequentially transmits the synchronous data to the client, which requires client consumption. A large amount of time to wait for the synchronization data transmitted by the receiving server, resulting in a lot of waste.
  • the technical problem to be solved by the embodiments of the present invention is to provide a method, a device, a terminal, and a server for updating data, which can use incremental update and multi-threaded parallel downloading of data content stored in a server, thereby improving data update speed. Synchronize with data.
  • the first aspect of the embodiments of the present invention provides a method for data update, where the method includes:
  • [0008] acquiring an update of the data content corresponding to the preset user account stored in the server; wherein the preset user account corresponds to an identifier of the plurality of users, and the data content includes user data corresponding to each user identifier.
  • the user data is stored in a daytime manner;
  • the data content stored in the undownloaded server in the local database is downloaded in parallel to the local database.
  • the method includes:
  • the user identifier that is not in the terminal exists in the server, the user identifier that is not in the terminal that is in the server is added to the preset user account of the terminal.
  • the method further includes:
  • a second aspect of the embodiment of the present invention provides a method for updating data, where the method includes: [0019] transmitting, to a terminal, an update time of a data content corresponding to a preset user account stored in a server; [0020] receiving a request sent by the terminal for downloading data content stored in a server that is not downloaded in the local database;
  • the method includes:
  • the third aspect of the embodiments of the present invention provides an apparatus for updating data, where the apparatus includes: [0026] an acquiring module, configured to acquire an update of data content corresponding to a preset user account stored in a server.
  • the preset user account corresponds to the identifiers of the plurality of users, and the data content includes user data corresponding to each user identifier, and the user data is stored according to the time;
  • a comparison module configured to: update the update time of the user data corresponding to each user identifier stored in the server acquired by the acquiring module to the local database stored in the terminal and corresponding to each user identifier The update of the user data is compared to determine the data content stored in the undownloaded server in the local database; [0028]
  • the downloading module is configured to download, in parallel for the plurality of users, the data content stored in the undownloaded server in the local database determined by the comparing module to the local database.
  • the acquiring module is further configured to acquire, by the server, an identifier of multiple users corresponding to the preset user account in the server;
  • the comparison module is further configured to compare the identifiers of the plurality of users existing in the server acquired by the obtaining module with the identifiers of the plurality of users existing in the terminal.
  • the device further includes:
  • an adding module configured to: when the comparing module compares the user identifier that is not in the terminal, to the server, add a user identifier that is not in the terminal that is in the server to the terminal Under the preset user account.
  • the comparison module is further configured to: update the update time of the user data corresponding to each user identifier stored in the server acquired by the acquiring module to the local database stored in the terminal and correspond to each user identifier The update of the user data is compared to determine the data content in the local database that is not uploaded to the server.
  • the device further includes:
  • the uploading module is configured to upload the data content in the local database that is not uploaded to the server to the server.
  • the fourth aspect of the embodiments of the present invention provides a device for updating data, where the device includes: [0036] a sending module, configured to send, to a terminal, data content corresponding to a preset user account stored in a server Update time
  • a receiving module configured to receive a request sent by the terminal for downloading data content stored in an undownloaded server in the local database
  • the sending module is further configured to: find and send the undownloaded service in the local database from the data content corresponding to the preset user account stored in the server according to the request received by the receiving module.
  • the data content stored in the server is further configured to: find and send the undownloaded service in the local database from the data content corresponding to the preset user account stored in the server according to the request received by the receiving module. The data content stored in the server.
  • the receiving module is further configured to receive data content that is not uploaded to the server in the local database uploaded by the terminal.
  • the device further includes:
  • an update module configured to update, according to the data content received by the receiving module, the data content corresponding to the preset user account stored in the server.
  • a fifth aspect of the embodiments of the present invention provides a mobile terminal, including an input device, an output device, a memory, and a processor;
  • the user data is stored in a daytime manner;
  • the data content stored in the undownloaded server in the local database is downloaded in parallel to the local database.
  • the processor is further configured to perform the following steps:
  • the user identifier that is not in the terminal exists in the server, the user identifier that is not in the terminal that is in the server is added to the preset user account of the terminal.
  • the processor is further configured to perform The following steps:
  • a sixth aspect of the embodiments of the present invention provides a server, including an input device, an output device, a memory, and a processor;
  • the processor is further configured to perform the following steps:
  • the embodiment of the present invention can incrementally update the data content stored in the local database of the terminal and download the data content stored in the undownloaded server in the local database in parallel, thereby improving the data update speed and improving the data. Data synchronization efficiency.
  • FIG. 1 is a schematic flowchart of a data update method in an embodiment of the present invention
  • FIG. 2 is a schematic flow chart of a data updating method in another embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a data update method in another embodiment of the present invention.
  • 4 is a schematic flowchart of a data update method in another embodiment of the present invention
  • 5 is a schematic structural diagram of a data updating apparatus according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a data updating apparatus in another embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a data updating apparatus in another embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a data updating apparatus according to another embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a server in an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a data update method according to an embodiment of the present invention.
  • the data update method in this embodiment may include:
  • Step S101 Obtain an update period of the data content corresponding to the preset user account stored in the server, where the preset user account corresponds to an identifier of multiple users, and the data content includes each user identifier corresponding to the user identifier.
  • User data the user data is stored in the daytime.
  • the communication terminal may first send, to the server, a request for acquiring an update time of the data content corresponding to the preset user account stored in the server, where the communication terminal sends the And requesting, by the server, an update of the data content corresponding to the preset user account stored in the server; the communication terminal may further send the server to acquire the preset user in the server a request for the identifiers of the plurality of users corresponding to the account, the communication terminal acquiring, according to the sent request, the identifiers of the plurality of users corresponding to the preset user accounts in the server;
  • the user account corresponds to the identifier of the plurality of users, and the data content includes user data corresponding to each user identifier, and the user data is stored according to the time.
  • the communication terminal may include an Internet device such as a personal computer, a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palmtop computer, a mobile Internet device (MID, Mobile Internet Devices), or a wearable smart device,
  • an Internet device such as a personal computer, a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palmtop computer, a mobile Internet device (MID, Mobile Internet Devices), or a wearable smart device,
  • MID Mobile Internet Devices
  • the preset user account corresponds to an identifier of multiple users, and the user identifier is used for marking identification.
  • the identity information of the user may include a user ID, a user name, and other identifiers for marking the identity information of the user, which are not limited in the embodiment of the present invention.
  • the user data is stored in the time interval, and the user data may be stored in the order from the largest to the smallest, or may be stored in the order from the smallest to the largest.
  • the user data may include different types of data, and may also include the same type of data.
  • the embodiment of the invention is not limited.
  • the user data may include motion data, sleep data, heart rate, and body surface temperature data.
  • Different types of user data such as ambient temperature and humidity data, barometric pressure data, and female physiological cycle data may also include only one type of data in the above series of data, such as only including sleep data.
  • Step S102 Update the user data corresponding to each user identifier stored in the update database of the user data corresponding to each user identifier stored in the obtained server and the local database of the terminal. To compare, determine the data content stored in the server that is not downloaded in the local database.
  • the communication terminal may store the update time of the user data corresponding to each user identifier stored in the server acquired in step S101 and the local database stored in the communication terminal. Comparing the update of the user data corresponding to each user identifier, determining the data content stored in the undownloaded server in the local database, or determining the data content in the local database that is not uploaded to the server; The communication terminal may further compare the acquired identifiers of the plurality of users existing in the server with the identifiers of the plurality of users existing in the communication terminal, and determine that the user identifiers that are not in the terminal are present in the server.
  • the communication terminal first stores the updated update of the user data corresponding to each user identifier stored in the server acquired in step S101 with the local database in the communication terminal. Comparing the update of the user data corresponding to the user identifier, if the update of the user data corresponding to each user identifier stored in the server acquired in step S101 is more than that stored in the local database of the communication terminal The update of the user data corresponding to each user identifier is further determined, and the data content stored in the server that is not downloaded in the local database is further determined; if the user corresponding to each user identifier stored in the server acquired in step S101 is obtained, The update of the data is further reduced than the update of the user data corresponding to the each user identifier stored in the local database of the communication terminal, and the data content not uploaded to the server in the local database is further determined. [0087] Step S103: Download, in parallel for a plurality of users, data content stored in the undownloaded server in the local database to the local database.
  • the communication terminal may download the data content stored in the undownloaded server in the local database determined in step S102 in parallel, and store the data content in the communication terminal. a local database; the communication terminal may further upload the data content not uploaded to the server in the local database determined in step S102 to the server; the communication terminal may further use the server determined in step S102 The user identifier that is not in the terminal that exists in the terminal is added to the preset user account of the terminal.
  • the embodiment of the present invention can incrementally update the data content stored in the local database of the terminal and download the data content stored in the undownloaded server in the local database in parallel, thereby improving the data update speed and improving the data. Data synchronization efficiency.
  • FIG. 2 is a schematic flowchart of a data updating method according to another embodiment of the present invention.
  • the data updating method in this embodiment may include:
  • Step S201 Obtain an update period of the data content corresponding to the preset user account stored in the server, where the preset user account corresponds to an identifier of multiple users, and the data content includes each user identifier.
  • User data the user data is stored in the daytime.
  • the communication terminal may first send, to the server, a request for acquiring an update time of the data content corresponding to the preset user account stored in the server, where the communication terminal sends the Requesting to obtain, from the server, an update period of the data content corresponding to the preset user account stored in the server.
  • the communication terminal may include an Internet device such as a personal computer, a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palmtop computer, a mobile Internet device (MID, Mobile Internet Devices), or a wearable smart device,
  • an Internet device such as a personal computer, a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palmtop computer, a mobile Internet device (MID, Mobile Internet Devices), or a wearable smart device,
  • MID Mobile Internet Devices
  • the preset user account corresponds to an identifier of a plurality of users, and the user identifier is used to mark the identity information of the identified user, and may include a user ID, a user name, and other identifiers for marking the identity information of the user.
  • the embodiment of the invention is not limited.
  • the user data is stored in the time interval, and the user data may be stored in the order from the first to the last, or may be stored in the order from the back to the first, in the embodiment of the present invention. Do not The user data may include different types of data, and may also include the same type of data, which is not limited by the embodiment of the present invention.
  • the user data may include different types of user data such as motion data, sleep data, heart rate and body surface temperature data, ambient temperature and humidity data, air pressure data, female physiological cycle data, etc., and may only include the above One type of data in some series of data, such as only including sleep data.
  • a smart phone application software has a user account A, and there are 10 users under the user account A (user A, user B, user C, user J, respectively). Each user has its own user ID number and user data corresponding to each user ID number.
  • the user data includes five types of data, which are motion data, sleep data, heart rate data, body surface temperature data, and female physiology. Cycle data. Among them, user B, user C, and user F are female users.
  • the smart bracelet worn by user A to user J can actually detect the user data of the wearing user.
  • the mobile phone A After the mobile phone A logs in to the user account A successfully, the mobile phone A can obtain, from the server, the update time of the five types of user data corresponding to each user ID number stored in the user account A stored in the server, assuming that Its update time is September 19, 2015 at 13:02:23. For the same reason, the other 9 users can also use their own mobile phones to perform the corresponding operations.
  • Step S202 Update the user data corresponding to each user identifier stored in the update database of the user data corresponding to each user identifier stored in the obtained server and the local database of the terminal. To compare, determine the data content stored in the server that is not downloaded in the local database.
  • the communication terminal stores, in the update database of the user data corresponding to each user identifier stored in the server acquired in step S201, and the user identifier stored in the local database of the terminal.
  • the update of the corresponding user data is compared, if the update of the user data corresponding to each user identifier stored in the server acquired in step S201 is stored in the local database of the terminal.
  • the update of the user data corresponding to each of the user identifiers determines the data content stored in the undownloaded server in the local database.
  • the update of the five types of user data corresponding to each user ID number in the user account A stored in the server acquired by the mobile phone A is 13:02 on September 19, 2015: 23 Compared with the update of the user data corresponding to each user ID number stored in the local database of the mobile phone A, on September 17, 2015, 10:02:23, obviously, the corresponding update obtained by the mobile phone A from the server On September 19, 2015, 13:02:23 is more than the update of user data stored in the local database.
  • Mobile A will determine the user data stored in the local database.
  • Update 5 kinds of user data corresponding to each user ID number under the user account A stored in the server after 10:02:23 on September 17, 2015 is the data stored in the server not downloaded in the local database of the mobile phone A.
  • the mobile phone A can also send a request to the server for downloading the data content stored in the undownloaded server in the local database.
  • the other 9 users can also use their own mobile phones to perform the corresponding operations.
  • Step S203 Download, in parallel for a plurality of users, data content stored in the undownloaded server in the local database to the local database.
  • the communication terminal sends the data content stored in the server that is not downloaded in the local database that is determined in step S201 to the local database, and the communication terminal may be used for multiple users.
  • the data content stored in the undownloaded server in the local database is downloaded in parallel to the local database.
  • the mobile phone A and the other nine users' mobile phones can download the data content stored in the undownloaded servers in the local databases of the respective mobile phones in parallel from the server; or, the mobile phone A can download the local database in parallel from the server.
  • Step S204 Acquire identifiers of multiple users corresponding to the preset user account in the server.
  • Step S205 Compare the acquired identifiers of the plurality of users existing in the server with the identifiers of the plurality of users existing in the terminal.
  • the mobile phone A compares the 10 user ID numbers obtained in step S204 with the user ID numbers stored in the local database of the mobile phone A. For the same reason, the other 9 users can also use their own mobile phones to perform the corresponding operations.
  • Step S206 If the user identifier that is not in the terminal exists in the server, add the user identifier that is not in the terminal that is in the server to the preset user account of the terminal.
  • the communication terminal may compare the identifiers of the plurality of users existing in the obtained server with the identifiers of the plurality of users existing in the terminal by using the step S205, if the identifier exists in the server.
  • the user identifier that is not included in the terminal is added to the preset user account of the terminal that is not in the terminal.
  • the communication terminal If the communication terminal is replaced with another communication terminal, the preset user account and the plurality of user identifiers under the preset user account do not exist in the local database of the other communication terminal.
  • the other communication terminal adds the multi-user identifier corresponding to the preset user account and the preset account account stored in the server to the local database of the another communication terminal according to the comparison result of step S205; or
  • the communication terminal may not detect the preset user account stored in the local database of the communication terminal and the multi-user identifier corresponding to the preset user account, and the communication terminal compares according to step S205. As a result, the multi-user identifier corresponding to the preset user account and the preset account stored in the server are added to the local database of the communication terminal.
  • the mobile phone A compares the obtained 10 user ID numbers with the 8 user ID numbers stored in the local database of the mobile phone A, and obtains a comparison result that the mobile phone A lacks the user ID number of the user C and the user D, and the mobile phone A will user C and User D's user ID number is added to user account A. Or,
  • the mobile phone A acquires the user ID number of the 12 users under the user account A in step S204.
  • the mobile phone A compares the obtained user ID numbers of the 12 users with the 10 user ID numbers stored in the local database of the mobile phone A, and obtains a comparison result that the mobile phone A lacks the user ID numbers of the other two users, and the mobile phone A will compare The user ID numbers of the other two users are added to the user account A.
  • the mobile phone A acquires the user ID number of the 12 users under the user account A in step S204.
  • the mobile phone A compares the obtained user ID numbers of the 12 users with the 10 user ID numbers stored in the local database of the mobile phone A, and obtains a comparison result that the mobile phone A lacks the user ID numbers of the other two users, and the mobile phone A will compare The user ID numbers of the other two users are added to the user account A.
  • Step S207 updating the updated user data corresponding to each user identifier stored in the obtained server and the user data corresponding to the user identifier stored in the local database of the terminal ⁇ To compare, determine the data content in the local database that is not uploaded to the server.
  • the communication terminal obtains, between the updated update of the user data corresponding to each user identifier stored in the server, and the local database stored in the terminal, corresponding to each user identifier. Comparing the update of the user data, if the update data of the user data corresponding to each user identifier stored in the server acquired by the communication terminal is compared with the user identifier stored in the local database of the terminal Corresponding user data update time, determine the data content in the local database that is not uploaded to the server.
  • the update of the five types of user data corresponding to each user ID number in the user account A stored in the server acquired by the mobile phone A is 13:02 on September 19, 2015: 23 Compared with the update of the user data corresponding to each user ID number stored in the local database of the mobile phone A, on September 19, 2015, 15:14:23, obviously, the corresponding update obtained by the mobile phone A from the server On September 19, 2015, 13:02:23, compared to the update of user data stored in the local database, on September 19, 2015, 15:14:23, mobile phone A will determine the user data stored in the local database.
  • the user data corresponding to the user account A stored in the local database after the update on September 19, 2015, 13:02:23 is the data content not uploaded to the server in the local database described in the mobile phone A.
  • the other 9 users can also use their own mobile phones to perform the corresponding operations.
  • Step S208 Upload data content that is not uploaded to the server in the local database to the server.
  • the communication terminal uploads the data content that is not uploaded to the server in the local database determined in step S207 to the server.
  • the mobile phone A stores the usage in the local database after 13:02:23 on September 19, 2015.
  • the five types of user data corresponding to the account A are uploaded to the server.
  • the embodiment of the present invention can incrementally update the data content stored in the local database of the terminal and download the data content stored in the undownloaded server in the local database in parallel, thereby improving the data update speed and improving the data. Data synchronization efficiency.
  • FIG. 3 is a schematic flowchart of a data updating method in another embodiment of the present invention.
  • the data updating method in this embodiment may include:
  • Step S301 Send an update of the data content corresponding to the preset user account stored in the server to the terminal.
  • the server may receive, by the communication terminal, a request for acquiring an update period of the data content corresponding to the preset user account stored in the server, where the server is configured according to the received request.
  • the communication terminal sends an update time of the data content corresponding to the preset user account stored in the server.
  • Step S302 Receive a request sent by the terminal to download data content stored in a server that is not downloaded in the local database.
  • Step S303 Search and send data content stored in the undownloaded server in the local database from the data content corresponding to the preset user account stored in the server according to the received request.
  • the server may search for and send data stored in an undownloaded server in the local database in the data content corresponding to the preset user account stored in the server according to the request received in step S302. content.
  • the server when the server receives the September 2015 that is sent by the mobile phone A for downloading the local database, After the server stores the request for the motion data corresponding to the user account A after 10:02:23 on the 17th, the server finds and sends the motion data corresponding to the request; and/or, when the server receives the message sent by the mobile phone A, Downloading the sleep data corresponding to the user account A stored by the server after the 10:02:23 on September 17, 2015, which is not in the local database, the server finds and sends the sleep data corresponding to the request; and/or, when the server Receiving the heart rate data sent by the mobile phone A for downloading the user account A corresponding to the user account A after the server is not available in the local database on September 17, 2015 10:02:23, the server searches for and sends the The heart rate data corresponding to the request; and/or, when the server receives the body corresponding to the user account A
  • FIG. 4 is a schematic flowchart of a data updating method in another embodiment of the present invention.
  • the data updating method in this embodiment may further include:
  • Step S304 Receive data content that is not uploaded to the server in the local database uploaded by the terminal.
  • the server will accept the mobile phone A after the 13:02:23 on September 19, 2015. Five kinds of user data corresponding to the user account A stored in the local database.
  • Step S305 Update, according to the received data content, the data content corresponding to the preset user account stored in the server.
  • the server updates the stored data in the server according to the five types of user data corresponding to the user account A stored in the local database after the processing on the September 19, 2015, 13:02:23, which is received in step S304. Five kinds of user data corresponding to user account A.
  • the embodiment of the present invention can incrementally update the data content stored in the local database of the terminal and download the data content stored in the undownloaded server in the local database in parallel, thereby improving the data update speed and improving the data. Data synchronization efficiency.
  • FIG. 5 is a schematic structural diagram of a data updating apparatus according to an embodiment of the present invention.
  • the apparatus 50 includes:
  • the obtaining module 500 is configured to obtain an update interval of the data content corresponding to the preset user account stored in the server, where the preset user account corresponds to an identifier of multiple users, and the data content includes User data corresponding to a user identifier, and the user data is stored according to the time;
  • the comparison module 501 is configured to store, in the update database of the user data corresponding to each user identifier stored in the server acquired by the obtaining module 500, with each user stored in a local database of the terminal And comparing the update of the corresponding user data to determine the data content stored in the undownloaded server in the local database;
  • the downloading module 502 is configured to download, in parallel for the plurality of users, the comparison module 501 to compare the determined data content stored in the undownloaded server in the local database to the local database.
  • FIG. 6 is a schematic structural diagram of a data updating apparatus according to another embodiment of the present invention.
  • the data updating apparatus 60 includes the above-mentioned obtaining module 500, the comparing module 501, and the downloading module 502.
  • the acquiring module 500 is further configured to acquire identifiers of multiple users corresponding to the preset user account in the server;
  • the comparison module 501 is further configured to compare the identifiers of the multiple users existing in the server acquired by the obtaining module 500 with the identifiers of multiple users existing in the terminal.
  • the device 60 further includes:
  • the adding module 503 is configured to: when the comparing module 501 compares that the user identifier that is not in the terminal exists in the server, add a user identifier that is not in the terminal that exists in the server to the The preset user account of the terminal.
  • the comparison module 501 is further configured to store, in the update database of the user data corresponding to each user identifier stored in the server acquired by the obtaining module 500, the local database in the terminal and the The update of the user data corresponding to each user identifier is compared to determine the data content in the local database that is not uploaded to the server.
  • the device 60 further includes:
  • the uploading module 504 is configured to upload data content that is not uploaded to the server in the local database to the server.
  • the embodiment of the present invention can incrementally update the data content and multi-thread stored in the local database of the terminal. By downloading the data content stored in the undownloaded server in the local database, the data update speed can be improved, and the data synchronization efficiency can be improved.
  • FIG. 7 is a schematic structural diagram of a data updating apparatus according to another embodiment of the present invention, and the apparatus 70 includes:
  • the sending module 700 is configured to send, to the terminal, an update interval of the data content corresponding to the preset user account stored in the server;
  • the receiving module 701 is configured to receive a request sent by the terminal for downloading data content stored in an undownloaded server in the local database.
  • the sending module 702 is further configured to: according to the request received by the receiving module 701, search and send the data in the local database from the data content corresponding to the preset user account stored in the server.
  • the data content stored in the server is further configured to: according to the request received by the receiving module 701, search and send the data in the local database from the data content corresponding to the preset user account stored in the server. The data content stored in the server.
  • FIG. 8 is a schematic structural diagram of a data updating apparatus according to another embodiment of the present invention.
  • the data updating apparatus 80 includes the foregoing sending module 700 and the receiving module 701.
  • the receiving module 701 is further configured to receive data content that is not uploaded to the server in the local database uploaded by the terminal.
  • the device 80 further includes:
  • the update module 702 is configured to update, according to the data content received by the receiving module 701, the data content corresponding to the preset user account stored in the server.
  • the embodiment of the present invention can incrementally update the data content stored in the local database of the terminal and download the data content stored in the undownloaded server in the local database in parallel, thereby improving the data update speed and improving the data. Data synchronization efficiency.
  • FIG. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal 90 in this embodiment may include: an input device 900, an output device 901, and a memory. 902 and processor 903 (the number of processors 903 in the network device may be one or more, and one processor in FIG. 9 is taken as an example).
  • the input device 900, the output device 901, the memory 902, and the processor 903 may be connected by a bus or other means, wherein the bus connection is taken as an example in FIG.
  • the processor 903 can be used to invoke a data update program stored in the memory 902, and perform the following steps:
  • the user data is stored in a daytime manner;
  • the data content stored in the undownloaded server in the local database is downloaded in parallel to the local database.
  • the processor 903 can be used to invoke the data update program stored in the memory 902, and can also perform the following steps:
  • the processor 903 can be used to invoke the data update program stored in the memory 902, and can also perform the following steps:
  • the embodiment of the present invention can incrementally update the data content stored in the local database of the terminal and download the data content stored in the undownloaded server in the local database in parallel, thereby improving the data update speed and improving the data. Data synchronization efficiency.
  • FIG. 10 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • the server 100 in this embodiment may include: an input device 1000, an output device 1001, and a memory 10 02.
  • the processor 1003 (the number of the processors 1003 in the network device may be one or more, and one processor in FIG. 10 is taken as an example).
  • the input device 1000, the output device 1001, the memory 1002, and the processor 1003 may be connected by a bus or other means, wherein the bus connection is taken as an example in FIG.
  • the processor 1003 may be configured to invoke a data update program stored in the memory 1002, and perform the following steps:
  • the processor 1003 may be configured to invoke a data update program stored in the memory 1002, and may also perform the following steps:
  • the embodiment of the present invention can incrementally update the data content stored in the local database of the terminal and download the data content stored in the undownloaded server in the local database in parallel, thereby improving the data update speed and improving the data. Data synchronization efficiency.
  • Computer readable media includes both computer storage media and communication media, including communication media including any medium that facilitates transfer of a computer program from one location to another.
  • the storage medium can be any of the available media that the computer can access.
  • the computer readable medium may include a random access memory (RAM). Read-Only Memory (ROM).
  • EEPROM Electrically Erasable Programmable (Electrically Erasable Programmable) Read-Only Memory
  • CD-ROM Compact Disc Read-Only Memory
  • a disk and a disc include a compact disc (CD), a laser disc, a disc, a digital versatile disc (DVD), a floppy disc, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable medium.

Abstract

Disclosed in an embodiment of the invention is a method for updating data, comprising: comparing update times of user data corresponding to respective user identifiers and stored in a server with update times of user data corresponding to the respective user identifiers and stored in local databases of terminals to determine data items stored in the server and not yet downloaded to the local databases; and concurrently downloading, for multiple users, the data items stored in the server and not yet downloaded to the local databases. Also disclosed in the embodiment of the invention are a device for updating data, a terminal and a server. Implementing the embodiment of the invention can increase data update speed and data synchronization efficiency.

Description

说明书 发明名称:一种数据更新的方法、 装置、 终端及服务器  Description: A method, device, terminal, and server for updating data
[0001] 技术领域  [0001] Technical Field
[0002] 本发明涉及通信技术领域, 尤其涉及一种数据更新的方法、 装置、 终端及服务 器。  [0002] The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a terminal, and a server for updating data.
[0003] 背景技术  BACKGROUND
[0004] 目前, 软件登录功能仅需服务器验证用户输入的用户名及登录密码是否正确, 当用户账号登录成功后只能获取账户的基本信息, 没有对账户下的其他数据进 行更新下载操作。 现有数据更新技术中, 大都采用以服务器为中心, 服务器发 送待同步数据至客户端, 当多个客户端请求发送大量同步数据吋, 服务器顺序 传送同步数据至客户端, 这就需要客户端消耗大量吋间来等待接收服务器传送 的同步数据, 造成了大量吋间的浪费。  [0004] At present, the software login function only needs the server to verify whether the user name and the login password entered by the user are correct. When the user account is successfully logged in, only the basic information of the account can be obtained, and the other data under the account is not updated and downloaded. In the existing data update technology, most of the servers are server-centric, and the server sends the data to be synchronized to the client. When multiple clients request to send a large amount of synchronous data, the server sequentially transmits the synchronous data to the client, which requires client consumption. A large amount of time to wait for the synchronization data transmitted by the receiving server, resulting in a lot of waste.
[0005] 发明内容  SUMMARY OF THE INVENTION
[0006] 本发明实施例所要解决的技术问题在于, 提供一种数据更新的方法、 装置、 终 端及服务器, 可采用增量更新和多线程并行下载服务器中存储的数据内容, 提 高了数据更新速度和数据同步效率。  The technical problem to be solved by the embodiments of the present invention is to provide a method, a device, a terminal, and a server for updating data, which can use incremental update and multi-threaded parallel downloading of data content stored in a server, thereby improving data update speed. Synchronize with data.
[0007] 本发明实施例第一方面公幵提供了一种数据更新的方法, 所述方法包括: [0007] The first aspect of the embodiments of the present invention provides a method for data update, where the method includes:
[0008] 获取服务器中存储的与预设用户账号对应的数据内容的更新吋间; 其中, 所述 预设用户账号对应多个用户的标识, 所述数据内容包括每一个用户标识对应的 用户数据, 所述用户数据按照吋间进行存储; [0008] acquiring an update of the data content corresponding to the preset user account stored in the server; wherein the preset user account corresponds to an identifier of the plurality of users, and the data content includes user data corresponding to each user identifier. The user data is stored in a daytime manner;
[0009] 将获取到的所述服务器中存储的每一用户标识对应的用户数据的更新吋间与终 端的本地数据库中存储的与所述每一用户标识对应的用户数据的更新吋间进行 比较, 确定所述本地数据库中未下载的服务器中存储的数据内容;  [0009] comparing the updated update time of the user data corresponding to each user identifier stored in the obtained server with the update time of the user data corresponding to each user identifier stored in the local database of the terminal Determining data content stored in an undownloaded server in the local database;
[0010] 针对多个用户, 并行下载所述本地数据库中未下载的服务器中存储的数据内容 至所述本地数据库。  [0010] For a plurality of users, the data content stored in the undownloaded server in the local database is downloaded in parallel to the local database.
[0011] 在本发明实施例第一方面的第一种可能的实现方式中, 所述方法包括:  [0011] In a first possible implementation manner of the first aspect of the embodiments, the method includes:
[0012] 获取所述服务器中与所述预设用户账号对应的多个用户的标识; [0013] 将获取到的所述服务器中存在的多个用户的标识与所述终端中存在的多个用户 的标识进行比较; [0012] obtaining an identifier of multiple users corresponding to the preset user account in the server; [0013] comparing the acquired identifiers of the plurality of users existing in the server with the identifiers of the plurality of users existing in the terminal;
[0014] 若所述服务器中存在所述终端中没有的用户标识, 将所述服务器中存在的所述 终端中没有的用户标识添加至所述终端的所述预设用户账号下。  [0014] If the user identifier that is not in the terminal exists in the server, the user identifier that is not in the terminal that is in the server is added to the preset user account of the terminal.
[0015] 结合本发明实施例第一方面或第一方面的第一种可能的实现方式, 在本发明实 施例第一方面的第二种可能的实现方式中, 所述方法还包括: [0015] In combination with the first aspect of the embodiment of the present invention or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect of the embodiment, the method further includes:
[0016] 将获取到的所述服务器中存储的每一用户标识对应的用户数据的更新吋间与终 端的本地数据库中存储的与所述每一用户标识对应的用户数据的更新吋间进行 比较, 确定所述本地数据库中未上传至服务器中的数据内容; [0016] comparing the updated update time of the user data corresponding to each user identifier stored in the obtained server with the update time of the user data corresponding to each user identifier stored in the local database of the terminal Determining, in the local database, data content that is not uploaded to the server;
[0017] 将所述本地数据库中未上传至服务器中的数据内容上传至服务器。 [0017] uploading the data content in the local database that is not uploaded to the server to the server.
[0018] 本发明实施例第二方面公幵提供了一种数据更新的方法, 所述方法包括: [0019] 向终端发送服务器中存储的与预设用户账号对应的数据内容的更新吋间; [0020] 接收所述终端发送的用于下载所述本地数据库中未下载的服务器中存储的数据 内容的请求; [0018] A second aspect of the embodiment of the present invention provides a method for updating data, where the method includes: [0019] transmitting, to a terminal, an update time of a data content corresponding to a preset user account stored in a server; [0020] receiving a request sent by the terminal for downloading data content stored in a server that is not downloaded in the local database;
[0021] 根据所述接收到的请求从所述服务器中存储的与预设用户账号对应的数据内容 中, 査找并发送所述本地数据库中未下载的服务器中存储的数据内容。  And [0021] searching, according to the received request, the data content stored in the undownloaded server in the local database from the data content corresponding to the preset user account stored in the server.
[0022] 在本发明实施例第二方面的第一种可能的实现方式中, 所述方法包括: [0022] In a first possible implementation manner of the second aspect of the embodiment, the method includes:
[0023] 接收所述终端上传的所述本地数据库中未上传至服务器中的数据内容; [0023] receiving, in the local database uploaded by the terminal, data content that is not uploaded to the server;
[0024] 根据所述接收到的数据内容, 更新所述服务器中存储的与预设用户账号对应的 数据内容。 [0024] updating the data content corresponding to the preset user account stored in the server according to the received data content.
[0025] 本发明实施例第三方面公幵提供了一种数据更新的装置, 所述装置包括: [0026] 获取模块, 用于获取服务器中存储的与预设用户账号对应的数据内容的更新吋 间; 其中, 所述预设用户账号对应多个用户的标识, 所述数据内容包括每一个 用户标识对应的用户数据, 所述用户数据按照吋间进行存储;  [0025] The third aspect of the embodiments of the present invention provides an apparatus for updating data, where the apparatus includes: [0026] an acquiring module, configured to acquire an update of data content corresponding to a preset user account stored in a server. The preset user account corresponds to the identifiers of the plurality of users, and the data content includes user data corresponding to each user identifier, and the user data is stored according to the time;
[0027] 比较模块, 用于将所述获取模块获取到的所述服务器中存储的每一用户标识对 应的用户数据的更新吋间与终端的本地数据库中存储的与所述每一用户标识对 应的用户数据的更新吋间进行比较, 确定所述本地数据库中未下载的服务器中 存储的数据内容; [0028] 下载模块, 用于针对多个用户, 并行下载所述比较模块比较确定的所述本地数 据库中未下载的服务器中存储的数据内容至所述本地数据库。 [0027] a comparison module, configured to: update the update time of the user data corresponding to each user identifier stored in the server acquired by the acquiring module to the local database stored in the terminal and corresponding to each user identifier The update of the user data is compared to determine the data content stored in the undownloaded server in the local database; [0028] The downloading module is configured to download, in parallel for the plurality of users, the data content stored in the undownloaded server in the local database determined by the comparing module to the local database.
[0029] 在本发明实施例第三方面的第一种可能的实现方式中, 所述获取模块还用于获 取所述服务器中与所述预设用户账号对应的多个用户的标识; 所述比较模块还 用于将所述获取模块获取到的所述服务器中存在的多个用户的标识与所述终端 中存在的多个用户的标识进行比较。  [0029] In a first possible implementation manner of the third aspect of the embodiments of the present disclosure, the acquiring module is further configured to acquire, by the server, an identifier of multiple users corresponding to the preset user account in the server; The comparison module is further configured to compare the identifiers of the plurality of users existing in the server acquired by the obtaining module with the identifiers of the plurality of users existing in the terminal.
[0030] 结合本发明实施例第三方面的第一种可能的实现方式, 在本发明实施例第三方 面的第二种可能的实现方式中, 所述装置还包括:  With reference to the first possible implementation manner of the third aspect of the embodiment of the present invention, in a second possible implementation manner of the third aspect of the embodiment of the present invention, the device further includes:
[0031] 添加模块, 用于当所述比较模块比较到所述服务器中存在所述终端中没有的用 户标识吋, 将所述服务器中存在的所述终端中没有的用户标识添加至所述终端 的所述预设用户账号下。  [0031] an adding module, configured to: when the comparing module compares the user identifier that is not in the terminal, to the server, add a user identifier that is not in the terminal that is in the server to the terminal Under the preset user account.
[0032] 结合本发明实施例第三方面或第三方面的第一种可能或第三方面的第二种可能 的实现方式, 在本发明实施例第三方面的第三种可能的实现方式中, 所述比较 模块还用于将所述获取模块获取到的所述服务器中存储的每一用户标识对应的 用户数据的更新吋间与终端的本地数据库中存储的与所述每一用户标识对应的 用户数据的更新吋间进行比较, 确定所述本地数据库中未上传至服务器中的数 据内容。  [0032] In combination with the third aspect of the embodiment of the present invention or the second possible implementation of the third aspect or the third aspect, in a third possible implementation manner of the third aspect of the embodiment of the present invention, The comparison module is further configured to: update the update time of the user data corresponding to each user identifier stored in the server acquired by the acquiring module to the local database stored in the terminal and correspond to each user identifier The update of the user data is compared to determine the data content in the local database that is not uploaded to the server.
[0033] 结合本发明实施例第三方面的第三种可能的实现方式, 在本发明实施例第三方 面的第四种可能的实现方式中, 所述装置还包括:  [0033] In a fourth possible implementation manner of the third aspect of the embodiment of the present invention, the device further includes:
[0034] 上传模块, 用于将所述本地数据库中未上传至服务器中的数据内容上传至服务 器。 [0034] The uploading module is configured to upload the data content in the local database that is not uploaded to the server to the server.
[0035] 本发明实施例第四方面公幵提供了一种数据更新的装置, 所述装置包括: [0036] 发送模块, 用于向终端发送服务器中存储的与预设用户账号对应的数据内容的 更新吋间;  [0035] The fourth aspect of the embodiments of the present invention provides a device for updating data, where the device includes: [0036] a sending module, configured to send, to a terminal, data content corresponding to a preset user account stored in a server Update time
[0037] 接收模块, 用于接收所述终端发送的用于下载所述本地数据库中未下载的服务 器中存储的数据内容的请求;  [0037] a receiving module, configured to receive a request sent by the terminal for downloading data content stored in an undownloaded server in the local database;
[0038] 所述发送模块, 还用于根据所述接收模块接收到的请求从所述服务器中存储的 与预设用户账号对应的数据内容中, 査找并发送所述本地数据库中未下载的服 务器中存储的数据内容。 [0038] the sending module is further configured to: find and send the undownloaded service in the local database from the data content corresponding to the preset user account stored in the server according to the request received by the receiving module. The data content stored in the server.
[0039] 在本发明实施例第四方面的第一种可能的实现方式中, 所述接收模块还用于接 收所述终端上传的所述本地数据库中未上传至服务器中的数据内容。  In a first possible implementation manner of the fourth aspect of the embodiment, the receiving module is further configured to receive data content that is not uploaded to the server in the local database uploaded by the terminal.
[0040] 结合本发明实施例第四方面的第一种可能的实现方式, 在本发明实施例第四方 面的第二种可能的实现方式中, 所述装置还包括: With reference to the first possible implementation manner of the fourth aspect of the embodiments of the present invention, in a second possible implementation manner of the fourth aspect of the embodiments of the present disclosure, the device further includes:
[0041] 更新模块, 用于根据所述接收模块接收到的数据内容, 更新所述服务器中存储 的与预设用户账号对应的数据内容。 [0041] an update module, configured to update, according to the data content received by the receiving module, the data content corresponding to the preset user account stored in the server.
[0042] 本发明实施例第五方面公幵提供了一种移动终端, 包括输入装置、 输出装置、 存储器和处理器; [0042] A fifth aspect of the embodiments of the present invention provides a mobile terminal, including an input device, an output device, a memory, and a processor;
[0043] 其中, 所述处理器执行如下步骤: [0043] wherein the processor performs the following steps:
[0044] 获取服务器中存储的与预设用户账号对应的数据内容的更新吋间; 其中, 所述 预设用户账号对应多个用户的标识, 所述数据内容包括每一个用户标识对应的 用户数据, 所述用户数据按照吋间进行存储;  [0044] obtaining an update of the data content corresponding to the preset user account stored in the server; wherein the preset user account corresponds to an identifier of the plurality of users, and the data content includes user data corresponding to each user identifier. The user data is stored in a daytime manner;
[0045] 将获取到的所述服务器中存储的每一用户标识对应的用户数据的更新吋间与终 端的本地数据库中存储的与所述每一用户标识对应的用户数据的更新吋间进行 比较, 确定所述本地数据库中未下载的服务器中存储的数据内容;  [0045] comparing the updated update time of the user data corresponding to each user identifier stored in the obtained server with the update time of the user data corresponding to each user identifier stored in the local database of the terminal Determining data content stored in an undownloaded server in the local database;
[0046] 针对多个用户, 并行下载所述本地数据库中未下载的服务器中存储的数据内容 至所述本地数据库。  [0046] For a plurality of users, the data content stored in the undownloaded server in the local database is downloaded in parallel to the local database.
[0047] 在本发明实施例第五方面的第一种可能的实现方式中, 所述处理器还用于执行 如下步骤:  [0047] In a first possible implementation manner of the fifth aspect of the embodiment, the processor is further configured to perform the following steps:
[0048] 获取所述服务器中与所述预设用户账号对应的多个用户的标识;  [0048] obtaining an identifier of multiple users corresponding to the preset user account in the server;
[0049] 将获取到的所述服务器中存在的多个用户的标识与所述终端中存在的多个用户 的标识进行比较; [0049] comparing the acquired identifiers of the plurality of users existing in the server with the identifiers of the plurality of users existing in the terminal;
[0050] 若所述服务器中存在所述终端中没有的用户标识, 将所述服务器中存在的所述 终端中没有的用户标识添加至所述终端的所述预设用户账号下。  [0050] If the user identifier that is not in the terminal exists in the server, the user identifier that is not in the terminal that is in the server is added to the preset user account of the terminal.
[0051] 结合本发明实施例第五方面或第五方面的第一种可能的实现方式, 在本发明实 施例第五方面的第二种可能的实现方式中, 所述处理器还用于执行如下步骤: With reference to the fifth aspect or the first possible implementation manner of the fifth aspect, in a second possible implementation manner of the fifth aspect of the embodiment, the processor is further configured to perform The following steps:
[0052] 将获取到的所述服务器中存储的每一用户标识对应的用户数据的更新吋间与终 端的本地数据库中存储的与所述每一用户标识对应的用户数据的更新吋间进行 比较, 确定所述本地数据库中未上传至服务器中的数据内容; And [0052] updating, updating, and ending the user data corresponding to each user identifier stored in the obtained server Comparing the update of the user data corresponding to each user identifier stored in the local database of the terminal, and determining the data content in the local database that is not uploaded to the server;
[0053] 将所述本地数据库中未上传至服务器中的数据内容上传至服务器。  [0053] uploading the data content in the local database that is not uploaded to the server to the server.
[0054] 本发明实施例第六方面公幵提供了一种服务器, 包括输入装置、 输出装置、 存 储器和处理器;  [0054] A sixth aspect of the embodiments of the present invention provides a server, including an input device, an output device, a memory, and a processor;
[0055] 其中, 所述处理器执行如下步骤: [0055] wherein the processor performs the following steps:
[0056] 向终端发送服务器中存储的与预设用户账号对应的数据内容的更新吋间; [0057] 接收所述终端发送的用于下载所述本地数据库中未下载的服务器中存储的数据 内容的请求;  [0057] transmitting, to the terminal, an update of the data content corresponding to the preset user account stored in the server; [0057] receiving, by the terminal, the data content stored in the server that is not downloaded in the local database Request
[0058] 根据所述接收到的请求从所述服务器中存储的与预设用户账号对应的数据内容 中, 査找并发送所述本地数据库中未下载的服务器中存储的数据内容。  [0058] searching, according to the received request, data content stored in the undownloaded server in the local database from the data content corresponding to the preset user account stored in the server.
[0059] 在本发明实施例第六方面的第一种可能的实现方式中, 所述处理器还用于执行 如下步骤:  [0059] In a first possible implementation manner of the sixth aspect of the embodiments, the processor is further configured to perform the following steps:
[0060] 接收所述终端上传的所述本地数据库中未上传至服务器中的数据内容;  [0060] receiving, in the local database uploaded by the terminal, data content that is not uploaded to the server;
[0061] 根据所述接收到的数据内容, 更新所述服务器中存储的与预设用户账号对应的 数据内容。 [0061] updating the data content corresponding to the preset user account stored in the server according to the received data content.
[0062] 本发明实施例可通过增量更新终端的本地数据库中存储的数据内容和多线程并 行下载本地数据库中未下载的服务器中存储的数据内容, 能够提高数据更新速 度, 同吋也能提高数据同步效率。  [0062] The embodiment of the present invention can incrementally update the data content stored in the local database of the terminal and download the data content stored in the undownloaded server in the local database in parallel, thereby improving the data update speed and improving the data. Data synchronization efficiency.
[0063] 附图说明  BRIEF DESCRIPTION OF THE DRAWINGS
[0064] 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例中 所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发 明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提 下, 还可以根据这些附图获得其他的附图。  [0064] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments will be briefly described below. Obviously, the drawings in the following description are only the present drawings. Some embodiments of the invention may be obtained by those of ordinary skill in the art from the drawings without departing from the scope of the invention.
[0065] 图 1是本发明实施例中的一种数据更新方法的流程示意图; 1 is a schematic flowchart of a data update method in an embodiment of the present invention;
[0066] 图 2是本发明另一实施例中的数据更新方法的流程示意图; 2 is a schematic flow chart of a data updating method in another embodiment of the present invention;
[0067] 图 3是本发明另一实施例中的数据更新方法的流程示意图; 3 is a schematic flowchart of a data update method in another embodiment of the present invention;
[0068] 图 4是本发明另一实施例中的数据更新方法的流程示意图; [0069] 图 5是本发明实施例中的一种数据更新装置的结构示意图; 4 is a schematic flowchart of a data update method in another embodiment of the present invention; 5 is a schematic structural diagram of a data updating apparatus according to an embodiment of the present invention;
[0070] 图 6是本发明另一实施例中的数据更新装置的结构示意图; 6 is a schematic structural diagram of a data updating apparatus in another embodiment of the present invention;
[0071] 图 7是本发明另一实施例中的数据更新装置的结构示意图; 7 is a schematic structural diagram of a data updating apparatus in another embodiment of the present invention;
[0072] 图 8是本发明另一实施例中的数据更新装置的结构示意图; 8 is a schematic structural diagram of a data updating apparatus according to another embodiment of the present invention;
[0073] 图 9是本发明实施例中的一种移动终端的结构示意图; 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
[0074] 图 10是本发明实施例中的一种服务器的结构示意图。 10 is a schematic structural diagram of a server in an embodiment of the present invention.
[0075] 具体实施方式 DETAILED DESCRIPTION
[0076] 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部 的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳 动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
[0077] 请参阅图 1 , 图 1是本发明实施例中的一种数据更新方法的流程示意图, 如图所 示本实施例中的数据更新方法可以包括:  Referring to FIG. 1 , FIG. 1 is a schematic flowchart of a data update method according to an embodiment of the present invention. The data update method in this embodiment may include:
[0078] 步骤 S101、 获取服务器中存储的与预设用户账号对应的数据内容的更新吋间; 其中, 所述预设用户账号对应多个用户的标识, 所述数据内容包括每一个用户 标识对应的用户数据, 所述用户数据按照吋间进行存储。  [0078] Step S101: Obtain an update period of the data content corresponding to the preset user account stored in the server, where the preset user account corresponds to an identifier of multiple users, and the data content includes each user identifier corresponding to the user identifier. User data, the user data is stored in the daytime.
[0079] 本发明实施例中, 通信终端首先可以向服务器发送用于获取所述服务器中存储 的与预设用户账号对应的数据内容的更新吋间的请求, 所述通信终端根据所述 发送的请求向所述服务器获取所述服务器中存储的与预设用户账号对应的数据 内容的更新吋间; 所述通信终端还可以向所述服务器发送用于获取所述服务器 中与所述预设用户账号对应的多个用户的标识的请求, 所述通信终端根据所述 发送的请求向所述服务器获取所述服务器中与所述预设用户账号对应的多个用 户的标识; 其中, 所述预设用户账号对应多个用户的标识, 所述数据内容包括 每一个用户标识对应的用户数据, 所述用户数据按照吋间进行存储。  In the embodiment of the present invention, the communication terminal may first send, to the server, a request for acquiring an update time of the data content corresponding to the preset user account stored in the server, where the communication terminal sends the And requesting, by the server, an update of the data content corresponding to the preset user account stored in the server; the communication terminal may further send the server to acquire the preset user in the server a request for the identifiers of the plurality of users corresponding to the account, the communication terminal acquiring, according to the sent request, the identifiers of the plurality of users corresponding to the preset user accounts in the server; The user account corresponds to the identifier of the plurality of users, and the data content includes user data corresponding to each user identifier, and the user data is stored according to the time.
[0080] 所述通信终端可以包括个人电脑、 智能手机 (如 Android手机、 iOS手机等) 、 平板电脑、 掌上电脑、 移动互联网设备 (MID, Mobile Internet Devices) 或 穿戴式智能设备等互联网设备, 本发明实施例不作限定。 [0080] The communication terminal may include an Internet device such as a personal computer, a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palmtop computer, a mobile Internet device (MID, Mobile Internet Devices), or a wearable smart device, The embodiment of the invention is not limited.
[0081] 其中, 所述预设用户账号对应多个用户的标识, 所述用户标识用于标记识别用 户的身份信息, 可以包括用户 ID、 用户姓名, 以及其他用于标记识别用户身份 信息的标识, 本发明实施例不作限定。 [0081] The preset user account corresponds to an identifier of multiple users, and the user identifier is used for marking identification. The identity information of the user may include a user ID, a user name, and other identifiers for marking the identity information of the user, which are not limited in the embodiment of the present invention.
[0082] 其中, 所述用户数据按照吋间进行存储, 所述用户数据可以按照吋间从大至小 的顺序进行存储, 也可以按照吋间从小至大的顺序进行存储, 本发明实施例不 作限定; 所述用户数据可以包括不同类型的数据, 也可以包括同一类型的数据[0082] The user data is stored in the time interval, and the user data may be stored in the order from the largest to the smallest, or may be stored in the order from the smallest to the largest. The user data may include different types of data, and may also include the same type of data.
, 本发明实施例不作限定。 The embodiment of the invention is not limited.
[0083] 示例性地, 所述用户数据可以包括运动数据、 睡眠数据、 心率和体表温度数据[0083] Illustratively, the user data may include motion data, sleep data, heart rate, and body surface temperature data.
、 环境温湿度数据、 气压数据、 女性生理周期数据等不同类型的用户数据, 也 可以只包括上述一些系列数据中的一种类型数据, 如只包括睡眠数据。 Different types of user data such as ambient temperature and humidity data, barometric pressure data, and female physiological cycle data may also include only one type of data in the above series of data, such as only including sleep data.
[0084] 步骤 S102、 将获取到的所述服务器中存储的每一用户标识对应的用户数据的更 新吋间与终端的本地数据库中存储的与所述每一用户标识对应的用户数据的更 新吋间进行比较, 确定所述本地数据库中未下载的服务器中存储的数据内容。 [0084] Step S102: Update the user data corresponding to each user identifier stored in the update database of the user data corresponding to each user identifier stored in the obtained server and the local database of the terminal. To compare, determine the data content stored in the server that is not downloaded in the local database.
[0085] 本发明实施例中, 所述通信终端可以将步骤 S101中获取到的所述服务器中存储 的每一用户标识对应的用户数据的更新吋间与通信终端的本地数据库中存储的 与所述每一用户标识对应的用户数据的更新吋间进行比较, 确定所述本地数据 库中未下载的服务器中存储的数据内容, 或者确定所述本地数据库中未上传至 服务器中的数据内容; 所述通信终端还可以将获取到的所述服务器中存在的多 个用户的标识与所述通信终端中存在的多个用户的标识进行比较, 确定所述服 务器中存在所述终端中没有的用户标识。 In the embodiment of the present invention, the communication terminal may store the update time of the user data corresponding to each user identifier stored in the server acquired in step S101 and the local database stored in the communication terminal. Comparing the update of the user data corresponding to each user identifier, determining the data content stored in the undownloaded server in the local database, or determining the data content in the local database that is not uploaded to the server; The communication terminal may further compare the acquired identifiers of the plurality of users existing in the server with the identifiers of the plurality of users existing in the communication terminal, and determine that the user identifiers that are not in the terminal are present in the server.
[0086] 具体实现中, 所述通信终端首先将步骤 S101获取到的所述服务器中存储的每一 用户标识对应的用户数据的更新吋间与通信终端的本地数据库中存储的与所述 每一用户标识对应的用户数据的更新吋间进行比较, 如果步骤 S101获取到的所 述服务器中存储的每一用户标识对应的用户数据的更新吋间比所述通信终端的 本地数据库中存储的与所述每一用户标识对应的用户数据的更新吋间大吋, 进 一步确定本地数据库中未下载的服务器中存储的数据内容; 如果步骤 S101获取 到的所述服务器中存储的每一用户标识对应的用户数据的更新吋间比所述通信 终端的本地数据库中存储的与所述每一用户标识对应的用户数据的更新吋间小 吋, 进一步确定本地数据库中未上传至服务器中的数据内容。 [0087] 步骤 S103、 针对多个用户, 并行下载所述本地数据库中未下载的服务器中存储 的数据内容至所述本地数据库。 [0086] In a specific implementation, the communication terminal first stores the updated update of the user data corresponding to each user identifier stored in the server acquired in step S101 with the local database in the communication terminal. Comparing the update of the user data corresponding to the user identifier, if the update of the user data corresponding to each user identifier stored in the server acquired in step S101 is more than that stored in the local database of the communication terminal The update of the user data corresponding to each user identifier is further determined, and the data content stored in the server that is not downloaded in the local database is further determined; if the user corresponding to each user identifier stored in the server acquired in step S101 is obtained, The update of the data is further reduced than the update of the user data corresponding to the each user identifier stored in the local database of the communication terminal, and the data content not uploaded to the server in the local database is further determined. [0087] Step S103: Download, in parallel for a plurality of users, data content stored in the undownloaded server in the local database to the local database.
[0088] 本发明实施例中, 针对多个用户而言, 所述通信终端可以并行下载步骤 S102确 定的所述本地数据库中未下载的服务器中存储的数据内容, 将其存储到所述通 信终端的本地数据库; 所述通信终端还可以将步骤 S102中确定的所述本地数据 库中未上传至服务器中的数据内容上传至所述服务器; 所述通信终端还可以将 步骤 S102中确定的所述服务器中存在的所述终端中没有的用户标识添加至所述 终端的所述预设用户账号下。 [0088] In the embodiment of the present invention, for a plurality of users, the communication terminal may download the data content stored in the undownloaded server in the local database determined in step S102 in parallel, and store the data content in the communication terminal. a local database; the communication terminal may further upload the data content not uploaded to the server in the local database determined in step S102 to the server; the communication terminal may further use the server determined in step S102 The user identifier that is not in the terminal that exists in the terminal is added to the preset user account of the terminal.
[0089] 本发明实施例可通过增量更新终端的本地数据库中存储的数据内容和多线程并 行下载本地数据库中未下载的服务器中存储的数据内容, 能够提高数据更新速 度, 同吋也能提高数据同步效率。 [0089] The embodiment of the present invention can incrementally update the data content stored in the local database of the terminal and download the data content stored in the undownloaded server in the local database in parallel, thereby improving the data update speed and improving the data. Data synchronization efficiency.
[0090] 请参阅图 2, 图 2是本发明另一实施例中的数据更新方法的流程示意图, 如图所 示本实施例中的数据更新方法可以包括: Referring to FIG. 2, FIG. 2 is a schematic flowchart of a data updating method according to another embodiment of the present invention. The data updating method in this embodiment may include:
[0091] 步骤 S201、 获取服务器中存储的与预设用户账号对应的数据内容的更新吋间; 其中, 所述预设用户账号对应多个用户的标识, 所述数据内容包括每一个用户 标识对应的用户数据, 所述用户数据按照吋间进行存储。 [0091] Step S201: Obtain an update period of the data content corresponding to the preset user account stored in the server, where the preset user account corresponds to an identifier of multiple users, and the data content includes each user identifier. User data, the user data is stored in the daytime.
[0092] 本发明实施例中, 通信终端首先可以向服务器发送用于获取所述服务器中存储 的与预设用户账号对应的数据内容的更新吋间的请求, 所述通信终端根据所述 发送的请求向所述服务器获取所述服务器中存储的与预设用户账号对应的数据 内容的更新吋间。 In the embodiment of the present invention, the communication terminal may first send, to the server, a request for acquiring an update time of the data content corresponding to the preset user account stored in the server, where the communication terminal sends the Requesting to obtain, from the server, an update period of the data content corresponding to the preset user account stored in the server.
[0093] 所述通信终端可以包括个人电脑、 智能手机 (如 Android手机、 iOS手机等) 、 平板电脑、 掌上电脑、 移动互联网设备 (MID, Mobile Internet Devices) 或 穿戴式智能设备等互联网设备, 本发明实施例不作限定。  [0093] The communication terminal may include an Internet device such as a personal computer, a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palmtop computer, a mobile Internet device (MID, Mobile Internet Devices), or a wearable smart device, The embodiment of the invention is not limited.
[0094] 其中, 所述预设用户账号对应多个用户的标识, 所述用户标识用于标记识别用 户的身份信息, 可以包括用户 ID、 用户姓名, 以及其他用于标记识别用户身份 信息的标识, 本发明实施例不作限定。 [0094] The preset user account corresponds to an identifier of a plurality of users, and the user identifier is used to mark the identity information of the identified user, and may include a user ID, a user name, and other identifiers for marking the identity information of the user. The embodiment of the invention is not limited.
[0095] 其中, 所述用户数据按照吋间进行存储, 所述用户数据可以按照吋间从先至后 的顺序进行存储, 也可以按照吋间从后至先的顺序进行存储, 本发明实施例不 作限定; 所述用户数据可以包括不同类型的数据, 也可以包括同一类型的数据 , 本发明实施例不作限定。 [0095] The user data is stored in the time interval, and the user data may be stored in the order from the first to the last, or may be stored in the order from the back to the first, in the embodiment of the present invention. Do not The user data may include different types of data, and may also include the same type of data, which is not limited by the embodiment of the present invention.
[0096] 示例性地, 所述用户数据可以包括运动数据、 睡眠数据、 心率和体表温度数据 、 环境温湿度数据、 气压数据、 女性生理周期数据等不同类型的用户数据, 也 可以只包括上述一些系列数据中的一种类型数据, 如只包括睡眠数据。  [0096] Illustratively, the user data may include different types of user data such as motion data, sleep data, heart rate and body surface temperature data, ambient temperature and humidity data, air pressure data, female physiological cycle data, etc., and may only include the above One type of data in some series of data, such as only including sleep data.
[0097] 举例来说, 某智能手环应用软件下有一用户账号 A, 且用户账号 A下存在有 10 个用户 (分别是用户 A、 用户 B、 用户 C ......用户 J) , 每一用户对应有属于自己 的用户 ID号, 以及每一用户 ID号对应的用户数据, 所述用户数据 5种数据, 分别 可以是运动数据、 睡眠数据、 心率数据、 体表温度数据以及女性生理周期数据 。 其中, 用户 B、 用户 C和用户 F为女性用户。 用户 A至用户 J佩戴的智能手环可 以实吋检测佩戴用户的用户数据。  [0097] For example, a smart phone application software has a user account A, and there are 10 users under the user account A (user A, user B, user C, user J, respectively). Each user has its own user ID number and user data corresponding to each user ID number. The user data includes five types of data, which are motion data, sleep data, heart rate data, body surface temperature data, and female physiology. Cycle data. Among them, user B, user C, and user F are female users. The smart bracelet worn by user A to user J can actually detect the user data of the wearing user.
[0098] 当用户 A使用自己的手机 A打幵智能手环软件进入到登录界面后, 输入用户账 号 A及密码, 手机 A将用户账号 A及密码提交到服务器中, 服务器进行验证, 当 验证到用户账号 A及密码正确之后, 用户 A成功登录用户账号 A; 当服务器无法 检测到用户账号 A及密码吋, 向手机 A发送一个网络错误的提醒消息, 或者当服 务器验证到用户账号 A和 /或密码错误吋, 向手机发送一个输入的用户账号 A或者 输入的密码错误的提醒消息。  [0098] When user A uses his mobile phone A to open the smart bracelet software to enter the login interface, enter the user account A and password, and the mobile phone A submits the user account A and password to the server, and the server performs verification. After the user account A and password are correct, user A successfully logs in to user account A; when the server cannot detect user account A and password, send a network error alert message to mobile phone A, or when the server verifies user account A and/or If the password is incorrect, send an incoming user account A or a password error message to the phone.
[0099] 当手机 A登录用户账号 A成功之后, 手机 A可以从服务器中获取所述服务器中 存储的用户账号 A下的每个用户 ID号对应的 5种用户数据的更新吋间, 假设获取 到的其更新吋间为 2015年 9月 19日 13:02:23。 同理, 其余 9个用户也可以使用自己 的手机进行相应的操作。  [0099] After the mobile phone A logs in to the user account A successfully, the mobile phone A can obtain, from the server, the update time of the five types of user data corresponding to each user ID number stored in the user account A stored in the server, assuming that Its update time is September 19, 2015 at 13:02:23. For the same reason, the other 9 users can also use their own mobile phones to perform the corresponding operations.
[0100] 步骤 S202、 将获取到的所述服务器中存储的每一用户标识对应的用户数据的更 新吋间与终端的本地数据库中存储的与所述每一用户标识对应的用户数据的更 新吋间进行比较, 确定所述本地数据库中未下载的服务器中存储的数据内容。  [0100] Step S202: Update the user data corresponding to each user identifier stored in the update database of the user data corresponding to each user identifier stored in the obtained server and the local database of the terminal. To compare, determine the data content stored in the server that is not downloaded in the local database.
[0101] 本发明实施例中, 通信终端将步骤 S201获取到的所述服务器中存储的每一用户 标识对应的用户数据的更新吋间与终端的本地数据库中存储的与所述每一用户 标识对应的用户数据的更新吋间进行比较, 如果步骤 S201获取到的所述服务器 中存储的每一用户标识对应的用户数据的更新吋间比终端的本地数据库中存储 的与所述每一用户标识对应的用户数据的更新吋间大吋, 确定所述本地数据库 中未下载的服务器中存储的数据内容。 [0101] In the embodiment of the present invention, the communication terminal stores, in the update database of the user data corresponding to each user identifier stored in the server acquired in step S201, and the user identifier stored in the local database of the terminal. The update of the corresponding user data is compared, if the update of the user data corresponding to each user identifier stored in the server acquired in step S201 is stored in the local database of the terminal. The update of the user data corresponding to each of the user identifiers determines the data content stored in the undownloaded server in the local database.
[0102] 具体实现中, 将上述手机 A获取到的所述服务器中存储的用户账号 A下的每个 用户 ID号对应的 5种用户数据的更新吋间 2015年 9月 19日 13:02:23与手机 A本地数 据库中存储的每一用户 ID号对应的用户数据的更新吋间 2015年 9月 17日 10:02:23 作对比, 明显地, 手机 A从服务器上获取到的相应的更新吋间 2015年 9月 19日 13: 02:23比本地数据库中存储的用户数据的更新吋间 2015年 9月 17日 10:02:23大, 手 机 A将确定本地数据库中存储的用户数据的更新吋间 2015年 9月 17日 10:02:23之后 的服务器中存储的用户账号 A下的每个用户 ID号对应的 5种用户数据为手机 A本 地数据库中未下载的服务器中存储的数据内容, 手机 A还可以向服务器发送用于 下载所述本地数据库中未下载的服务器中存储的数据内容的请求。 同理, 其余 9 个用户也可以使用自己的手机进行相应的操作。  [0102] In a specific implementation, the update of the five types of user data corresponding to each user ID number in the user account A stored in the server acquired by the mobile phone A is 13:02 on September 19, 2015: 23 Compared with the update of the user data corresponding to each user ID number stored in the local database of the mobile phone A, on September 17, 2015, 10:02:23, obviously, the corresponding update obtained by the mobile phone A from the server On September 19, 2015, 13:02:23 is more than the update of user data stored in the local database. At 10:02:23 on September 17, 2015, Mobile A will determine the user data stored in the local database. Update 5 kinds of user data corresponding to each user ID number under the user account A stored in the server after 10:02:23 on September 17, 2015 is the data stored in the server not downloaded in the local database of the mobile phone A. Content, the mobile phone A can also send a request to the server for downloading the data content stored in the undownloaded server in the local database. For the same reason, the other 9 users can also use their own mobile phones to perform the corresponding operations.
[0103] 步骤 S203、 针对多个用户, 并行下载所述本地数据库中未下载的服务器中存储 的数据内容至所述本地数据库。  [0103] Step S203: Download, in parallel for a plurality of users, data content stored in the undownloaded server in the local database to the local database.
[0104] 本发明实施例中, 通信终端根据步骤 S201中已确定的所述本地数据库中未下载 的服务器中存储的数据内容至所述本地数据库, 针对多个用户而言, 所述通信 终端可以并行下载所述本地数据库中未下载的服务器中存储的数据内容至所述 本地数据库。  [0104] In the embodiment of the present invention, the communication terminal sends the data content stored in the server that is not downloaded in the local database that is determined in step S201 to the local database, and the communication terminal may be used for multiple users. The data content stored in the undownloaded server in the local database is downloaded in parallel to the local database.
[0105] 具体实现中, 手机 A和其他 9个用户的手机可以从服务器中并行下载各各自手 机本地数据库中未下载的服务器中存储的数据内容; 或者, 手机 A可以从服务器 中并行下载本地数据库没有的 2015年 9月 17日 10:02:23之后服务器存储的与用户 账号 A对应的运动数据、 睡眠数据、 心率数据、 体表温度数据以及女性生理周期 数据。  [0105] In a specific implementation, the mobile phone A and the other nine users' mobile phones can download the data content stored in the undownloaded servers in the local databases of the respective mobile phones in parallel from the server; or, the mobile phone A can download the local database in parallel from the server. There is no sports data, sleep data, heart rate data, body surface temperature data, and female physiological cycle data stored by the server corresponding to the user account A after 10:02:23 on September 17, 2015.
[0106] 步骤 S204、 获取所述服务器中与所述预设用户账号对应的多个用户的标识。  [0106] Step S204: Acquire identifiers of multiple users corresponding to the preset user account in the server.
[0107] 具体实现中, 当手机 A登录用户账号 A成功之后, 手机 A可以从服务器中获取 服务器存储的与用户账号 A对应的每一个用户 ID号。 同理, 其余 9个用户也可以 使用自己的手机进行相应的操作。 同理, 其余 9个用户也可以使用自己的手机进 行相应的操作。 [0108] 步骤 S205、 将获取到的所述服务器中存在的多个用户的标识与所述终端中存在 的多个用户的标识进行比较。 [0107] In a specific implementation, after the mobile phone A logs in to the user account A successfully, the mobile phone A can obtain, from the server, each user ID number stored by the server and corresponding to the user account A. For the same reason, the other 9 users can also use their own mobile phones to perform the corresponding operations. For the same reason, the other 9 users can also use their own mobile phones to perform the corresponding operations. [0108] Step S205: Compare the acquired identifiers of the plurality of users existing in the server with the identifiers of the plurality of users existing in the terminal.
[0109] 手机 A将步骤 S204中获取到的 10个用户 ID号与手机 A本地数据库中存储的用户 I D号进行比较。 同理, 其余 9个用户也可以使用自己的手机进行相应的操作。  [0109] The mobile phone A compares the 10 user ID numbers obtained in step S204 with the user ID numbers stored in the local database of the mobile phone A. For the same reason, the other 9 users can also use their own mobile phones to perform the corresponding operations.
[0110] 步骤 S206、 若所述服务器中存在所述终端中没有的用户标识, 将所述服务器中 存在的所述终端中没有的用户标识添加至所述终端的所述预设用户账号下。  [0110] Step S206: If the user identifier that is not in the terminal exists in the server, add the user identifier that is not in the terminal that is in the server to the preset user account of the terminal.
[0111] 本发明实施例中, 通信终端可以通过步骤 S205比较获取到的所述服务器中存在 的多个用户的标识与所述终端中存在的多个用户的标识, 如果所述服务器中存 在所述终端中没有的用户标识, 将所述服务器中存在的所述终端中没有的用户 标识添加至所述终端的所述预设用户账号下。  In the embodiment of the present invention, the communication terminal may compare the identifiers of the plurality of users existing in the obtained server with the identifiers of the plurality of users existing in the terminal by using the step S205, if the identifier exists in the server. The user identifier that is not included in the terminal is added to the preset user account of the terminal that is not in the terminal.
[0112] 若将所述通信终端替换成另一通信终端吋, 所述另一通信终端的本地数据库中 不存在所述预设用户账号及所述预设用户账号下的多个用户标识, 所述另一通 信终端根据步骤 S205的比较结果将所述服务器中存储的与所述预设用户账号对 应的多用户标识及所述预设账号添加到所述另一通信终端的本地数据库中; 或 者, 所述通信终端由于出现故障导致检测不到所述通信终端的本地数据库中存 储的所述预设用户账号以及所述预设用户账号对应的多用户标识, 所述通信终 端根据步骤 S205的比较结果将所述服务器中存储的与所述预设用户账号对应的 多用户标识及所述预设账号添加到所述通信终端的本地数据库中。  [0112] If the communication terminal is replaced with another communication terminal, the preset user account and the plurality of user identifiers under the preset user account do not exist in the local database of the other communication terminal. The other communication terminal adds the multi-user identifier corresponding to the preset user account and the preset account account stored in the server to the local database of the another communication terminal according to the comparison result of step S205; or The communication terminal may not detect the preset user account stored in the local database of the communication terminal and the multi-user identifier corresponding to the preset user account, and the communication terminal compares according to step S205. As a result, the multi-user identifier corresponding to the preset user account and the preset account stored in the server are added to the local database of the communication terminal.
[0113] 具体实现中, 假设手机 A的本地数据库中不存在用户 C和用户 D的用户 ID号。  [0113] In a specific implementation, it is assumed that the user ID numbers of the user C and the user D do not exist in the local database of the mobile phone A.
手机 A将获取到的 10个用户 ID号与手机 A本地数据库中存储的 8个用户 ID号进行 比较, 得到比较结果为手机 A缺少用户 C和用户 D的用户 ID号, 手机 A将用户 C和 用户 D的用户 ID号添加到用户账号 A下。 或者,  The mobile phone A compares the obtained 10 user ID numbers with the 8 user ID numbers stored in the local database of the mobile phone A, and obtains a comparison result that the mobile phone A lacks the user ID number of the user C and the user D, and the mobile phone A will user C and User D's user ID number is added to user account A. Or,
[0114] 假设手机 A在步骤 S204中获取到用户账号 A下 12个用户的用户 ID号。 手机 A将 获取到的 12个用户的用户 ID号与手机 A本地数据库中存储的 10个用户 ID号进行 比较, 得到比较结果为手机 A缺少另外两个用户的用户 ID号, 手机 A将比较到的 另外两个用户的用户 ID号添加到用户账号 A下。 或者,  [0114] It is assumed that the mobile phone A acquires the user ID number of the 12 users under the user account A in step S204. The mobile phone A compares the obtained user ID numbers of the 12 users with the 10 user ID numbers stored in the local database of the mobile phone A, and obtains a comparison result that the mobile phone A lacks the user ID numbers of the other two users, and the mobile phone A will compare The user ID numbers of the other two users are added to the user account A. Or,
[0115] 假设手机 A被摔坏了检测不到本地数据库中地用户账号 A以及用户账号 A下的 所有用户 ID号。 手机 A将获取到的 10个用户 ID号与手机 A本地数据库中存储的用 户 ID号进行比较, 得到比较结果为手机 A的本地数据库没有用户账号 A及用户账 号 A下的用户 ID号, 手机 A将用户账号 A及用户账号 A下的所有用户 ID号添加到 手机 A的本地数据库中。 同理, 当用户 A用手机 B替换手机 A进行上述步骤 S205和 步骤 S206操作吋, 假设手机 B的本地数据库中不存在用户账号 A以及用户账号 A 下的用户 ID号, 那么, 通过比较结果手机 B将用户账号 A及用户账号 A下的所有 用户 ID号添加到手机 B的本地数据库中。 [0115] Assuming that the mobile phone A is broken, the user account A in the local database and all the user ID numbers under the user account A are not detected. The user ID number that mobile phone A will obtain is stored in the local database of mobile phone A. The user ID number is compared, and the comparison result is that the local database of the mobile phone A has no user account A and the user ID number under the user account A, and the mobile phone A adds all the user ID numbers under the user account A and the user account A to the mobile phone A. In the local database. Similarly, when user A replaces mobile phone A with mobile phone B to perform the above steps S205 and S206, assuming that user account A and user ID number under user account A do not exist in the local database of mobile phone B, then, by comparing the results of the mobile phone B adds all user ID numbers under user account A and user account A to the local database of mobile phone B.
[0116] 步骤 S207、 将获取到的所述服务器中存储的每一用户标识对应的用户数据的更 新吋间与终端的本地数据库中存储的与所述每一用户标识对应的用户数据的更 新吋间进行比较, 确定所述本地数据库中未上传至服务器中的数据内容。  [0116] Step S207, updating the updated user data corresponding to each user identifier stored in the obtained server and the user data corresponding to the user identifier stored in the local database of the terminal吋To compare, determine the data content in the local database that is not uploaded to the server.
[0117] 本发明实施例中, 通信终端将获取到的所述服务器中存储的每一用户标识对应 的用户数据的更新吋间与终端的本地数据库中存储的与所述每一用户标识对应 的用户数据的更新吋间进行比较, 如果所述通信终端获取到的所述服务器中存 储的每一用户标识对应的用户数据的更新吋间比终端的本地数据库中存储的与 所述每一用户标识对应的用户数据的更新吋间小吋, 确定所述本地数据库中未 上传至服务器中的数据内容。 [0117] In the embodiment of the present invention, the communication terminal obtains, between the updated update of the user data corresponding to each user identifier stored in the server, and the local database stored in the terminal, corresponding to each user identifier. Comparing the update of the user data, if the update data of the user data corresponding to each user identifier stored in the server acquired by the communication terminal is compared with the user identifier stored in the local database of the terminal Corresponding user data update time, determine the data content in the local database that is not uploaded to the server.
[0118] 具体实现中, 将上述手机 A获取到的所述服务器中存储的用户账号 A下的每个 用户 ID号对应的 5种用户数据的更新吋间 2015年 9月 19日 13:02:23与手机 A本地数 据库中存储的每一用户 ID号对应的用户数据的更新吋间 2015年 9月 19日 15:14:23 作对比, 明显地, 手机 A从服务器上获取到的相应的更新吋间 2015年 9月 19日 13: 02:23比本地数据库中存储的用户数据的更新吋间 2015年 9月 19日 15:14:23小, 手 机 A将确定本地数据库中存储的用户数据的更新吋间 2015年 9月 19日 13:02:23之后 的本地数据库中存储的与用户账号 A对应的用户数据为手机 A所述本地数据库中 未上传至服务器中的数据内容。 同理, 其余 9个用户也可以使用自己的手机进行 相应的操作。 [0118] In a specific implementation, the update of the five types of user data corresponding to each user ID number in the user account A stored in the server acquired by the mobile phone A is 13:02 on September 19, 2015: 23 Compared with the update of the user data corresponding to each user ID number stored in the local database of the mobile phone A, on September 19, 2015, 15:14:23, obviously, the corresponding update obtained by the mobile phone A from the server On September 19, 2015, 13:02:23, compared to the update of user data stored in the local database, on September 19, 2015, 15:14:23, mobile phone A will determine the user data stored in the local database. The user data corresponding to the user account A stored in the local database after the update on September 19, 2015, 13:02:23 is the data content not uploaded to the server in the local database described in the mobile phone A. For the same reason, the other 9 users can also use their own mobile phones to perform the corresponding operations.
[0119] 步骤 S208、 将所述本地数据库中未上传至服务器中的数据内容上传至服务器。  [0119] Step S208: Upload data content that is not uploaded to the server in the local database to the server.
[0120] 本发明实施例中, 通信终端将步骤 S207中确定的所述本地数据库中未上传至服 务器中的数据内容上传至服务器。 [0120] In the embodiment of the present invention, the communication terminal uploads the data content that is not uploaded to the server in the local database determined in step S207 to the server.
[0121] 具体实现中, 手机 A将 2015年 9月 19日 13:02:23之后的本地数据库中存储的与用 户账号 A对应的 5种用户数据上传至服务器。 [0121] In a specific implementation, the mobile phone A stores the usage in the local database after 13:02:23 on September 19, 2015. The five types of user data corresponding to the account A are uploaded to the server.
[0122] 本发明实施例可通过增量更新终端的本地数据库中存储的数据内容和多线程并 行下载本地数据库中未下载的服务器中存储的数据内容, 能够提高数据更新速 度, 同吋也能提高数据同步效率。 [0122] The embodiment of the present invention can incrementally update the data content stored in the local database of the terminal and download the data content stored in the undownloaded server in the local database in parallel, thereby improving the data update speed and improving the data. Data synchronization efficiency.
[0123] 请参阅图 3, 图 3是本发明另一实施例中的数据更新方法的流程示意图, 如图所 示本实施例中的数据更新方法可以包括: Referring to FIG. 3, FIG. 3 is a schematic flowchart of a data updating method in another embodiment of the present invention. The data updating method in this embodiment may include:
[0124] 步骤 S301、 向终端发送服务器中存储的与预设用户账号对应的数据内容的更新 吋间。 [0124] Step S301: Send an update of the data content corresponding to the preset user account stored in the server to the terminal.
[0125] 本发明实施例中, 服务器可以接受通信终端发送的用于获取服务器中存储的与 预设用户账号对应的数据内容的更新吋间的请求, 所述服务器根据所述接收到 的请求向所述通信终端发送服务器中存储的与预设用户账号对应的数据内容的 更新吋间。  [0125] In the embodiment of the present invention, the server may receive, by the communication terminal, a request for acquiring an update period of the data content corresponding to the preset user account stored in the server, where the server is configured according to the received request. The communication terminal sends an update time of the data content corresponding to the preset user account stored in the server.
[0126] 步骤 S302、 接收所述终端发送的用于下载所述本地数据库中未下载的服务器中 存储的数据内容的请求。  [0126] Step S302: Receive a request sent by the terminal to download data content stored in a server that is not downloaded in the local database.
[0127] 步骤 S303、 根据所述接收到的请求从所述服务器中存储的与预设用户账号对应 的数据内容中, 査找并发送所述本地数据库中未下载的服务器中存储的数据内 容。 [0127] Step S303: Search and send data content stored in the undownloaded server in the local database from the data content corresponding to the preset user account stored in the server according to the received request.
[0128] 本发明实施例中, 服务器可以根据步骤 S302中接收到的请求, 在服务器中存储 的与预设用户账号对应的数据内容中, 査找并发送本地数据库中未下载的服务 器中存储的数据内容。  [0128] In the embodiment of the present invention, the server may search for and send data stored in an undownloaded server in the local database in the data content corresponding to the preset user account stored in the server according to the request received in step S302. content.
[0129] 具体实现中, 可依据上述图 2给出的本发明另一实施例中的数据更新方法中的 例子, 当服务器接收到手机 A发送的用于下载本地数据库中没有的 2015年 9月 17 日 10:02:23之后服务器存储的与用户账号 A对应的运动数据的请求吋, 服务器査 找并发送与所述请求对应的运动数据; 和 /或, 当服务器接收到手机 A发送的用 于下载本地数据库中没有的 2015年 9月 17日 10:02:23之后服务器存储的与用户账 号 A对应的睡眠数据吋, 服务器査找并发送与所述请求对应的睡眠数据; 和 /或 , 当服务器接收到手机 A发送的用于下载本地数据库中没有的 2015年 9月 17日 10: 02:23之后服务器存储的与用户账号 A对应的心率数据吋, 服务器査找并发送与 所述请求对应的心率数据; 和 /或, 当服务器接收到手机 A发送的用于下载本地 数据库中没有的 2015年 9月 17日 10:02:23之后服务器存储的与用户账号 A对应的体 表温度数据吋, 服务器査找并发送与所述请求对应的体表温度数据; 和 /或, 当 服务器接收到手机 A发送的用于下载本地数据库中没有的 2015年 9月 17日 10:02:23 之后服务器存储的与用户账号 A对应的女性生理周期数据吋, 服务器验证所述服 务器中存储的的所述用户 ID关联的用户性别是否为女性, 当验证到与用户 ID关 联的用户性别是女性吋, 进一步判断与用户 ID关联的用户年齢是否超过预设阈 值范围 0 , 若判断为在预设阈值范围内, 服务器发送与所述请求对应的女性 生理周期数据。 [0129] In a specific implementation, according to the example in the data update method in another embodiment of the present invention given in FIG. 2 above, when the server receives the September 2015 that is sent by the mobile phone A for downloading the local database, After the server stores the request for the motion data corresponding to the user account A after 10:02:23 on the 17th, the server finds and sends the motion data corresponding to the request; and/or, when the server receives the message sent by the mobile phone A, Downloading the sleep data corresponding to the user account A stored by the server after the 10:02:23 on September 17, 2015, which is not in the local database, the server finds and sends the sleep data corresponding to the request; and/or, when the server Receiving the heart rate data sent by the mobile phone A for downloading the user account A corresponding to the user account A after the server is not available in the local database on September 17, 2015 10:02:23, the server searches for and sends the The heart rate data corresponding to the request; and/or, when the server receives the body corresponding to the user account A stored by the server after the mobile phone A sends the downloading of the local database that is not included in the local database on September 17, 2015 10:02:23 The table temperature data 吋, the server finds and sends the body surface temperature data corresponding to the request; and/or, when the server receives the mobile phone A and sends the local database for downloading at 10:02 on September 17, 2015: After the server stores the female physiological cycle data corresponding to the user account A, the server verifies whether the user gender associated with the user ID stored in the server is a female, and when the user gender associated with the user ID is verified to be a female吋, further determining whether the user year associated with the user ID exceeds a preset threshold range of 0, and if it is determined to be within a preset threshold range, the server sends the female physiological cycle data corresponding to the request.
[0130] 请一并参阅图 4, 图 4是本发明另一实施例中的数据更新方法的流程示意图, 如 图所示本实施例中的数据更新方法还可以包括:  [0130] Please refer to FIG. 4, FIG. 4 is a schematic flowchart of a data updating method in another embodiment of the present invention. The data updating method in this embodiment may further include:
[0131] 步骤 S304、 接收所述终端上传的所述本地数据库中未上传至服务器中的数据内 容。 [0131] Step S304: Receive data content that is not uploaded to the server in the local database uploaded by the terminal.
[0132] 具体实现中, 可依据上述图 2给出的本发明另一实施例中的数据更新方法中的 例子, 服务器将接受手机 A发送的 2015年 9月 19日 13:02:23之后的本地数据库中存 储的与用户账号 A对应的 5种用户数据。  [0132] In a specific implementation, according to the example in the data update method in another embodiment of the present invention given in FIG. 2 above, the server will accept the mobile phone A after the 13:02:23 on September 19, 2015. Five kinds of user data corresponding to the user account A stored in the local database.
[0133] 步骤 S305、 根据所述接收到的数据内容, 更新所述服务器中存储的与预设用户 账号对应的数据内容。 [0133] Step S305: Update, according to the received data content, the data content corresponding to the preset user account stored in the server.
[0134] 具体实现中, 服务器根据步骤 S304中接收到的 2015年 9月 19日 13:02:23之后的 本地数据库中存储的与用户账号 A对应的 5种用户数据, 更新服务器中存储的与 用户账号 A对应的 5种用户数据。  [0134] In a specific implementation, the server updates the stored data in the server according to the five types of user data corresponding to the user account A stored in the local database after the processing on the September 19, 2015, 13:02:23, which is received in step S304. Five kinds of user data corresponding to user account A.
[0135] 本发明实施例可通过增量更新终端的本地数据库中存储的数据内容和多线程并 行下载本地数据库中未下载的服务器中存储的数据内容, 能够提高数据更新速 度, 同吋也能提高数据同步效率。 [0135] The embodiment of the present invention can incrementally update the data content stored in the local database of the terminal and download the data content stored in the undownloaded server in the local database in parallel, thereby improving the data update speed and improving the data. Data synchronization efficiency.
[0136] 请参阅图 5, 图 5是本发明实施例中的一种数据更新装置的结构示意图, 所述装 置 50包括: [0136] Please refer to FIG. 5. FIG. 5 is a schematic structural diagram of a data updating apparatus according to an embodiment of the present invention. The apparatus 50 includes:
[0137] 获取模块 500, 用于获取服务器中存储的与预设用户账号对应的数据内容的更 新吋间; 其中, 所述预设用户账号对应多个用户的标识, 所述数据内容包括每 一个用户标识对应的用户数据, 所述用户数据按照吋间进行存储; [0137] The obtaining module 500 is configured to obtain an update interval of the data content corresponding to the preset user account stored in the server, where the preset user account corresponds to an identifier of multiple users, and the data content includes User data corresponding to a user identifier, and the user data is stored according to the time;
[0138] 比较模块 501 , 用于将所述获取模块 500获取到的所述服务器中存储的每一用户 标识对应的用户数据的更新吋间与终端的本地数据库中存储的与所述每一用户 标识对应的用户数据的更新吋间进行比较, 确定所述本地数据库中未下载的服 务器中存储的数据内容;  [0138] The comparison module 501 is configured to store, in the update database of the user data corresponding to each user identifier stored in the server acquired by the obtaining module 500, with each user stored in a local database of the terminal And comparing the update of the corresponding user data to determine the data content stored in the undownloaded server in the local database;
[0139] 下载模块 502, 用于针对多个用户, 并行下载所述比较模块 501比较确定的所述 本地数据库中未下载的服务器中存储的数据内容至所述本地数据库。  [0139] The downloading module 502 is configured to download, in parallel for the plurality of users, the comparison module 501 to compare the determined data content stored in the undownloaded server in the local database to the local database.
[0140] 请一并参阅图 6, 图 6是本发明另一实施例中的数据更新装置的结构示意图, 所 述数据更新装置 60包括上述获取模块 500、 上述比较模块 501和上述下载模块 502  Referring to FIG. 6, FIG. 6 is a schematic structural diagram of a data updating apparatus according to another embodiment of the present invention. The data updating apparatus 60 includes the above-mentioned obtaining module 500, the comparing module 501, and the downloading module 502.
[0141] 可选地, [0141] Alternatively,
[0142] 所述获取模块 500, 还用于获取所述服务器中与所述预设用户账号对应的多个 用户的标识;  The acquiring module 500 is further configured to acquire identifiers of multiple users corresponding to the preset user account in the server;
[0143] 所述比较模块 501 , 还用于将所述获取模块 500获取到的所述服务器中存在的多 个用户的标识与所述终端中存在的多个用户的标识进行比较。  The comparison module 501 is further configured to compare the identifiers of the multiple users existing in the server acquired by the obtaining module 500 with the identifiers of multiple users existing in the terminal.
[0144] 可选地, 所述装置 60还包括: [0144] Optionally, the device 60 further includes:
[0145] 添加模块 503, 用于当所述比较模块 501比较到所述服务器中存在所述终端中没 有的用户标识吋, 将所述服务器中存在的所述终端中没有的用户标识添加至所 述终端的所述预设用户账号下。  [0145] The adding module 503 is configured to: when the comparing module 501 compares that the user identifier that is not in the terminal exists in the server, add a user identifier that is not in the terminal that exists in the server to the The preset user account of the terminal.
[0146] 可选地, [0146] Alternatively,
[0147] 所述比较模块 501 , 还用于将所述获取模块 500获取到的所述服务器中存储的每 一用户标识对应的用户数据的更新吋间与终端的本地数据库中存储的与所述每 一用户标识对应的用户数据的更新吋间进行比较, 确定所述本地数据库中未上 传至服务器中的数据内容。  [0147] The comparison module 501 is further configured to store, in the update database of the user data corresponding to each user identifier stored in the server acquired by the obtaining module 500, the local database in the terminal and the The update of the user data corresponding to each user identifier is compared to determine the data content in the local database that is not uploaded to the server.
[0148] 可选地, 所述装置 60还包括: [0148] Optionally, the device 60 further includes:
[0149] 上传模块 504, 用于将所述本地数据库中未上传至服务器中的数据内容上传至 服务器。  [0149] The uploading module 504 is configured to upload data content that is not uploaded to the server in the local database to the server.
[0150] 本发明实施例可通过增量更新终端的本地数据库中存储的数据内容和多线程并 行下载本地数据库中未下载的服务器中存储的数据内容, 能够提高数据更新速 度, 同吋也能提高数据同步效率。 [0150] The embodiment of the present invention can incrementally update the data content and multi-thread stored in the local database of the terminal. By downloading the data content stored in the undownloaded server in the local database, the data update speed can be improved, and the data synchronization efficiency can be improved.
[0151] 请参阅图 7, 图 7是本发明另一实施例中的数据更新装置的结构示意图, 所述装 置 70包括: Referring to FIG. 7, FIG. 7 is a schematic structural diagram of a data updating apparatus according to another embodiment of the present invention, and the apparatus 70 includes:
[0152] 发送模块 700, 用于向终端发送服务器中存储的与预设用户账号对应的数据内 容的更新吋间;  [0152] The sending module 700 is configured to send, to the terminal, an update interval of the data content corresponding to the preset user account stored in the server;
[0153] 接收模块 701 , 用于接收所述终端发送的用于下载所述本地数据库中未下载的 服务器中存储的数据内容的请求;  [0153] The receiving module 701 is configured to receive a request sent by the terminal for downloading data content stored in an undownloaded server in the local database.
[0154] 所述发送模块 702, 还用于根据所述接收模块 701接收到的请求从所述服务器中 存储的与预设用户账号对应的数据内容中, 査找并发送所述本地数据库中未下 载的服务器中存储的数据内容。 [0154] The sending module 702 is further configured to: according to the request received by the receiving module 701, search and send the data in the local database from the data content corresponding to the preset user account stored in the server. The data content stored in the server.
[0155] 请一并参阅图 8, 图 8是本发明另一实施例中的数据更新装置的结构示意图, 所 述数据更新装置 80包括上述发送模块 700、 上述接收模块 701。 Referring to FIG. 8, FIG. 8 is a schematic structural diagram of a data updating apparatus according to another embodiment of the present invention. The data updating apparatus 80 includes the foregoing sending module 700 and the receiving module 701.
[0156] 可选地, [0156] Alternatively,
[0157] 所述接收模块 701 , 还用于接收所述终端上传的所述本地数据库中未上传至服 务器中的数据内容。  [0157] The receiving module 701 is further configured to receive data content that is not uploaded to the server in the local database uploaded by the terminal.
[0158] 可选地, 所述装置 80还包括; [0158] Optionally, the device 80 further includes:
[0159] 更新模块 702, 用于根据所述接收模块 701接收到的数据内容, 更新所述服务器 中存储的与预设用户账号对应的数据内容。  [0159] The update module 702 is configured to update, according to the data content received by the receiving module 701, the data content corresponding to the preset user account stored in the server.
[0160] 本发明实施例可通过增量更新终端的本地数据库中存储的数据内容和多线程并 行下载本地数据库中未下载的服务器中存储的数据内容, 能够提高数据更新速 度, 同吋也能提高数据同步效率。  [0160] The embodiment of the present invention can incrementally update the data content stored in the local database of the terminal and download the data content stored in the undownloaded server in the local database in parallel, thereby improving the data update speed and improving the data. Data synchronization efficiency.
[0161] 需要说明的是, 上述实施例提供的数据更新装置在进行数据更新设置吋, 仅以 上述各功能模块的划分进行举例说明, 实际应用中, 可以根据需要而将上述功 能分配由不同的功能模块完成, 即将移动通讯终端的内部结构划分成不同的功 能模块, 以完成描述的全部或部分功能。 另外, 上述实施例提供的数据更新装 置分别与图 1至图 4提供的本发明实施例中的数据更新方法属于同一构思, 其具 体实现过程详见方法实施例, 这里不再赘述。 [0162] 请参阅图 9, 图 9是本发明实施例中的一种移动终端的结构示意图, 如图所示本 实施例中的移动终端 90可以包括: 包括输入装置 900、 输出装置 901、 存储器 902 和处理器 903 (网络设备中的处理器 903的数量可以是一个或多个, 图 9中以一个 处理器为例) 。 本发明的一些实施例中, 输入装置 900、 输出装置 901、 存储器 9 02和处理器 903可以通过总线或其他方式连接, 其中, 图 9中以通过总线连接为 例。 [0161] It should be noted that, after the data update device provided by the foregoing embodiment performs the data update setting, only the division of each functional module described above is used for example. In actual applications, the foregoing functions may be assigned differently according to requirements. The function module is completed, that is, the internal structure of the mobile communication terminal is divided into different functional modules to complete all or part of the functions described. In addition, the data updating apparatus provided by the foregoing embodiment is the same as the data updating method in the embodiment of the present invention provided in FIG. 1 to FIG. 4, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again. Referring to FIG. 9, FIG. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. The mobile terminal 90 in this embodiment may include: an input device 900, an output device 901, and a memory. 902 and processor 903 (the number of processors 903 in the network device may be one or more, and one processor in FIG. 9 is taken as an example). In some embodiments of the present invention, the input device 900, the output device 901, the memory 902, and the processor 903 may be connected by a bus or other means, wherein the bus connection is taken as an example in FIG.
[0163] 其中, 所述处理器 903可以用于调用存储器 902中存储的数据更新程序, 并执行 如下步骤:  [0163] The processor 903 can be used to invoke a data update program stored in the memory 902, and perform the following steps:
[0164] 获取服务器中存储的与预设用户账号对应的数据内容的更新吋间; 其中, 所述 预设用户账号对应多个用户的标识, 所述数据内容包括每一个用户标识对应的 用户数据, 所述用户数据按照吋间进行存储;  [0164] obtaining an update of the data content corresponding to the preset user account stored in the server; wherein the preset user account corresponds to an identifier of the plurality of users, and the data content includes user data corresponding to each user identifier. The user data is stored in a daytime manner;
[0165] 将获取到的所述服务器中存储的每一用户标识对应的用户数据的更新吋间与终 端的本地数据库中存储的与所述每一用户标识对应的用户数据的更新吋间进行 比较, 确定所述本地数据库中未下载的服务器中存储的数据内容;  [0165] comparing the updated update time of the user data corresponding to each user identifier stored in the obtained server with the update time of the user data corresponding to each user identifier stored in the local database of the terminal Determining data content stored in an undownloaded server in the local database;
[0166] 针对多个用户, 并行下载所述本地数据库中未下载的服务器中存储的数据内容 至所述本地数据库。  [0166] For a plurality of users, the data content stored in the undownloaded server in the local database is downloaded in parallel to the local database.
[0167] 本发明实施例中, 处理器 903可以用于调用存储器 902中存储的数据更新程序, 还可以执行如下步骤:  [0167] In the embodiment of the present invention, the processor 903 can be used to invoke the data update program stored in the memory 902, and can also perform the following steps:
[0168] 获取所述服务器中与所述预设用户账号对应的多个用户的标识; [0168] acquiring an identifier of multiple users corresponding to the preset user account in the server;
[0169] 将获取到的所述服务器中存在的多个用户的标识与所述终端中存在的多个用户 的标识进行比较; [0169] comparing the acquired identifiers of the plurality of users existing in the server with the identifiers of the plurality of users existing in the terminal;
[0170] 若所述服务器中存在所述终端中没有的用户标识, 将所述服务器中存在的所述 终端中没有的用户标识及所述用户标识对应的用户数据添加至所述终端的所述 预设用户账号下。  [0170] If the user identifier that is not in the terminal exists in the server, add the user identifier that is not in the terminal and the user data corresponding to the user identifier to the terminal Default user account.
[0171] 本发明实施例中, 处理器 903可以用于调用存储器 902中存储的数据更新程序, 还可以执行如下步骤:  In the embodiment of the present invention, the processor 903 can be used to invoke the data update program stored in the memory 902, and can also perform the following steps:
[0172] 将获取到的所述服务器中存储的每一用户标识对应的用户数据的更新吋间与终 端的本地数据库中存储的与所述每一用户标识对应的用户数据的更新吋间进行 比较, 确定所述本地数据库中未上传至服务器中的数据内容; [0172] performing an update of the user data corresponding to each user identifier stored in the obtained server and updating the user data corresponding to each user identifier stored in the local database of the terminal Comparing, determining data content in the local database that is not uploaded to the server;
[0173] 将所述本地数据库中未上传至服务器中的数据内容上传至服务器。 [0173] uploading the data content in the local database that is not uploaded to the server to the server.
[0174] 本发明实施例可通过增量更新终端的本地数据库中存储的数据内容和多线程并 行下载本地数据库中未下载的服务器中存储的数据内容, 能够提高数据更新速 度, 同吋也能提高数据同步效率。 [0174] The embodiment of the present invention can incrementally update the data content stored in the local database of the terminal and download the data content stored in the undownloaded server in the local database in parallel, thereby improving the data update speed and improving the data. Data synchronization efficiency.
[0175] 请参阅图 10, 图 10是本发明实施例中的一种服务器的结构示意图, 如图所示本 实施例中的服务器 100可以包括: 包括输入装置 1000、 输出装置 1001、 存储器 10 02和处理器 1003 (网络设备中的处理器 1003的数量可以是一个或多个, 图 10中 以一个处理器为例) 。 本发明的一些实施例中, 输入装置 1000、 输出装置 1001 、 存储器 1002和处理器 1003可以通过总线或其他方式连接, 其中, 图 10中以通 过总线连接为例。 [0175] Please refer to FIG. 10, which is a schematic structural diagram of a server according to an embodiment of the present invention. The server 100 in this embodiment may include: an input device 1000, an output device 1001, and a memory 10 02. And the processor 1003 (the number of the processors 1003 in the network device may be one or more, and one processor in FIG. 10 is taken as an example). In some embodiments of the present invention, the input device 1000, the output device 1001, the memory 1002, and the processor 1003 may be connected by a bus or other means, wherein the bus connection is taken as an example in FIG.
[0176] 其中, 所述处理器 1003可以用于调用存储器 1002中存储的数据更新程序, 并执 行如下步骤:  [0176] The processor 1003 may be configured to invoke a data update program stored in the memory 1002, and perform the following steps:
[0177] 向终端发送服务器中存储的与预设用户账号对应的数据内容的更新吋间; [0178] 接收所述终端发送的用于下载所述本地数据库中未下载的服务器中存储的数据 内容的请求;  [0177] transmitting, to the terminal, an update of the data content corresponding to the preset user account stored in the server; [0178] receiving, by the terminal, the data content stored in the server that is not downloaded in the local database Request
[0179] 根据所述接收到的请求从所述服务器中存储的与预设用户账号对应的数据内容 中, 査找并发送所述本地数据库中未下载的服务器中存储的数据内容。  [0179] searching, according to the received request, data content stored in the undownloaded server in the local database from the data content corresponding to the preset user account stored in the server.
[0180] 其中, 所述处理器 1003可以用于调用存储器 1002中存储的数据更新程序, 还可 以执行如下步骤:  [0180] The processor 1003 may be configured to invoke a data update program stored in the memory 1002, and may also perform the following steps:
[0181] 接收所述终端上传的所述本地数据库中未上传至服务器中的数据内容;  [0181] receiving, in the local database uploaded by the terminal, data content that is not uploaded to the server;
[0182] 根据所述接收到的数据内容, 更新所述服务器中存储的与预设用户账号对应的 数据内容。 [0182] updating the data content corresponding to the preset user account stored in the server according to the received data content.
[0183] 本发明实施例可通过增量更新终端的本地数据库中存储的数据内容和多线程并 行下载本地数据库中未下载的服务器中存储的数据内容, 能够提高数据更新速 度, 同吋也能提高数据同步效率。  [0183] The embodiment of the present invention can incrementally update the data content stored in the local database of the terminal and download the data content stored in the undownloaded server in the local database in parallel, thereby improving the data update speed and improving the data. Data synchronization efficiency.
[0184] 需要说明的是, 对于前述的各方法实施例, 为了简单描述, 故将其都表述为一 系列的动作组合, 伹是本领域技术人员应该知悉, 本发明并不受所描述的动作 顺序的限制, 因为根据本发明, 某些步骤可以采用其他顺序或者同吋进行。 其 次, 本领域技术人员也应该知悉, 说明书中所描述的实施例均属于优选实施例 , 所涉及的动作和模块并不一定是本发明所必须的。 [0184] It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, and those skilled in the art should know that the present invention is not subject to the described actions. The order is limited because certain steps may be performed in other orders or in the same manner in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0185] 在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没有详述 的部分, 可以参见其他实施例的相关描述。  [0185] In the foregoing embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in an embodiment may be referred to the related descriptions of other embodiments.
[0186] 需要说明的是, 对于前述的各方法实施例, 为了简单描述, 故将其都表述为一 系列的动作组合, 伹是本领域技术人员应该知悉, 本发明并不受所描述的动作 顺序的限制, 因为根据本发明, 某些步骤可以采用其他顺序或者同吋进行。 其 次, 本领域技术人员也应该知悉, 说明书中所描述的实施例均属于优选实施例[0186] It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, and those skilled in the art should know that the present invention is not subject to the described actions. The order is limited because certain steps may be performed in other orders or in the same manner in accordance with the present invention. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to the preferred embodiment.
, 所涉及的动作和模块并不一定是本发明所必须的。 The actions and modules involved are not necessarily required by the present invention.
[0187] 在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没有详述 的部分, 可以参见其他实施例的相关描述。 [0187] In the foregoing embodiments, the descriptions of the various embodiments are different, and the parts that are not detailed in an embodiment may refer to related descriptions of other embodiments.
[0188] 本发明实施例方法中的步骤可以根据实际需要进行顺序调整、 合并和刪减。 [0188] The steps in the method of the embodiment of the present invention may be sequentially adjusted, merged, and deleted according to actual needs.
[0189] 本发明实施例装置中的单元可以根据实际需要进行合并、 划分和刪减。 本领域 的技术人员可以将本说明书中描述的不同实施例以及不同实施例的特征进行结 合或组合。 [0189] The units in the apparatus of the embodiment of the present invention may be combined, divided, and deleted according to actual needs. Those skilled in the art can combine or combine the different embodiments described in the specification and the features of the different embodiments.
[0190] 通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到本发明可 以用硬件实现, 或固件实现, 或它们的组合方式来实现。 当使用软件实现吋, 可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个或多 个指令或代码进行传输。 计算机可读介质包括计算机存储介质和通信介质, 其 中通信介质包括便于从一个地方向另一个地方传送计算机程序的任 1可介质。 存 储介质可以是计算机能够存取的任 1可可用介质。 以此为例伹不限于: 计算机可 读介质可以包括随机存取存储器 (Random Access Memory, RAM). 只读存储器 (Read-Only Memory, ROM). 电可擦可编程只读存储器 (Electrically Erasable Programmable Read-Only Memory, EEPROM)、 只读光盘 (Compact Disc Read-Only Memory, CD-ROM)或其他光盘存储、 磁盘存储介质或者其他磁存 储设备、 或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码 并能够由计算机存取的任 1可其他介质。 此外。 任 1可连接可以适当的成为计算机 可读介质。 例如, 如果软件是使用同轴电缆、 光纤光缆、 双绞线、 数字用户线[0190] Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented in hardware, firmware implementation, or a combination thereof. When implemented in software, the functions described above may be stored in or transmitted as one or more instructions or code on a computer readable medium. Computer readable media includes both computer storage media and communication media, including communication media including any medium that facilitates transfer of a computer program from one location to another. The storage medium can be any of the available media that the computer can access. For example, the computer readable medium may include a random access memory (RAM). Read-Only Memory (ROM). Electrically Erasable Programmable (Electrically Erasable Programmable) Read-Only Memory, EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disc storage, disk storage media or other magnetic storage devices, or capable of carrying or storing instructions or data structures The desired program code and any other medium that can be accessed by the computer. Also. Any one can be connected to become a computer Readable media. For example, if the software is using coaxial cable, fiber optic cable, twisted pair, digital subscriber line
(Digital Subscriber Line, DSL) 或者诸如红外线、 无线电和微波之类的无线技 术从网站、 服务器或者其他远程源传输的, 那么同轴电缆、 光纤光缆、 双绞线 、 DSL或者诸如红外线、 无线和微波之类的无线技术包括在所属介质的定影中 。 如本发明所使用的, 盘 (Disk) 和碟 (disc) 包括压缩光碟 (CD) 、 激光碟 、 光碟、 数字通用光碟 (DVD) 、 软盘和蓝光光碟, 其中盘通常磁性的复制数 据, 而碟则用激光来光学的复制数据。 上面的组合也应当包括在计算机可读介 质的保护范围之内。 (Digital Subscriber Line, DSL) or wireless technology such as infrared, radio and microwave transmission from a website, server or other remote source, then coaxial cable, fiber optic cable, twisted pair, DSL or such as infrared, wireless and microwave Wireless technologies such as those included in the fixing of the associated medium. As used in the present invention, a disk and a disc include a compact disc (CD), a laser disc, a disc, a digital versatile disc (DVD), a floppy disc, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable medium.
总之, 以上所述仅为本发明技术方案的较佳实施例而已, 并非用于限定本发 明的保护范围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。  In summary, the above description is only a preferred embodiment of the technical solution of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
技术问题 technical problem
问题的解决方案 Problem solution
发明的有益效果 Advantageous effects of the invention

Claims

权利要求书 Claim
[权利要求 1] 一种数据更新的方法, 其特征在于, 所述方法包括:  [Claim 1] A method for updating data, the method comprising:
获取服务器中存储的与预设用户账号对应的数据内容的更新吋间; 其 中, 所述预设用户账号对应多个用户的标识, 所述数据内容包括每一 个用户标识对应的用户数据, 所述用户数据按照吋间进行存储; 将获取到的所述服务器中存储的每一用户标识对应的用户数据的更新 吋间与终端的本地数据库中存储的与所述每一用户标识对应的用户数 据的更新吋间进行比较, 确定所述本地数据库中未下载的服务器中存 储的数据内容;  Acquiring an update of the data content corresponding to the preset user account stored in the server; wherein the preset user account corresponds to the identifier of the plurality of users, and the data content includes user data corresponding to each user identifier, The user data is stored in the middle of the time; the updated data of the user data corresponding to each user identifier stored in the acquired server and the user data corresponding to each user identifier stored in the local database of the terminal are obtained. The update period is compared to determine the data content stored in the undownloaded server in the local database;
针对多个用户, 并行下载所述本地数据库中未下载的服务器中存储的 数据内容至所述本地数据库。  For a plurality of users, the data content stored in the undownloaded server in the local database is downloaded in parallel to the local database.
[权利要求 2] 如权利要求 1所述的方法, 其特征在于, 所述方法还包括:  [Claim 2] The method according to claim 1, wherein the method further comprises:
获取所述服务器中与所述预设用户账号对应的多个用户的标识; 将获取到的所述服务器中存在的多个用户的标识与所述终端中存在的 多个用户的标识进行比较;  Obtaining, by the server, an identifier of a plurality of users corresponding to the preset user account; comparing the acquired identifiers of the plurality of users existing in the server with identifiers of multiple users existing in the terminal;
若所述服务器中存在所述终端中没有的用户标识, 将所述服务器中存 在的所述终端中没有的用户标识添加至所述终端的所述预设用户账号 下。  If the user identifier that is not in the terminal exists in the server, the user identifier that is not in the terminal that is stored in the server is added to the preset user account of the terminal.
[权利要求 3] 如权利要求 1或 2所述的方法, 其特征在于, 所述方法还包括:  [Claim 3] The method according to claim 1 or 2, wherein the method further comprises:
将获取到的所述服务器中存储的每一用户标识对应的用户数据的更新 吋间与终端的本地数据库中存储的与所述每一用户标识对应的用户数 据的更新吋间进行比较, 确定所述本地数据库中未上传至服务器中的 数据内容;  Comparing the updated update time of the user data corresponding to each user identifier stored in the obtained server with the update time of the user data corresponding to each user identifier stored in the local database of the terminal, and determining Describe the data content in the local database that is not uploaded to the server;
将所述本地数据库中未上传至服务器中的数据内容上传至服务器。  Upload the data content in the local database that is not uploaded to the server to the server.
[权利要求 4] 一种数据更新的方法, 其特征在于, 所述方法包括: [Claim 4] A method for updating data, the method comprising:
向终端发送服务器中存储的与预设用户账号对应的数据内容的更新吋 间;  Sending, to the terminal, an update interval of the data content corresponding to the preset user account stored in the server;
接收所述终端发送的用于下载所述本地数据库中未下载的服务器中存 储的数据内容的请求; Receiving, by the terminal, downloading, in the server that is not downloaded in the local database, a request for stored data content;
根据所述接收到的请求从所述服务器中存储的与预设用户账号对应的 数据内容中, 査找并发送所述本地数据库中未下载的服务器中存储的 数据内容。  And searching, according to the received request, the data content stored in the undownloaded server in the local database from the data content corresponding to the preset user account stored in the server.
[权利要求 5] 如权利要求 4所述的方法, 其特征在于, 所述方法还包括:  [Claim 5] The method according to claim 4, wherein the method further comprises:
接收所述终端上传的所述本地数据库中未上传至服务器中的数据内容  Receiving data content not uploaded to the server in the local database uploaded by the terminal
根据所述接收到的数据内容, 更新所述服务器中存储的与预设用户账 号对应的数据内容。 And updating the data content corresponding to the preset user account stored in the server according to the received data content.
[权利要求 6] —种数据更新的装置, 其特征在于, 所述装置包括: [Claim 6] A device for updating data, characterized in that the device comprises:
获取模块, 用于获取服务器中存储的与预设用户账号对应的数据内容 的更新吋间; 其中, 所述预设用户账号对应多个用户的标识, 所述数 据内容包括每一个用户标识对应的用户数据, 所述用户数据按照吋间 进行存储;  The obtaining module is configured to obtain an update period of the data content corresponding to the preset user account stored in the server, where the preset user account corresponds to the identifier of the plurality of users, and the data content includes the corresponding information of each user identifier. User data, the user data is stored according to the time;
比较模块, 用于将所述获取模块获取到的所述服务器中存储的每一用 户标识对应的用户数据的更新吋间与终端的本地数据库中存储的与所 述每一用户标识对应的用户数据的更新吋间进行比较, 确定所述本地 数据库中未下载的服务器中存储的数据内容;  a comparison module, configured to update user data corresponding to each user identifier corresponding to each user identifier stored in the server acquired by the acquiring module, and user data corresponding to each user identifier stored in a local database of the terminal The update period is compared to determine the data content stored in the undownloaded server in the local database;
下载模块, 用于针对多个用户, 并行下载所述比较模块比较确定的所 述本地数据库中未下载的服务器中存储的数据内容至所述本地数据库  a downloading module, configured to download, in parallel for the plurality of users, the data content stored in the undownloaded server in the local database determined by the comparing module to the local database
[权利要求 7] 如权利要求 6所述的装置, 其特征在于, [Clave 7] The apparatus according to claim 6, wherein
所述获取模块, 还用于获取所述服务器中与所述预设用户账号对应的 多个用户的标识;  The obtaining module is further configured to acquire an identifier of multiple users corresponding to the preset user account in the server;
所述比较模块, 还用于将所述获取模块获取到的所述服务器中存在的 多个用户的标识与所述终端中存在的多个用户的标识进行比较。  The comparison module is further configured to compare the identifiers of the plurality of users existing in the server acquired by the obtaining module with the identifiers of the plurality of users existing in the terminal.
[权利要求 8] 如权利要求 7所述的装置, 其特征在于, 所述装置还包括:  [Claim 8] The device according to claim 7, wherein the device further comprises:
添加模块, 用于当所述比较模块比较到所述服务器中存在所述终端中 没有的用户标识吋, 将所述服务器中存在的所述终端中没有的用户标 识添加至所述终端的所述预设用户账号下。 Adding a module, when the comparing module compares to the presence of the terminal in the server The user identifier that is not included is added to the preset user account of the terminal that is not in the terminal.
如权利要求 6或 7所述的装置, 其特征在于, The device according to claim 6 or 7, wherein
所述比较模块, 还用于将所述获取模块获取到的所述服务器中存储的 每一用户标识对应的用户数据的更新吋间与终端的本地数据库中存储 的与所述每一用户标识对应的用户数据的更新吋间进行比较, 确定所 述本地数据库中未上传至服务器中的数据内容。 The comparison module is further configured to: update the update time of the user data corresponding to each user identifier stored in the server acquired by the obtaining module to the local database stored in the terminal and correspond to each user identifier The update of the user data is compared to determine the data content in the local database that is not uploaded to the server.
如权利要求 9所述的装置, 其特征在于, 所述装置还包括: 上传模块, 用于将所述本地数据库中未上传至服务器中的数据内容上 传至服务器。 The device according to claim 9, wherein the device further comprises: an uploading module, configured to upload the data content in the local database that is not uploaded to the server to the server.
一种数据更新的装置, 其特征在于, 所述装置包括: A device for updating data, characterized in that the device comprises:
发送模块, 用于向终端发送服务器中存储的与预设用户账号对应的数 据内容的更新吋间; a sending module, configured to send, to the terminal, an update time of the data content corresponding to the preset user account stored in the server;
接收模块, 用于接收所述终端发送的用于下载所述本地数据库中未下 载的服务器中存储的数据内容的请求; a receiving module, configured to receive, by the terminal, a request for downloading data content stored in a server that is not downloaded in the local database;
所述发送模块, 还用于根据所述接收模块接收到的请求从所述服务器 中存储的与预设用户账号对应的数据内容中, 査找并发送所述本地数 据库中未下载的服务器中存储的数据内容。 The sending module is further configured to: find, according to the request received by the receiving module, the data content corresponding to the preset user account stored in the server, and find and send the server that is not downloaded in the local database. Data content.
如权利要求 11所述的装置, 其特征在于, The device of claim 11 wherein
所述接收模块, 还用于接收所述终端上传的所述本地数据库中未上传 至服务器中的数据内容。 The receiving module is further configured to receive data content that is not uploaded to the server in the local database uploaded by the terminal.
如权利要求 12所述的装置, 其特征在于, 所述装置还包括; 更新模块, 用于根据所述接收模块接收到的数据内容, 更新所述服务 器中存储的与预设用户账号对应的数据内容。 The device according to claim 12, wherein the device further comprises: an updating module, configured to update data corresponding to the preset user account stored in the server according to the data content received by the receiving module content.
一种移动终端, 其特征在于, 所述移动终端包括输入装置、 输出装置A mobile terminal, characterized in that the mobile terminal comprises an input device and an output device
、 存储器和处理器; , memory and processor;
其中, 所述处理器执行如下步骤: The processor performs the following steps:
获取服务器中存储的与预设用户账号对应的数据内容的更新吋间; 其 中, 所述预设用户账号对应多个用户的标识, 所述数据内容包括每一 个用户标识对应的用户数据, 所述用户数据按照吋间进行存储; 将获取到的所述服务器中存储的每一用户标识对应的用户数据的更新 吋间与终端的本地数据库中存储的与所述每一用户标识对应的用户数 据的更新吋间进行比较, 确定所述本地数据库中未下载的服务器中存 储的数据内容; Obtaining an update of the data content corresponding to the preset user account stored in the server; The preset user account corresponds to the identifiers of the plurality of users, the data content includes user data corresponding to each user identifier, and the user data is stored according to the time; each of the obtained servers is stored The update of the user data corresponding to the user identifier is compared with the update of the user data corresponding to each user identifier stored in the local database of the terminal, and the storage in the undownloaded server in the local database is determined. Data content
针对多个用户, 并行下载所述本地数据库中未下载的服务器中存储的 数据内容至所述本地数据库。  For a plurality of users, the data content stored in the undownloaded server in the local database is downloaded in parallel to the local database.
[权利要求 15] 如权利要求 14所述的终端, 其特征在于, 所述处理器还用于执行如下 步骤: [Claim 15] The terminal according to claim 14, wherein the processor is further configured to perform the following steps:
获取所述服务器中与所述预设用户账号对应的多个用户的标识; 将获取到的所述服务器中存在的多个用户的标识与所述终端中存在的 多个用户的标识进行比较;  Obtaining, by the server, an identifier of a plurality of users corresponding to the preset user account; comparing the acquired identifiers of the plurality of users existing in the server with identifiers of multiple users existing in the terminal;
若所述服务器中存在所述终端中没有的用户标识, 将所述服务器中存 在的所述终端中没有的用户标识添加至所述终端的所述预设用户账号 下。  If the user identifier that is not in the terminal exists in the server, the user identifier that is not in the terminal that is stored in the server is added to the preset user account of the terminal.
[权利要求 16] 如权利要求 14或 15所述的终端, 其特征在于, 所述处理器还用于执行 如下步骤:  [Claim 16] The terminal according to claim 14 or 15, wherein the processor is further configured to perform the following steps:
将获取到的所述服务器中存储的每一用户标识对应的用户数据的更新 吋间与终端的本地数据库中存储的与所述每一用户标识对应的用户数 据的更新吋间进行比较, 确定所述本地数据库中未上传至服务器中的 数据内容;  Comparing the updated update time of the user data corresponding to each user identifier stored in the obtained server with the update time of the user data corresponding to each user identifier stored in the local database of the terminal, and determining Describe the data content in the local database that is not uploaded to the server;
将所述本地数据库中未上传至服务器中的数据内容上传至服务器。  Upload the data content in the local database that is not uploaded to the server to the server.
[权利要求 17] —种服务器, 其特征在于, 包括输入装置、 输出装置、 存储器和处理 器; [Claim 17] A server, comprising: an input device, an output device, a memory, and a processor;
其中, 所述处理器执行如下步骤:  The processor performs the following steps:
向终端发送服务器中存储的与预设用户账号对应的数据内容的更新吋 间; 接收所述终端发送的用于下载所述本地数据库中未下载的服务器中存 储的数据内容的请求; Sending, to the terminal, an update time of the data content corresponding to the preset user account stored in the server; Receiving a request sent by the terminal for downloading data content stored in an undownloaded server in the local database;
根据所述接收到的请求从所述服务器中存储的与预设用户账号对应的 数据内容中, 査找并发送所述本地数据库中未下载的服务器中存储的 数据内容。  And searching, according to the received request, the data content stored in the undownloaded server in the local database from the data content corresponding to the preset user account stored in the server.
[权利要求 18] 如权利要求 17所述的服务器, 其特征在于, 所述处理器还用于执行如 下步骤:  [Claim 18] The server according to claim 17, wherein the processor is further configured to perform the following steps:
接收所述终端上传的所述本地数据库中未上传至服务器中的数据内容 根据所述接收到的数据内容, 更新所述服务器中存储的与预设用户账 号对应的数据内容。  Receiving data content not uploaded to the server in the local database uploaded by the terminal, according to the received data content, updating data content corresponding to the preset user account stored in the server.
PCT/CN2015/091848 2015-10-13 2015-10-13 Method and device for updating data, terminal and server WO2017063143A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2015/091848 WO2017063143A1 (en) 2015-10-13 2015-10-13 Method and device for updating data, terminal and server
CN201580002063.3A CN105934759A (en) 2015-10-13 2015-10-13 Data updating method and device, terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/091848 WO2017063143A1 (en) 2015-10-13 2015-10-13 Method and device for updating data, terminal and server

Publications (1)

Publication Number Publication Date
WO2017063143A1 true WO2017063143A1 (en) 2017-04-20

Family

ID=56840559

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/091848 WO2017063143A1 (en) 2015-10-13 2015-10-13 Method and device for updating data, terminal and server

Country Status (2)

Country Link
CN (1) CN105934759A (en)
WO (1) WO2017063143A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021051747A1 (en) * 2019-09-17 2021-03-25 拉扎斯网络科技(上海)有限公司 Data update method, system and device, electronic device, and computer storage medium
CN114422527A (en) * 2021-12-31 2022-04-29 支付宝(杭州)信息技术有限公司 Block synchronization method and device, electronic equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770164B (en) * 2017-09-30 2020-05-12 Oppo广东移动通信有限公司 Data updating method and device, computer equipment and readable storage medium
CN109214864A (en) * 2018-08-27 2019-01-15 河南丰泰光电科技有限公司 A kind of advertisement recognition method and device, electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030157A (en) * 2007-04-20 2007-09-05 北京搜狗科技发展有限公司 Method and system for updating user vocabulary synchronouslly
CN102281326A (en) * 2011-07-14 2011-12-14 西安和利德软件有限公司 Data automatically synchronizing and updating method based on WEB server procedures
CN103019757A (en) * 2011-09-27 2013-04-03 腾讯科技(深圳)有限公司 Method, device and system for synchronizing software among multiple clients
CN104462324A (en) * 2014-12-03 2015-03-25 浪潮电子信息产业股份有限公司 HDFS multithreaded parallel downloading method
US20150120868A1 (en) * 2013-10-31 2015-04-30 Fujitsu Limited Information processing method, information processing device, and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030157A (en) * 2007-04-20 2007-09-05 北京搜狗科技发展有限公司 Method and system for updating user vocabulary synchronouslly
CN102281326A (en) * 2011-07-14 2011-12-14 西安和利德软件有限公司 Data automatically synchronizing and updating method based on WEB server procedures
CN103019757A (en) * 2011-09-27 2013-04-03 腾讯科技(深圳)有限公司 Method, device and system for synchronizing software among multiple clients
US20150120868A1 (en) * 2013-10-31 2015-04-30 Fujitsu Limited Information processing method, information processing device, and storage medium
CN104462324A (en) * 2014-12-03 2015-03-25 浪潮电子信息产业股份有限公司 HDFS multithreaded parallel downloading method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021051747A1 (en) * 2019-09-17 2021-03-25 拉扎斯网络科技(上海)有限公司 Data update method, system and device, electronic device, and computer storage medium
CN114422527A (en) * 2021-12-31 2022-04-29 支付宝(杭州)信息技术有限公司 Block synchronization method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105934759A (en) 2016-09-07

Similar Documents

Publication Publication Date Title
TWI637280B (en) Monitoring method based on internet of things, fog computing terminal and internet of things system
US11178522B2 (en) Method for providing content corresponding to accessory and electronic device thereof
WO2018219178A1 (en) Data synchronization method and apparatus, server, and storage medium
AU2016382908B2 (en) Short link processing method, device and server
CN102307210B (en) Data downloading system and data management and downloading method thereof
CN110569309A (en) Apparatus, method, system, and medium for implementing blockchains
KR101871383B1 (en) Method and system for using a recursive event listener on a node in hierarchical data structure
WO2017063143A1 (en) Method and device for updating data, terminal and server
WO2015100307A1 (en) Providing access to a cloud based content management system on a mobile device
WO2011082995A1 (en) Automatically synchronizing new contacts across multiple social networking sites
EP4002786B1 (en) Distributed ledger system
JP2016533059A (en) Bluetooth communication method and Bluetooth communication equipment
EP2991280A1 (en) Content sharing method and social synchronizing apparatus
KR20190083127A (en) System and method for trainning convolution neural network model using image in terminal cluster
US20180262499A1 (en) Method and server for implementing control of smart devices by master devices
US10938773B2 (en) Method and apparatus for synchronizing contact information and medium
CN110555129A (en) space image data interaction method and device based on alliance chain
WO2017063142A1 (en) Account registration method, terminal, and server
US20140041054A1 (en) Attestation of possession of media content items using fingerprints
US8412844B2 (en) Validating download success
US20220292216A1 (en) System and method for securing and facilitating access to a digital legacy
CN106027632A (en) Data transmission method and device
CN113342811A (en) HBase table data processing method and device
WO2014176954A1 (en) Processing method, device and system for data of distributed storage system
CN111459538B (en) Code synchronization method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15906028

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15906028

Country of ref document: EP

Kind code of ref document: A1