P1 issue
the below is the PDQ in my application.when ever executing it is talking aproxamatly 25 minutes to complete.and we have 657899 records in the service request.Please could you tell me how could i increase performance on this scenario ?
‘Service'.Search = "(JulianMonth([Done]) = JulianMonth(Today()) AND JulianYear(Today()) = JulianYear([Done])) AND [Status] = ""Done"" and ([Type] = ""ServiceRequest"" OR [Type] = ""REVIEW1"" OR [Type] = ""Public Review"" OR [Type] = ""Product Review"")" 'ServiceRequest'.Sort = "Paid(ASCENDING)".Please help me.