![]() |
![]() |
|
[
Permalink
| « Hide
]
Andy Jefferson added a comment - 26/Jul/09 10:41 AM
No idea what "r.Status, r.FirstName," etc are. If you want this then please fully define it and it can be moved across to DataNucleus. Otherwise it will be closed since there is no adequate definition, and I don't have MSSQL
"r.Status, r.FirstName" is just an example.
(Un)fortunately I don't use and don't have the MSSQL already too. So this issue is not important for me at this time. Anyway I think it can be useful for others and not only for MSSQL but for any DBs support functionality speed-ups the JDO setRange. Sorry I have no idea how can I adequate fully define this request but may be below article will do that: http://troels.arvin.dk/db/rdbms/#select-limit-offset As I understand this approach is the SQL2003 "window function" (Non-core Feature ID T611) Looks like this approach can be used for Oracle and DB2 and any SQL2003-compliand DBs which supports T611 FYI: SQL2008 has OFFSET and FETCH FIRST (like PgSQL limit and offset functionality). Despite the above article claims no DBMS supports this feature at this time I know that latest PostgreSQL 8.4 does this and I'm hope list of such DBs will grow fast. So this can be used as general way to implement JDO setRange in future. |
|||||||||||||||||||||||||||||||||||||||||