1
我有此查詢檢查對Salesforce的SOQL查詢到更多的時間來執行從C#
string queryString="select Id from Contact where Applicant_Email__c = '[email protected]' or email = '[email protected]' or Secondary_Email__c = '[email protected]' or Third_Email__c = '[email protected]' or Fourth_Email__c = '[email protected]'";
QueryResult qr = null;
try
{
qr = binding.query(queryString);
}
現有的接觸,但該查詢花費很長的時間來執行,有沒有什麼辦法來優化這個查詢,使更快?
*此查詢花費很長時間執行* define long time? – Izzy
@lzzy長時間 - 超過60秒才能返回結果 –
首先,你是如何看待quert而不是你的代碼中需要時間的東西?如果真的是查詢,需要多少時間?你能告訴我們聯繫表的結構嗎? Contact表中的主鍵是什麼?該表上是否有任何聚集索引或非聚集索引? – Viru