I have a 11g oracle database and my table has close to a million rows. I need to do pagination to show the records to the user and I figured out a few approaches with the help of this article.
But in every approach, there is an order by
statement and for my application, ordering is not really necessary.
So if I remove order by
and then do pagination,
- What are the advantages/disadvantages when compared to pagination with ordering? May be query execution time etc.?
- Will there be a possibility that oracle will fetch the same row/rows in multiple pages? Because as per this and this, oracle randomly fetches the rows and sends if there is no
order by
statement.
Update - 1
Every user should be able to view all the data (million rows)
The data fetched consists of 15-20 columns of varchar(255) and numbers