How To Remove FIRST_ROWS Hint From Toplink JPA Queries When It Performs Bad (Doc ID 1471029.1)

Last updated on AUGUST 02, 2016

Applies to:

Oracle TopLink - Version 11.1.1.0.1 and later
Information in this document applies to any platform.

Goal

When a Toplink JPA paged query creates SQL, it adds a FIRST_ROWS hint to the SQL query.
With the FIRST_ROWS hint, however, the database execution plan is observed worse than without it.
So, how can the FIRST_ROWS query be avoided from the SQL query?
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms