Storage internals


#1

Hi folks,

I would like to understand the internal structures of data files and index files.
How they are structured, organized, written. What are the access pattern (to understand the various performance consideration around the storage)

Is there any doc describing this ?

Thanks
Mathieu


#2

I’m not aware of a single nice document describing all of this, but the “file format” is described in https://github.com/couchbase/couchstore/blob/master/file_format.md and https://github.com/couchbase/couchstore/blob/master/view_format.md and you’d have to look at the source in https://github.com/couchbase/ep-engine/tree/master/src/couch-kvstore to see how it is used from Couchbase server.