-
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
How Does Salesforce for Small Businesses Help to Get Leads?
You all have heard that Salesforce for small businesses is changing the gear of every operation. But you might not be aware of the actual…
Experience the Future of Sales with Salesforce AI-based Tools
Solving strategic problems is more important than handling operational tasks when it comes to achieving critical targets in sales. Usage of Salesforce AI-based Tools allows…
What Are The Roles And Responsibility Of A Salesforce Consultant?
Salesforce skills if harnessed properly can open the doors of fortune for you. There are many profiles in Salesforce that you can opt for. One…
Popular Salesforce Videos
How to get a job in Salesforce industry or ecosystem? (For freshers) | 7 Step Guide
The most common question that is asked: How do I get a job? I have learned Salesforce and I know how to create applications on…
Salesforce Integration: How to Do it the Best Way?
Once you deploy Salesforce solutions to improve the operation of your enterprise, your next logical step is to enhance the overall functionalities by integrating Salesforce…
Welcome to an all-digital, work-from-anywhere world | Salesforce Customer 360 | Salesforce Anywhere
Welcome to an all-digital, work-from-anywhere world. With Salesforce Customer 360, Salesforce can connect your teams, delight your customers, and grow your business together. Take the…