@@ -93,7 +93,7 @@ even if you're just writing JSON to disk:
9393
9494DBDB provides a simple example
9595of how a database works.
96- It will help inform your use of other database
96+ It will help inform your use of other databases
9797from performance,
9898crash recovery,
9999and durability[ ^ durability ] perspectives.
@@ -111,9 +111,9 @@ consistency is not covered
111111(there are no constraints on the data stored)
112112and isolation is not guaranteed[ ^ isolation ] .
113113Application 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,
134134and atomically moving it over the old one).
135135DBDB 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
141142Intro to the toolchain
0 commit comments