netbeans huge result set

HI friends....

I am trying to display a huge table on a webapplication.

the table in my database has 2.5 million records which i want to parse using the pagination buttons. what i actually want is after displaying a couple of record on the page, i would want to search the whole 2.5 million records against a parameter that i provide from the text field.

the problem is i could not find any prefetch methods in the netbeans gui.

i have been searching the forum and for setFetchSize(int) and setMaxRows(int) which didnot help in any way.

i would appreciate if anybody would share a solution to this problem.

thanx in advance...

[671 byte] By [rapaka.manoja] at [2007-11-27 11:33:40]
# 1

Limit the results in the sql query (pass another parameter to limit the results)

manuel.leiriaa at 2007-7-29 16:52:47 > top of Java-index,Java Essentials,New To Java...
# 2

SELECT * FROM db1.tableA WHERE colA='rofl' LIMIT 0, 100;

Take a look at the documentation on the LIMIT clause for SQL. You can specify offset and how many results you want returned. You can combine this with other clauses to further refine the data returned.

kmangolda at 2007-7-29 16:52:47 > top of Java-index,Java Essentials,New To Java...
# 3

Hey friends...

i think i found the solution for my problem,

the netbeans gui provides a property PAGESIZE(int) which allows me to set the value to 100 and i can get a resultset with atmost 100 results.

rapaka.manoja at 2007-7-29 16:52:47 > top of Java-index,Java Essentials,New To Java...
# 4

What are you going to do when you aren't running your program in NetBeans anymore?

kmangolda at 2007-7-29 16:52:47 > top of Java-index,Java Essentials,New To Java...
# 5

> What are you going to do when you aren't running your

> program in NetBeans anymore?

No problem. When it comes time to deploy your app, first install NetBeans on the target machine.

BigDaddyLoveHandlesa at 2007-7-29 16:52:47 > top of Java-index,Java Essentials,New To Java...
# 6

> No problem. When it comes time to deploy your app,

> first install NetBeans on the target machine.

Awesome idea! :-P

kmangolda at 2007-7-29 16:52:47 > top of Java-index,Java Essentials,New To Java...
# 7

> > No problem. When it comes time to deploy your app,

> > first install NetBeans on the target machine.

>

> Awesome idea! :-P

When I can install NetBeans on an iPhone, I'm gettin' me one of them.

BigDaddyLoveHandlesa at 2007-7-29 16:52:47 > top of Java-index,Java Essentials,New To Java...
# 8

you can do a lot on an iphone... including hack them but i think they are too expensive

mark07a at 2007-7-29 16:52:47 > top of Java-index,Java Essentials,New To Java...
# 9

> you can do a lot on an iphone... including hack them

> but i think they are too expensive

It's worth it. When I can install NetBeans, I can develop code whilst zipping along on my Segway:

http://www.segway.com/products/

BigDaddyLoveHandlesa at 2007-7-29 16:52:47 > top of Java-index,Java Essentials,New To Java...
# 10

> It's worth it. When I can install NetBeans, I can

> develop code whilst zipping along on my Segway:

>

> http://www.segway.com/products/

Segway's are worth it though i got to ride one around Epcot they are so much fun scary at first but fun i think they are more worth the money than iphones

mark07a at 2007-7-29 16:52:47 > top of Java-index,Java Essentials,New To Java...
# 11

> > It's worth it. When I can install NetBeans, I can

> > develop code whilst zipping along on my Segway:

> >

> > http://www.segway.com/products/

>

> Segway's are worth it though i got to ride one around

> Epcot they are so much fun scary at first but fun i

> think they are more worth the money than iphones

Oh yeah. Only chumps walk.

BigDaddyLoveHandlesa at 2007-7-29 16:52:47 > top of Java-index,Java Essentials,New To Java...
# 12

> Oh yeah. Only chumps walk.

Agreed ;) I saw a cop pull over a car on one the other day that's a funny sight

mark07a at 2007-7-29 16:52:47 > top of Java-index,Java Essentials,New To Java...
# 13

> > Oh yeah. Only chumps walk.

>

>

> Agreed ;) I saw a cop pull over a car on one the

> other day that's a funny sight

OMG, I'm being ticketed ... by a nerd!

BigDaddyLoveHandlesa at 2007-7-29 16:52:47 > top of Java-index,Java Essentials,New To Java...