Skip to content

Clarify the design and usage of row id and row address #3909

Closed Answered by wjones127
niebayes asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Are row ids or row addresses stored in the fragment files?

Row ids aren't stored in the data files. Where they are stored depends on style. For row addresses, they are implicit and not stored anywhere.

Move stable row ids are stored in the manifest. Each fragment is assigned a row id sequence. This sequence provides a mapping from row id, to offset in the fragment.

  1. Are row ids or row addresses stored in the index files?

Row ids are stored in the index files. As discussed above, sometimes the row addresses are the same as row ids.

  1. How is the row id index updated when there's a row update or a compaction?

For address-style, they are not updated. Rows are moved, and the address c…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@wjones127
Comment options

@wjones127
Comment options

Answer selected by niebayes
@niebayes
Comment options

@jleibs
Comment options

@wjones127
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants