Viewing 3 posts - 1 through 4 (of 4 total)
Similarly a query like '"Jens" OR "Martin" OR "Olsen"' also kill the running time completely.
December 2, 2009 at 3:37 pm
#1086808
Indeed it's to be used on a search form where the user can select to search in clients, patients, referals and users (hence the @Client = 1 etc.)
I have removed...
December 2, 2009 at 3:36 pm
#1086807
Hi dmoldovan,
Thanks a billion for your suggestions.
Removing the UNIONs did nothing but removing the ORs and replacing them with two SELECT statements is an entirely different case: the execution time...
December 2, 2009 at 2:48 pm
#1086788