|
|
|
|
|
by mushishi
5332 days ago
|
|
I haven't ever used MongoDB but got interested, and first non-trivial source file I picked is this:
https://github.com/mongodb/mongo/blob/master/db/btree.cpp Take a look at for example: bool BtreeBucket<V>::find Without even thinking about what it is doing, it's quite clear that it is not readable code, and it's not immediately obvious what the high level structure of the logic is. The function does not even fit into two screens so it's hard to reason about; your short-time memory is overused. |
|
if there is a part of mongodb that I am sure does not contain bugs, it is that very file you link to.
if you want to know what it does, go out and read the relevant papers on data base technology. or graduate in CS.