本文已被:浏览 1439次 下载 2597次
Received:March 08, 2017 Revised:March 27, 2017
Received:March 08, 2017 Revised:March 27, 2017
中文摘要: 针对智能移动应用的特殊性及其在离线情况下的数据同步问题,提出了一种数据同步方案,使用JSON技术设计数据交换协议,移动端离线数据存放在SQLite数据库中、使用基于时间戳的冲突检测算法提高同步的准确性,并采用增量同步方式保证同步的效率和准确性. 将该策略应用在智慧安防系统中,结果表明,基于JSON离线数据同步效率相比传统基于XML的方案提高约8%.
Abstract:In view of the particularity of intelligent mobile applications and its data offline synchronization problems, we put forward a scheme of data synchronization, using JSON technology to design data exchange protocol and the SQLite database to store the mobile terminal offline data, using the conflict detection algorithm based on time stamp to improve the accuracy of synchronization as well as the incremental synchronization mode to ensure the efficiency and accuracy of synchronization. This proposed method is applied to an intelligent security system, and the results show that the efficiency of offline data synchronization based on JSON is about 8% higher than that of the traditional XML based scheme.
文章编号: 中图分类号: 文献标志码:
基金项目:中国科学院西部之光人才培养计划项目(XBBS201319);新疆维吾尔自治区青年科技创新人才培养工程基金项目(2014721033)
引用文本:
穆鑫鑫,蒋同海,程力,马玉鹏.基于JSON的离线数据同步策略及应用.计算机系统应用,2017,26(12):257-261
MU Xin-Xin,JIANG Tong-Hai,CHENG Li,MA Yu-Peng.Offline Data Synchronization Strategy Based on JSON and its Application.COMPUTER SYSTEMS APPLICATIONS,2017,26(12):257-261
穆鑫鑫,蒋同海,程力,马玉鹏.基于JSON的离线数据同步策略及应用.计算机系统应用,2017,26(12):257-261
MU Xin-Xin,JIANG Tong-Hai,CHENG Li,MA Yu-Peng.Offline Data Synchronization Strategy Based on JSON and its Application.COMPUTER SYSTEMS APPLICATIONS,2017,26(12):257-261