Use row count estimates instead of full scans on the API