1. A method comprising: maintaining a master statistics file in a multitenant database system, the master statistics file having statistics corresponding to multiple tenants within the multitenant database system; generating statistics for a selected table within the multitenant database system, the selected table corresponding to a selected tenant of the multitenant database system; and updating the master statistics file based on the generated statistics for the selected table.