Prevent too many SQL queries running at once.