-
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
Useful Salesforce Steps and Instructions
Hello All, Today I am going to provide you a very useful and important set of items that you should always keep handy with you…
Marketing Cloud vs Pardot: What's the difference?
Whether you're a marketer or a CXO of a company, you must understand the challenges of attracting prospects and nurturing leads through the sales funnel.…
What is Salesforce CPQ and How Does Salesforce Work?
The sales representatives have a variety of tasks at hand and better management of these tasks results in more productivity. These tasks primarily include preparing…
Popular Salesforce Videos
Salesforce Field Service Scheduling Optimization | AblyPro Webinar
Revolutionize and Level Up Your Game in Services Business With Field Service With Salesforce Field Service on your side, businesses can reduce travel time, improve…
How to Execute a SOQL Query in POSTMAN?
Watch this video to learn how to execute a SOQL Query in POSTMAN. If you have any doubts or questions, let us know in the…
Mastering the VLookUp Function | Salesforce Tutorial
Watch this amazing video tutorial and follow these steps to effectively use the VLookUp function for data import purposes in your Salesforce database. If you…