PrimaryKey range-scan based queries on Task, Event are inefficient and timeout
Activities , VisualForce , Data Export , Data Loader
Last updated 2014-07-25 ·Reference W-2064350 ·Reported By 0 users
Summary
Queries involving Task/Event where performance should have been very fast, but got timeouts
Repro
Write a SOQL query against a Task which has millions of rows
Result- You will see query time out. This query with the same data size worked before.
Workaround
1) Add more filters to the query
2) Try using query() or queryAll() methods.
Reported By (0)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.