You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: optimizer/first_rows/README.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ It improves the costing of FIRST ROWS type queries so that the optimizer makes b
4
4
5
5
This is important for applications that return rows (in sorted order) to users that paginate through the result set.
6
6
7
+
Create the table with make_tab.sql
8
+
7
9
See scripts before.sql and after.sql - spooled 'lst' output files are provided.
8
10
9
11
Compare the cost in the before and after versions, and also compare the differences in the resulting plans. The costs in the *after* example (for FETCH FIRST) are much lower and compare favorably with the ROWNUM queries.
0 commit comments