-
Non-selective query against large object type (more than 100000 rows)
Non-selective query against large object type (more than 100000 rows). Consider an indexed filter or contact salesforce.com about custom indexing.
Even if a field is indexed a filter might still not be selective when:
1. The filter value includes null (for instance binding with a list that contains null)
2. Data skew exists whereby the number of matching rows is very large (for instance, filtering for a particular foreign key value that occurs many times)The above error occurs in production where we have approx 138000 records. We have couple of methods to get this rectified like optimizing the query, null check, making the field external id or unique. Somehow the query Threshold value goes out of the limit that is why the query is not selective. Any help would be appreciated.
Log In to reply.
Popular Salesforce Blogs
Salesforce Integration Services: 7 Popular Apps for Salesforce Integration with Service Cloud
In today's digital world, Salesforce Service Cloud is considered to be the world's best solution for effective customer service. Do you know why? The answer…
Salesforce Spring ’21 Highlights
To improve the platform, Salesforce releases updates three times a year (Spring, Summer, Winter). This is the time for Salesforce Spring '21 Release. With the…
Syncing Business card data to Salesforce . .
Industry estimates hardly 30% of business cards received, enter into Salesforce, why ?? Salesforce is one of the most Popularly used CRM and has evolved…
Popular Salesforce Videos
Salesforce Billing - Digital Wallets and Alternative Payment Methods
THE GOAL: In this video, you will learn how to use Alternative Payment Methods and Digital Wallets with Salesforce Billing. BEFORE YOU BEGIN, KNOW THE…
Opportunity Manager for Salesforce
Opportunity Manager for Salesforce - The first opportunity manager app that has taken the initiative of converting information and data in the form of user-friendly…
GDPR & Telephony Consenting & Forgetting In Salesforce
The big noise in the market right now is GDPR, the General Data Protection Regulation. This is the new European rule for data protection which…