My Oracle Support Banner

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

Last updated on APRIL 18, 2023

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?


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.