Classifying and Resolving Unique Constraint Violations during Synchronization Processes

Christine Natschlager, Theodorich Kopetzky
{"title":"Classifying and Resolving Unique Constraint Violations during Synchronization Processes","authors":"Christine Natschlager, Theodorich Kopetzky","doi":"10.1109/LINDI.2009.5258757","DOIUrl":null,"url":null,"abstract":"In mobile environments data from a client database often has to be integrated into a server database during a synchronization process. Thereby unique constraint violations are possible if the client has older data or only part of the data available offline. When inserting data into the server database in an online scenario, a unique constraint violation can be recognized and corrected immediately. However, when being offline a possible later violation might go unrecognized because not all data is available to check against. Later, when synchronizing or merging an offline database with the server database, a violation will occur and the synchronization process will have to handle it. Many synchronization and optimistic data replication ap- proaches treat a unique constraint violation as a conflict. The advantage of this treatment is that the same logic can be used for resolving conflicts and unique constraint violations. However, sometimes conflict resolution can only resolve a violation by overwriting an existing version, or it is not able to resolve the violation at all. By implementing a discrete unique constraint violation resolution, the available information is utilized and overwriting data can be avoided. In most cases the violation can even be resolved automatically. This paper identifies two classes of unique constraint violations and provides a resolution approach for each class. The classifica- tion is based on the experiences collected in a project for a social insurance company in which such violations occurred during the synchronization process. These violations were examined in detail and are presented in this paper.","PeriodicalId":306564,"journal":{"name":"2009 2nd International Symposium on Logistics and Industrial Informatics","volume":"4 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2009-09-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2009 2nd International Symposium on Logistics and Industrial Informatics","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/LINDI.2009.5258757","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

In mobile environments data from a client database often has to be integrated into a server database during a synchronization process. Thereby unique constraint violations are possible if the client has older data or only part of the data available offline. When inserting data into the server database in an online scenario, a unique constraint violation can be recognized and corrected immediately. However, when being offline a possible later violation might go unrecognized because not all data is available to check against. Later, when synchronizing or merging an offline database with the server database, a violation will occur and the synchronization process will have to handle it. Many synchronization and optimistic data replication ap- proaches treat a unique constraint violation as a conflict. The advantage of this treatment is that the same logic can be used for resolving conflicts and unique constraint violations. However, sometimes conflict resolution can only resolve a violation by overwriting an existing version, or it is not able to resolve the violation at all. By implementing a discrete unique constraint violation resolution, the available information is utilized and overwriting data can be avoided. In most cases the violation can even be resolved automatically. This paper identifies two classes of unique constraint violations and provides a resolution approach for each class. The classifica- tion is based on the experiences collected in a project for a social insurance company in which such violations occurred during the synchronization process. These violations were examined in detail and are presented in this paper.
分类和解决同步过程中唯一的约束违规
在移动环境中,来自客户机数据库的数据通常必须在同步过程中集成到服务器数据库中。因此,如果客户端具有较旧的数据或只有部分数据脱机可用,则可能出现唯一的约束违规。在在线场景中将数据插入服务器数据库时,可以立即识别并纠正唯一的约束违反。但是,在脱机时,可能无法识别可能的后续违规,因为并非所有数据都可用于检查。稍后,在将脱机数据库与服务器数据库同步或合并时,将发生冲突,同步进程必须处理它。许多同步和乐观数据复制方法将唯一的约束违反视为冲突。这种处理的优点是可以使用相同的逻辑来解决冲突和唯一的约束违反。然而,有时冲突解决只能通过覆盖现有版本来解决冲突,或者根本无法解决冲突。通过实现离散的唯一约束冲突解析,利用了可用信息,避免了覆盖数据。在大多数情况下,违规甚至可以自动解决。本文确定了两类唯一的约束违反,并为每一类提供了一种解决方法。该分类基于在一个社会保险公司项目中收集的经验,该项目在同步过程中发生了此类违规行为。对这些违规行为进行了详细的审查,并在本文中提出。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信