Force tables into memory

By counting the rows in base tables