For reprint, please indicate the source: http://blog.csdn.NET/itas109
QQ technology exchange group: 129518033
Recently, we encountered a problem in the development process
The mobile terminal needs to synchronize the data of the server (only for query and subject to the data of the server), but with the increasing amount of data, the speed of synchronization will be slower and slower. It is mainly time-consuming to load the mobile device to operate the database and synchronize with the server.
Solutions:
In view of the pain points of the above problems, we mainly solve the time-consuming operation of the mobile terminal to the database and the time-consuming synchronization of the server for many times. Therefore, here we will give a lot of computing work to the server, that is, to solve this problem by using a way of database replacement. Generate a suitable database (such as sqllite) on the server and replace it after downloading. In this way, the time of the whole synchronization system is only the time of downloading and replacing database files, which can be shortened to a very short time.
Applicable conditions:
1. Synchronization is required for non real time, because it takes time for the server to generate database files.
2. The mobile terminal supports databases like sqllite, which can be replaced as a whole
For reprint, please indicate the source: http://blog.csdn.NET/itas109
QQ technology exchange group: 129518033
Read More:
- Error in ffmpeg decoding real-time stream “non existing PPS 0 referenced, decode”_ slice_ header error,no frame!”
- Markdown real time preview of sublime Text3
- Flume monitors a single append file in real time
- SqlSession was not registered for synchronization because synchronization is not active
- Off line data storage and upload scheme
- MySQL data backup scheme (compatible with local and remote)
- Writing to settings when appium of Xiaomi mobile phone and oppo mobile phone starts requires:android.permission.WRITE_ SECURE_ SETTINGS
- Type error: cannot unpack non Iterable non type object appears when starting Bert server in Ubuntu system
- Not creating XLA devices, tf_xla_enable_xla_devices not set
- The time of the time database displayed by the front end is inconsistent
- Rsync client synchronization error
- After switching the tidb database, an error could not commit JDBC transaction appears from time to time
- Canal synchronization error target column: name not matched
- Clion MinGW super fast configuration OpenGL development environment
- Servicetask synchronization failed to set automatic retrying
- Mobile phone code termux
- JWT and token + redis scheme of spring security
- GoogleIO 2013 Android fast networking framework Volley introduction
- How to get the current time in java time string
- The problem of master-slave database synchronization stop caused by MySQL deleting data