cancel
Showing results for 
Search instead for 
Did you mean: 

WHERE Clause Tuning - Relational Operator for VARCHAR

Former Member
0 Kudos

My current customer has migrated from MS SQLServer to SQLAnywhere16.

In a legacy query they've used a relational operator against a VARCHAR20 column in the WHERE.

orders.order_status < 'N'

What was acceptable performance with MSSQLServer now has an undesirable delay in returning the rs under SQLAny16.

The SELECT has a 5-table join, but the performance is fine using the same query but with the one difference in using equality rather than the relational operator.

The scope of the distinct values within the column are all uppercase, no mixed sequences.

There is already a non-unique index for the column.

Any advice for tuning the performance, especially under-the-SQLAny-hood configuration is certainly welcome.

Thank you.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi John,

Please read following WIKI on getting Query Plan Viewer.

http://wiki.scn.sap.com/wiki/display/SQLANY/How+to+generate+a+Query+Plan+in+SQL+Anywhere

and run the same query 3-4 times and attach the generate query plan files to this post.

Thanks,