0

So I'm working in application that involving display of data in table/grid. And the grid will invoke paging query to oracle. So does by tuning my application to get the best query cost with optimizer_mode=first_rows_10 is always good and consider best practice with this kind paging search with html table or any table based approach application.

2
  • What do your benchmarks say? Commented May 6, 2020 at 10:19
  • benchmark return better result compare to when first_rows_n not set Commented May 7, 2020 at 12:09

1 Answer 1

0

If you're not ready to make this a system-wide setting, you could try it in an isolated fashion by using a query hint:

SELECT /*+ FIRST_ROWS(10) */
       first_column,
       second_column
  FROM my_table_or_view

This is less risky, since you don't need to consider the effects on the entire system.

1
  • Good advice . Thx Commented May 17, 2020 at 10:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.