Hi All
There is a question in my mind. Consider the following code sample
in this case does resultset fetches all the rows of table in one shot or does it maintains some kind of buffer where is stores some set of records or does it goes everytime to the database and fetch the record when i do . If the resultset fetches all the records in one shot then why java people have not provided method to get the number of records in table directly. If it maintains buffer then on what factors does the buffer size depends and can we change that size. Basically i wanted to know how internally resultset works
Thanks in advance
There is a question in my mind. Consider the following code sample
in this case does resultset fetches all the rows of table in one shot or does it maintains some kind of buffer where is stores some set of records or does it goes everytime to the database and fetch the record when i do . If the resultset fetches all the records in one shot then why java people have not provided method to get the number of records in table directly. If it maintains buffer then on what factors does the buffer size depends and can we change that size. Basically i wanted to know how internally resultset works
Thanks in advance