Skip to content

When would Lance V2 Page has more than one buffer? #3679

Answered by westonpace
mapleFU asked this question in Q&A
Discussion options

You must be logged in to vote
  1. What's purpose of de-couple page and buffer?

When performing random access we don't read the entire page. This means we need to know where different buffers are located so that we can read into them appropriately. For example, with string data, we first read the offsets (first buffer) and then use those offsets to read into the string data (second buffer). In 2.1 we introduce an "initialize" step where we load (and cache) various small metadata (e.g dictionaries, chunk sizes, etc.) and we need a separate buffer for this metadata.

  1. Currently, would there any Page would contains more than one buffer?

I think in 2.0 we use multiple buffers for binary / string data. List data is encode…

Replies: 1 comment 5 replies

Comment options

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

@mapleFU
Comment options

@mapleFU
Comment options

@westonpace
Comment options

@mapleFU
Comment options

Answer selected by mapleFU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants