Does the Fetch operation return the no of rows matching the select criteria or only the number of rows buffered in this operation which could be less then the number of rows that acutally match the select criteria?
A fetch operation is supposed to return rows according to the where clause of the select a statement. The machanism is designed such a way that the rows are searched in the buffer area first, to reduce the disk I/O; which improves the performance.
In reality, it might happen that certain portions of rows are fetched from the buffer area and the balance rows are gathered from the non-buffered area (disk), according to the (non)availability cached information.
The bottom line is: you get result according to the where clause, that actually matches the data stored in database tables. Buffering or caching improves this operation.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.