Bind, but only if input value length > 3
Hello, everyone.
I'm working on a page that has a form; when someone starts typing something into a text input, this will bind to a CFDIV that contains a page that will send a query to the database, searching for records where columnA is like '%' + @string +'%'.
The problem is that the database contains almost one million records, and if the input value = 'b', it takes 24+ seconds to return over 700,000 records. But it will take about half a second to return the 3000+ records that match 'bar'.
Is there a way to set it so that the bind does not occurr UNLESS the input value is at least three characters long?
Or is there a better way to do this?
Thanks,
^_^
