SAP interview question

How do you query a large database efficiently, knowing that the database keeps growing over time?