|
|
|
|
|
by zond
4887 days ago
|
|
The synchronization uses Merkle trees, and they require ordered data since they hash contiguous data into a tree of hashes. And to avoid having a separate structure for the Merkle trees I just hash all nodes in the main tree, and compare the hashes to find differences. Thus the same content must have the same structure, or the comparisons won't work. |
|
- You say However, since it could be very useful for users of a database to store ordered data, or to wilfully concentrate certain data on certain parts of the cluster, god does not force the user to hash the keys. -> why do you care about how the data is actually stored? - To map keys to values, a mapping structure is needed. For infrastructural reasons (synchronization and cleaning) as well as for functionality of different kinds, we need a sorted mapping, and it has to be deterministically structured. -> why?