Skip to content

Commit 1e08c6b

Browse files
authored
Update lab3.md
1 parent f318f0b commit 1e08c6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/docs/db_course_lab/lab3.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ insert into t1 values(1, 1);
7070
select * from t1;
7171
select * from t1;
7272
delete from t1 where id = 0;
73+
update t1 set a = 101 where id = 1;
7374
select * from t1; select * from t1;
7475
insert into t1 values(3,3);
7576
select * from t1;
@@ -84,7 +85,7 @@ commit;
8485

8586
**提示** 事务提交时可以使用`ObLsmImpl::batch_put`,来一次性写入一批数据,需要考虑这一批数据写入的原子性,以及写入过程中的失败回滚。
8687

87-
**提示**lab#3 中需要支持两个客户端并发执行简单的 update 语句。例如:`update t set a = 1 where b = 2`。在后续 lab#4 中还需要支持更复杂的 update 语法,详情可参考lab#4 文档。
88+
**提示**lab#3 中需要支持两个客户端在事务中并发执行简单的 update 语句。例如:`update t set a = 1 where b = 2`。在后续 lab#4 中还需要支持更复杂的 update 语法,详情可参考lab#4 文档。
8889

8990
**思考** 当前的 WriteBatch 是完全在内存中的,如果事务中涉及的大小超过内存大小应该如何处理?
9091

0 commit comments

Comments
 (0)