Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Can Adaptive Filter use iLike instead of Like

$
0
0
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.

Viewing all articles
Browse latest Browse all 4756

Trending Articles