A
Albretch
I was wondering about ways to kinda standardize the non SQL92
compliant MySQL-specific "LIMIT" clause
http://dev.mysql.com/doc/
with JDBC.
Say you only need to SELECT a given number of records at a time.
I think (and I am NOT a DB speciallist) that you ease the DB engine's
work if you just tell it:
'I only need the next 3 records';
since it might optimally be a one-time operation.
Maybe this is very QOI (quality of implementation) issue, but I
think, if you iterate over a ResultSet object and then break out of
the look when you have the number of records you need you might tax
the DB eng. more than if you just tell it how many records you need
beforehand.
Am I correct?
Are there ways to stream line this other than simply using MySQL or a
DB that supports it
?
What would you suggest?
compliant MySQL-specific "LIMIT" clause
http://dev.mysql.com/doc/
with JDBC.
Say you only need to SELECT a given number of records at a time.
I think (and I am NOT a DB speciallist) that you ease the DB engine's
work if you just tell it:
'I only need the next 3 records';
since it might optimally be a one-time operation.
Maybe this is very QOI (quality of implementation) issue, but I
think, if you iterate over a ResultSet object and then break out of
the look when you have the number of records you need you might tax
the DB eng. more than if you just tell it how many records you need
beforehand.
Am I correct?
Are there ways to stream line this other than simply using MySQL or a
DB that supports it
What would you suggest?