SmartGWT Enterprise version 12.1-p20220107
We have a SQL data source, using MySQL. There is a table that uses a varchar as a primary key. We're able to execute DSRequests from a ListGrid just fine, but we're having performance issues with the query. Here's the criteria being sent:
	And the where clause generated is:
	The query using LIKE BINARY works correctly, but is much slower than using "=". Is there a way to get the query to use the equals operator instead of LIKE?
							
						
					We have a SQL data source, using MySQL. There is a table that uses a varchar as a primary key. We're able to execute DSRequests from a ListGrid just fine, but we're having performance issues with the query. Here's the criteria being sent:
Code:
	
	 data:{
        operator:"and",
        criteria:[
            {
                fieldName:"price_book_id",
                operator:"equals",
                value:"211557947"
            },
            {
                fieldName:"hdw_type_id",
                operator:"equals",
                value:"LO"
            }
        ]
    },
Code:
	
	WHERE
    ((hdw_line.price_book_id = 211557947
        AND hdw_line.price_book_id IS NOT NULL)
        AND (hdw_std.hdw_type_id LIKE BINARY 'LO'
        AND hdw_std.hdw_type_id IS NOT NULL))
Comment