Light Table costs

A table is light if it occupies so few pages that it can be retained entirely in the buffer cache. Operations on light tables are generally faster than operations on heavy tables, which can not fit entirely in the buffer cache.

As an example, in the stores_demo database, the state table that relates abbreviations to names of states has a total size of fewer than 1000 bytes; it fits in no more than two pages. This table can be included in any query at little cost. No matter how this table is used, it costs no more than two disk accesses to retrieve this table from disk the first time that it is required.