Hello
I have smartGWT ListGrid where the name ListGridField is using adaptive filter. I am using textMatchStyle=startsWith for the grid. When I type "google ord" in the name search field, the smartGWT generates the following SQL query (which takes about 6s to execute)
SELECT COUNT(*) FROM TableName WHERE (lower(FieldName) LIKE 'google ord%' AND FieldName IS NOT NULL)
However, If the query is changed to the following (remove lower and use iLike, it runs in 0.3s). How do i achieve this in smartGWT
SELECT COUNT(*) FROM TableName WHERE (FieldName iLIKE 'google ord%' AND FieldName IS NOT NULL)
we are using Redshift DB (postgres) on AWS.
I have smartGWT ListGrid where the name ListGridField is using adaptive filter. I am using textMatchStyle=startsWith for the grid. When I type "google ord" in the name search field, the smartGWT generates the following SQL query (which takes about 6s to execute)
SELECT COUNT(*) FROM TableName WHERE (lower(FieldName) LIKE 'google ord%' AND FieldName IS NOT NULL)
However, If the query is changed to the following (remove lower and use iLike, it runs in 0.3s). How do i achieve this in smartGWT
SELECT COUNT(*) FROM TableName WHERE (FieldName iLIKE 'google ord%' AND FieldName IS NOT NULL)
we are using Redshift DB (postgres) on AWS.