I've this query for checking existing contact on Salesforce
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);
}
but this query is taking long time to execute, is there any way to optimize this query and make faster?