Oracle 19c: scalable Top-N queries without further hints to the query planner 14.07.2020 by Oracle Team By Franck Pachot . The FETCH FIRST … ROWS ONLY syntax arrived in Oracle 12c and is much more convenient than using a subquery with ‘ORDER BY’ wrapped in a “WHERE ROWNUM < …” around it. But as I(…)
Oracle CBO, FIRST_ROWS and VIEW misestimate 17.11.2017 by Oracle Team By Franck Pachot . There are several bugs with the optimizer in FIRST_ROWS mode. Here is one I encountered during a 10.2.0.4 to 12.2.0.1 migration when a view had an 'order by' in its definition.