SAP Cloud for Customer 里的锁操作介绍

简介: SAP Cloud for Customer 里的锁操作介绍

image.png乐观锁:当消费者需要读取BO实例数据时,消费者通常需要当前最新状态的数据。只是简单地将buffer里的数据返回并不能满足该读取请求,因为当前待读取的BO数据可能在一个并行session里已经被其他消费者修改了。image.png当事务终结时,乐观锁被释放,排他锁被转换成乐观锁。


‘X’ means that the lock entry was set in ‘shared mode’ and can therefore accept further lock entries by other users also in ‘shared mode’.


X 意味着锁记录在shared mode下被设置,因此接受其他用户再次使用shared mode给当前BO上锁。


There are different ways to synchronize access by several users:


排他锁

Exclusive lock (E): The locked data can be displayed or edited by one user only.


被锁住的数据只能被单一的用户显示或者编辑。


某个BO已经存在排他锁的前提下,不允许其他用户再申请新的排他锁或者共享锁。


image.png

共享锁

Shared Lock (S): Several users can access the locked data at the same time in display mode.

多个用户能同时在display mode下显示具有共享锁的数据。image.png持有共享锁的BO数据,可以再接受新的共享锁请求。image.png但无法再申请排他锁。

Exclusive but not cumulative lock (X)image.png在同一事务里,排他锁可以重复被申请,以及重置。image.png但还存在一种称为排他非累积锁,在一个事务内,只能允许被请求一次,拒绝接下来的所有锁请求。

乐观锁image.pngimage.png

相关文章
|
2月前
|
开发工具 Android开发 开发者
SAP ABAP Cloud 发展简史
SAP ABAP Cloud 发展简史
SAP ABAP Cloud 发展简史
|
2月前
|
UED
什么是 SAP Commerce Cloud SmartEdit Product Carousel Component Editor
什么是 SAP Commerce Cloud SmartEdit Product Carousel Component Editor
|
2月前
|
监控 测试技术
SAP 电商云修改 Product Catalog Staged 版本数据后,同步到 online 版本的 UI 操作
SAP 电商云修改 Product Catalog Staged 版本数据后,同步到 online 版本的 UI 操作
|
2月前
|
数据库 存储 安全
使用 SAP HANA Cloud 的一些优势
使用 SAP HANA Cloud 的一些优势
使用 SAP HANA Cloud 的一些优势
|
2月前
|
存储 前端开发 应用服务中间件
使用 SAP ABAP 执行 FTP 操作
使用 SAP ABAP 执行 FTP 操作
|
2月前
|
机器学习/深度学习 搜索推荐 UED
SAP Commerce Cloud Context Driven Services 概述
SAP Commerce Cloud Context Driven Services 概述
|
2月前
|
监控 搜索推荐 安全
SAP Commerce Cloud Context Driven Services 里 profile-tag.js 的作用介绍
SAP Commerce Cloud Context Driven Services 里 profile-tag.js 的作用介绍
|
2月前
|
存储 消息中间件 搜索推荐
SAP Commerce Cloud Context Driven Services 的 clickStreamEvents HTTP 请求
SAP Commerce Cloud Context Driven Services 的 clickStreamEvents HTTP 请求
|
2月前
|
机器学习/深度学习 人工智能 搜索推荐
SAP Commerce Cloud 智能销售服务 (Intelligent Selling Services)概述
SAP Commerce Cloud 智能销售服务 (Intelligent Selling Services)概述
|
2月前
|
安全 UED 开发者
SAP Commerce Cloud 配置项 refreshWithLock=false 的作用介绍
SAP Commerce Cloud 配置项 refreshWithLock=false 的作用介绍