The synchronization scheme of the mobile terminal and the server database

Source: Internet
Author: User

Server-side:

1, create data table

2, manipulate the log of the database. Define three fields (ID, Operation time, action content, distribution to the user ID of the owning phone)

Id:js UUID Value

Operation time: 2014/8/21-11:32:10

What to do: Store select,delete,update in JSON format

The user ID that is distributed to the owning phone: The phone is not required by every mobile phone user, and optionally updates the data.

Mobile phone side:

Build the empty library, directly take the server-side operation database log operation. Then take the server-side operation log, filter the time to operate.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.