Skip to content

Commit bf274ed

Browse files
committed
Typos and readability.
1 parent 789e4cc commit bf274ed

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

data-store/chapter.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ even if you're just writing JSON to disk:
9393

9494
DBDB provides a simple example
9595
of how a database works.
96-
It will help inform your use of other database
96+
It will help inform your use of other databases
9797
from performance,
9898
crash recovery,
9999
and durability[^durability] perspectives.
@@ -111,9 +111,9 @@ consistency is not covered
111111
(there are no constraints on the data stored)
112112
and isolation is not guaranteed[^isolation].
113113
Application code can, of course, impose its own consistency guarantees,
114-
but proper isolation requires a transaction manager
115-
(which could probably be its own 500 lines;
116-
maybe you should write it for the 2nd edition!).
114+
but proper isolation requires a transaction manager.
115+
That could be its own 500 lines;
116+
maybe you should write it for the 2nd edition!.
117117

118118
[^isolation]: Given key:values ``{a:1, b:1}``,
119119
and two transactions ``a = b + 1`` and ``b = a + 1``,
@@ -133,9 +133,10 @@ and [CouchDB](http://couchdb.apache.org/) calls it "compaction"
133133
(by rewriting the "live" parts of the data store into a new file,
134134
and atomically moving it over the old one).
135135
DBDB can be enhanced to add a compaction feature,
136-
which is left as an exercise for the reader.
137-
Bonus feature: you can rebalance the tree during compaction
138-
to maintain DBDB's runtime performance.
136+
but it is left as an exercise for the reader.
137+
Bonus feature:
138+
you can ensure that the compacted tree structure is balanced,
139+
which helps with performance.
139140

140141

141142
Intro to the toolchain

0 commit comments

Comments
 (0)