Home Forums Article Discussions Article Discussions by Author Discuss content posted by Ben Seaman Optimising “Ends With” searches with REVERSE RE: Optimising “Ends With” searches with REVERSE
Peter Brase
SSC Enthusiast
Points: 101
More actions
January 13, 2010 at 9:18 am
#1103142
Thanks for this, an excellent tip! I discovered that even if you skip the extra column and just run the reverse query, i.e., "where reverse(fieldname) like 'cba%'" instead of "where fieldname like '%abc'" the response time improves by 50%.