当前位置:网站首页>2022-2-15 learning xiangniuke project - Section 4 business management
2022-2-15 learning xiangniuke project - Section 4 business management
2022-07-01 14:20:00 【weixin_ thirty-seven million six hundred and eighty-two thousan】


Read Uncommitted: Read uncommitted data , problem :

Business 1 Rollback as 10, normal , But for things 2, Ought to be 9, become 10 了

To things 1 No problem , But the business 2, Ought to be 9, For now 11






Into two mapper, To simulate an atomic operation 

middle Integer.valueOf(“abc”) Will make mistakes , If things roll back , The first two insertUser and insertDiscussPost Will roll back

propagation Refer to things A There is something in it B, So which is the rollback
Conduct test
Made a mistake , Report errors , See if there is any new data inserted in the database 
There are no new users or posts in the database , Things are isolated effectively
Programmatically isolate transactions



Test the method , After reporting a mistake , There is no new in the database user and post, Successfully rolled back
边栏推荐
- Basic operation of queue (implemented in C language)
- Research Report on the development trend and competitive strategy of the global chemical glassware industry
- After being laid off for three months, the interview ran into a wall everywhere, and the mentality has begun to collapse
- "National defense seven sons" funding soared, with Tsinghua reaching 36.2 billion yuan, ranking second with 10.1 billion yuan. The 2022 budget of national colleges and universities was made public
- C language course design topic
- phpcms实现订单直接支付宝支付功能
- Research Report on development trend and competitive strategy of global consumer glassware industry
- Use the npoi package of net core 6 C to read excel Pictures in xlsx cells and stored to the specified server
- Use the right scene, get twice the result with half the effort! Full introduction to the window query function and usage scenarios of tdengine
- 使用 Lambda 函数URL + CloudFront 实现S3镜像回源
猜你喜欢

sqlilabs less-8

Phpcms realizes the direct Alipay payment function of orders

那个很努力的学生,高考失败了……别慌!你还有一次逆袭机会!
![[commercial terminal simulation solution] Shanghai daoning brings you Georgia introduction, trial and tutorial](/img/44/b65aaf11b1e632f2dab55b6fc699f6.jpg)
[commercial terminal simulation solution] Shanghai daoning brings you Georgia introduction, trial and tutorial

SQLAchemy 常用操作
![[flask] flask starts and implements a minimal application based on flask](/img/45/77df241c85c4916914a37bb78275a5.png)
[flask] flask starts and implements a minimal application based on flask

sqlilabs less13

Etcd summary mechanism and usage scenarios

Fiori applications are shared through the enhancement of adaptation project

玩转gRPC—不同编程语言间通信
随机推荐
In depth cooperation | Taosi data cooperates with changhongjia Huawei customers in China to provide tdengine with powerful enterprise level products and perfect service guarantee
Research Report on the development trend and competitive strategy of the global pipeline robot inspection camera industry
el-form-item 正则验证
sqlilabs less-11~12
TexStudio使用教程
Use of Oracle database objects
[Jianzhi offer] 55 - ii balanced binary tree
Scheme of printing statistical information in log
Après avoir été licencié pendant trois mois, l'entrevue s'est effondrée et l'état d'esprit a commencé à s'effondrer.
Journal MySQL
开源实习经验分享:openEuler软件包加固测试
sqlilabs less13
C语言基础知识
【牛客网刷题系列 之 Verilog快速入门】~ 使用函数实现数据大小端转换
SWT/ANR问题--当发送ANR/SWT时候如何打开binder trace(BinderTraces)
Build your own website (21)
sqlilabs less-8
【商业终端仿真解决方案】上海道宁为您带来Georgia介绍、试用、教程
Research Report on the development trend and competitive strategy of the global ultrasonic scalpel system industry
佩服,阿里女程序卧底 500 多个黑产群……