2024-06-27
- I’m reading the Dremel paper from Google. There’s a section about representing structs in a columnar format in an efficient manner, especially in the presence of optional fields or fields that can be lists (i.e. a
repeated field in protobuf parlance). They adopt an interesting approach for putting fields in a columnar format, where the value of the field is stored with a little metadata. And the metadata is used/constructed in a way that allows for determining which record the value is a part of. It’s a pretty nuanced construction for the metadata imo. And ofc very smart. Reminded me of a similar section from another notable Google paper, the GFS paper. Specifically, I recall there being a metadata blob associated with each chunk. And the amount of metadata was like 64 bytes. Compared with the amount of data managed by the system, the stored metadata was very minimal. But the metadata had big/very
worthwhile advantages associated with its usage. In both the GFS paper and this Dremel paper, the smart usage of metadata really stands out in the system design. I feel like when I think of these systems, I tend to focus on the bigger building blocks, like chunk size or network protocols in GFS, and pay les attention to how metadata can play an important role if used well. Sort of an invisible pillar to me when I think about these systems at a distance.
Date
June 27, 2024