System.QueryException: Non-selective query against large object type

System.QueryException: Non-selective query against large object type -

The Problem - If query returns more than 200,000 records (more than limit)

The Solution - Use WHERE clause so that records you want can be filtered and the records returned are what is required.

Comments