1. A method comprising: reading, from memory, a first plurality of rows of a first table; storing first selected rows from the first plurality of rows that meet a query predicate into a result set; after the reading the first plurality of rows from the memory, reading, from a secondary storage, a second plurality of rows of the first table in an order of row identifiers of the second plurality of the rows in the first table; and storing second selected rows from the second plurality of rows that meet the query predicate into the result set.