Who makes the decisions? I thought it was Optimizer
Some decisions are actually not taken by the optimizer. I’ve moved my blog from https://insanedba.blogspot.com to https://dincosman.com Please update your bookmarks and follow/subscribe at the new address for all the latest updates and content. More up-to-date content of this post may be available there. We started to experience a performance problem with an SQL query which we cannot change the software code and tried to find a solution in solely the database layer. SQL query was a sophisticated one, but the problem can be summarized with the short one below. Here is the plan output. Products table was a large table exceeding 50 Gb size and query's execution time was 180 - 200 seconds. Query was searching in PRODUCTS table for the HTML_CONTENT with not null records, but for all rows, HTML_CONTENT column values were null, and as this column is not indexed, the query was performing a full ...