Hello Friends ,
I have been asked to help a colleague of mine who is an MSSQL programmer. He is facing this peculiar problem : There is a query on a complex view, which works fine without the "order by" clause. As soon as we try to sort the query , the query takes 6 times more time to return the result set. It is a view which access around 10 tables and some views. I was shocked to find that there were only a couple of joins and the rest of them were all LEFT joins (ie outer joins). I know for sure that Left Joins are performance hogs. It is strange though that the performance is affected only when we try to sort the result set. Since the number of tables is too much , we cannot do any index analysis on this to find out where the problem is. All the individual tables do have indexes on them. I am an oracle DBA and i know that SORTS introducing performance problems is sometimes due to badly configured SORT_AREA_SIZE s and bad TEMPORARY tablespace configuration in Oracle. I donnot know their equivalents in MSSQL. Help me !
Regards,
S. Jayaram Uparna .
I have been asked to help a colleague of mine who is an MSSQL programmer. He is facing this peculiar problem : There is a query on a complex view, which works fine without the "order by" clause. As soon as we try to sort the query , the query takes 6 times more time to return the result set. It is a view which access around 10 tables and some views. I was shocked to find that there were only a couple of joins and the rest of them were all LEFT joins (ie outer joins). I know for sure that Left Joins are performance hogs. It is strange though that the performance is affected only when we try to sort the result set. Since the number of tables is too much , we cannot do any index analysis on this to find out where the problem is. All the individual tables do have indexes on them. I am an oracle DBA and i know that SORTS introducing performance problems is sometimes due to badly configured SORT_AREA_SIZE s and bad TEMPORARY tablespace configuration in Oracle. I donnot know their equivalents in MSSQL. Help me !
Regards,
S. Jayaram Uparna .