Commit Graph

74 Commits

Author SHA1 Message Date
Winy Song
95f51ebdf6
Fix “更新丢失” to “丢失更新” in ch7.md
第一处

原文:

> However, read committed does not prevent the race condition between two
> counter increments in Figure 7-1. In this case, the second write happens after the
> first transaction has committed, so it’s not a dirty write. It’s still incorrect, but for
> a different reason—in **“Preventing Lost Updates”** on page 242 we will discuss how
> to make such counter increments safe.

翻译:

> 但是,读已提交并不能防止 [图 7-1](https://github.com/Vonng/ddia/blob/master/img/fig7-1.png) 中两个计数器增量之间的竞争状态。在这种情况下,第二次写入发生在第一个事务提交后,所以它不是一个脏写。这仍然是不正确的,但是出于不同的原因,在 **“[防止更新丢失](https://github.com/Vonng/ddia/blob/master/ch7.md#%E9%98%B2%E6%AD%A2%E4%B8%A2%E5%A4%B1%E6%9B%B4%E6%96%B0)”** 中将讨论如何使这种计数器增量安全。

--------------

第二处

原文:

> **Lost updates**
> Two clients concurrently perform a read-modify-write cycle. One overwrites the
> other’s write without incorporating its changes, so data is lost. Some implemen‐
> tations of snapshot isolation prevent this anomaly automatically, while others
> require a manual lock (SELECT FOR UPDATE).

翻译:

> **更新丢失**
> 两个客户端同时执行 读取 - 修改 - 写入序列。其中一个写操作,在没有合并另一个写入变更情况下,直接覆盖了另一个写操作的结果。所以导致数据丢失。快照隔离的一些实现可以自动防止这种异常,而另一些实现则需要手动锁定(SELECT FOR UPDATE)。
2022-10-12 16:40:00 +08:00
YIN, Gang
284e2d657f
Update ch7.md
materializing conflict -> materializing conflicts
2022-08-05 22:48:43 +08:00
AlphaWang
c564c08884 fix ch7-transaction: serializability 2022-08-01 23:41:25 +08:00
AlphaWang
308066113c fix ch7-transaction: serializability 2022-08-01 23:27:44 +08:00
AlphaWang
85f2242841 fix ch7-transaction: repeatable read 2022-07-30 23:45:32 +08:00
AlphaWang
e38874da61 fix ch7-transaction: Read Committed 2022-07-29 23:34:39 +08:00
BeBraveBeCurious
9ac4ed44fa
Update ch7.md
独占锁的术语统一
2022-05-25 18:17:14 +08:00
YIN, Gang
f293d6e1df
Merge pull request #228 from songzhibin97/patch-38
Update ch7.md
2022-05-08 22:18:04 +08:00
YIN, Gang
032af11d9c
Merge pull request #227 from songzhibin97/patch-37
Update ch7.md
2022-05-08 22:11:51 +08:00
YIN, Gang
5b8d4585b7
Merge pull request #224 from songzhibin97/patch-35
Update ch7.md
2022-05-08 22:08:29 +08:00
songzhibin97
45c580c214
Update ch7.md 2022-05-08 18:52:47 +08:00
songzhibin97
e3c6435c05
Update ch7.md 2022-05-08 17:07:43 +08:00
songzhibin97
2a9382f850
Update ch7.md 2022-05-08 16:13:24 +08:00
songzhibin97
be51c8c1c7
Update ch7.md 2022-05-06 10:01:12 +08:00
songzhibin97
0579bb25a5
Update ch7.md 2022-05-03 17:23:30 +08:00
songzhibin97
e89bc2dce9
Update ch7.md 2022-05-03 17:18:44 +08:00
YIN, Gang
02d8d8717f
Merge pull request #222 from songzhibin97/patch-32
Update ch7.md
2022-05-02 16:08:04 +08:00
songzhibin97
c5e646c67d
Update ch7.md 2022-05-02 15:52:42 +08:00
songzhibin97
9954c71621
Update ch7.md 2022-05-02 14:45:44 +08:00
Gang Yin
34fdbe28c4 fix several section links 2022-01-20 22:06:57 +08:00
Gang Yin
7f7bcad5b4 update text spacing with pangu and some manual adjustments 2022-01-20 14:42:27 +08:00
Gang Yin
d48a0b8120 fix a typo in ch7 and some punctuation marks in ch9 2022-01-10 16:30:09 +08:00
Gang Yin
bbc7bb8d5a fix punctuation marks 2022-01-06 13:42:44 +08:00
Gang Yin
072814f29e fix punctuation marks 2022-01-06 10:48:36 +08:00
cwr31
4c4252e312
不变量->不变式
"certain statements about your data(invariants)",这里的invariants翻译为不变式更为妥当
2022-01-03 10:47:12 +08:00
Gang Yin
c8ed9a15d0 update punction marks 2021-12-23 10:57:51 +08:00
Gang Yin
0b839e08fc remove consecutive parentheses 2021-12-22 15:50:46 +08:00
Zhaoyang
4aaf2d3aef
Update ch7.md
提交
2021-12-19 17:59:36 +08:00
Gang Yin
48c792c996 update last merged PR 2021-12-15 10:09:42 +08:00
Zhaoyang
4b7df23238
Update ch7.md
or neither, but not an inconsistent halfway point.
2021-12-14 23:15:27 +08:00
Zhaoyang
713493aa5e
Update ch7.md
更新错误
2021-12-13 22:02:58 +08:00
Gang Yin
feb7bd3ea6 remove unexpected leading whitespaces in quoted contents 2021-12-13 19:57:26 +08:00
Gang Yin
2014894f76 remove nested parentheses 2021-12-13 15:02:13 +08:00
Gang Yin
9b3bd96457 reformat indented content 2021-12-08 14:11:22 +08:00
Gang Yin
a9a7955772 remove unnecessary blank lines and code indentations 2021-12-02 10:24:38 +08:00
Gang Yin
98c25413a5 update reference list and translation of you in all chapters 2021-11-29 22:30:45 +08:00
Gang Yin
9d9bfb5ba5 update translations of
ext-key locking, #144
2021-11-29 09:21:27 +08:00
Gang Yin
f4034041fb remove the leading TAB character in almost all paragraphs, suggested by @XIJINIAN 2021-11-22 19:43:33 +08:00
Gang Yin
1d4b5106e2 replace all 二级索引&辅助索引 with 次级索引(secondary index) 2021-10-21 15:28:23 +08:00
Gang Yin
5c6f611c33 fix many wrongly formatted emphasis, again 2021-09-14 22:29:26 +08:00
Gang Yin
fb150bf5e3 fix many wrongly formatted emphasis 2021-09-14 12:05:33 +08:00
Gang Yin
f240158a3c fix several punctuation marks, update zh-tw content 2021-08-29 18:46:25 +08:00
Gang Yin
5e5b9a15a5 update several redundant referenced headings 2021-08-24 09:24:10 +08:00
Gang Yin
7d7ac64719 unify the translation of cross references 2021-08-22 18:58:45 +08:00
Gang Yin
5a68cd84bb translation update for chapter 11 2021-08-22 08:32:15 +08:00
Yin Gang
8348233231 fix several missing image links 2021-08-18 10:07:22 +08:00
Yin Gang
e2f332b22a fix all the missing links in glossary.md 2021-08-14 23:08:56 +08:00
Yin Gang
e40b346cd9 finish chapter 7 2021-08-07 13:03:50 +08:00
Yin Gang
6fd412b916 finish chapter 6, fix some missing cross references 2021-08-04 19:46:49 +08:00
Feng Ruohang
19f13e05a1
Merge pull request #117 from feeeei/patch-1
统一每章的标题格式
2021-07-29 14:26:36 +08:00