12
返回列表 发新帖
楼主: goodman

Sybase Locking Problem

[复制链接]
论坛徽章:
0
11#
 楼主| 发表于 2010-3-3 00:01 | 只看该作者
why I need this mechanism ?
actually, my app starts with more than one instance on different machine.
every instance must process same data in sequence to achieve HA.
But I don't know which instance will process the data first, I need to let only the first one instance
to process the data ( the pktest is like my latch ). The others blocked if they want to process the same data.
while theother one is processing.

I think it's not ambivalent, right ?

使用道具 举报

回复
论坛徽章:
1
2010新春纪念徽章
日期:2010-03-01 11:06:19
12#
发表于 2010-3-8 13:19 | 只看该作者
No,just like I always advice developers should use simple and standard ANSI SQL syntax instead of extended SQL syntax,I think we should not design our apps logic depending on DB product's own mechanism.

I am not sure about MS SQL Server and Oracle's mechanism,but I think DB is DB. So datarows lock 's base function should be useful for concurrent ,and this concurrent should not be related with the logic of data.

The ambivalent I mean is that I think your request need to join current with the logic of data.If DB product implement such future,it 's good;if don't,it's OK.

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表