首页 | 官方网站   微博 | 高级检索  
     

基于JSON的离线数据同步策略及应用
引用本文:穆鑫鑫,蒋同海,程力,马玉鹏.基于JSON的离线数据同步策略及应用[J].计算机系统应用,2017,26(12):257-261.
作者姓名:穆鑫鑫  蒋同海  程力  马玉鹏
作者单位:中国科学院 新疆理化技术研究所, 乌鲁木齐 830011;新疆民族语音语言信息处理实验室, 乌鲁木齐 830011;中国科学院大学 计算机与控制学院, 北京 100049,中国科学院 新疆理化技术研究所, 乌鲁木齐 830011,中国科学院 新疆理化技术研究所, 乌鲁木齐 830011,中国科学院 新疆理化技术研究所, 乌鲁木齐 830011
基金项目:中国科学院西部之光人才培养计划项目(XBBS201319);新疆维吾尔自治区青年科技创新人才培养工程基金项目(2014721033)
摘    要:针对智能移动应用的特殊性及其在离线情况下的数据同步问题,提出了一种数据同步方案,使用JSON技术设计数据交换协议,移动端离线数据存放在SQLite数据库中、使用基于时间戳的冲突检测算法提高同步的准确性,并采用增量同步方式保证同步的效率和准确性. 将该策略应用在智慧安防系统中,结果表明,基于JSON离线数据同步效率相比传统基于XML的方案提高约8%.

关 键 词:数据同步  JSON  SQLite  混合移动应用
收稿时间:2017/3/8 0:00:00
修稿时间:2017/3/27 0:00:00

Offline Data Synchronization Strategy Based on JSON and its Application
MU Xin-Xin,JIANG Tong-Hai,CHENG Li and MA Yu-Peng.Offline Data Synchronization Strategy Based on JSON and its Application[J].Computer Systems& Applications,2017,26(12):257-261.
Authors:MU Xin-Xin  JIANG Tong-Hai  CHENG Li and MA Yu-Peng
Affiliation:Xinjiang Technical Institute of Physics and Chemistry, Chinese Academy of Sciences, Urumqi 830011, China;Xinjiang Key Laboratory of Minority Speech and Language Information Processing, Urumqi 830011, China;School of Computer and Control Engineering, University of Chinese Academy of Sciences, Beijing 100049, China,Xinjiang Technical Institute of Physics and Chemistry, Chinese Academy of Sciences, Urumqi 830011, China,Xinjiang Technical Institute of Physics and Chemistry, Chinese Academy of Sciences, Urumqi 830011, China and Xinjiang Technical Institute of Physics and Chemistry, Chinese Academy of Sciences, Urumqi 830011, China
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.
Keywords:data synchronization  JSON  SQLite  hybrid mobile applications
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号