Recipe: Hierarchical Documents — FoundationDB

H ome K ey-Value Store Introduction Documentation Design Recipes Ecosystem White Papers S QL Layer Introduction Documentation Performance R esources Blog Community Courses Videos C ompany About Us Contact Us Jobs Download Pricing ← Back to Recipes python go java ruby Create a representation for hierarchical documents . Support efficient storage and retrieval of documents, both as a whole and by subdocuments specified by paths. A hierarchical document has a tree-like structure, with the document ID as the root. We'll map the hierarchy to a list of tuples in which each tuple corresponds to a path from the root to a leaf. These tuples will form keys, so each leaf is indexed by the path leading to it. Because each tuple represents a path from the document root to a leaf, the lexicographic ordering of tuples guarantees that adjacent paths...

Linked on 2014-09-25 03:12:00 | Similar Links