Table.Buffer
and List.Buffer
buffer data—but how do they work? How deeply do they buffer? How do they handle errors? And, for that matter, when do they populate?
In a nutshell: Table.Buffer
creates a stable copy* of a table’s rows. These rows are fetched only once from the source, regardless of how many times they are read from the buffer. Each time the buffer is accessed, the same* rows are returned in the same order. With List.Buffer
, the behavior is identical, except it is list items that are buffered instead of table rows. (*But this may not mean what you think, so keep reading.)
The details have some nuances to them. Let’s explore them, as well as what happens when errors are encountered.
Continue reading