How To Remove FIRST_ROWS Hint From Toplink JPA Queries When It Performs Bad

(Doc ID 1471029.1)

Last updated on JANUARY 12, 2018

Applies to:

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


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?


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