two versions for filling the report, whhch one is the best??
Alan Hermin
Ranch Hand
Joined: Feb 16, 2006
Posts: 290
posted
0
hi all........ iam using jasper report, and when filling the report, i am passing the Connection to the jasper,and then jasper make a select query, like this:
But i saw that there are a way that pass ResultSet as a data source,instead of Connection,and making select query before sending it to jasper like this:
which one is the best use in many perspective , including performance?
Remko Strating
Ranch Hand
Joined: Dec 28, 2006
Posts: 893
posted
0
I didn't know the second method. I use only the first one.
If the second has a better performance I would use that one.
I suppose that the resultset needs to be the same as from the query if you want a correct report.