"select ... for update" in eXtremeDB

select ... for update语句是我们经常使用手工加锁语句。通常情况下,select语句是不会对数据加锁,妨碍影响其他的DML和DDL操作。同时,在多版本一致读机制的支持下,select语句也不会被其他类型语句所阻碍。借助for update子句,我们可以在应用程序的层面手工实现数据加锁保护操作。 但是很遗憾,在eXtremeDB中,SQL引擎不支持select ... for update 的操作。 Databases’ SELECT FOR UPDATE locks the result set (either the records in the set or pages) and allows to modify it; its also sometime possible to create a version with the “old” state of the database. Normally FOR UPDATE is used from a procedural languages. (PL/SQL for instance) eXtremeDB simply creates a RW transaction, consequently in MVCC the updates are possible while MIRSIW blocks the updates. The practical implication for us is to be able to modify the database from a user-defined function called from the SELECT statement
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值