[JBoss-user] [Persistence & CMP/JBoss] - Re: ebjQl, ho do I get COUNT while using LIMIT/OFFSET

2004-08-12 Thread loubyansky
There is no size() method on ResultSet. And no way to know the number of elements thrown away with limit/offset. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844907#3844907 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=repl

[JBoss-user] [Persistence & CMP/JBoss] - Re: ebjQl, ho do I get COUNT while using LIMIT/OFFSET

2004-08-11 Thread triathlon98
"SilvioMatthes" wrote : Hello again, | anonymous wrote : If Jboss needs to count the number of records in the DB, then the resultset will need to be traversed | | I don't think so. JBoss calls the database without any LIMIT/OFFSET-clauses and gets back a collection/resultset of primary-key

[JBoss-user] [Persistence & CMP/JBoss] - Re: ebjQl, ho do I get COUNT while using LIMIT/OFFSET

2004-08-11 Thread SilvioMatthes
Hello again, anonymous wrote : If Jboss needs to count the number of records in the DB, then the resultset will need to be traversed I don't think so. JBoss calls the database without any LIMIT/OFFSET-clauses and gets back a collection/resultset of primary-keys. It should only do a size() or som

[JBoss-user] [Persistence & CMP/JBoss] - Re: ebjQl, ho do I get COUNT while using LIMIT/OFFSET

2004-08-10 Thread triathlon98
I think there is no alternative but using count(*). If Jboss needs to count the number of records in the DB, then the resultset will need to be traversed, causing an even bigger bottleneck. Joachim View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844657#3844657