Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

two versions for filling the report, whhch one is the best??

 
Alan Hermin
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for the second post which is the same.

I have received a message which states that I hadn't a connection so I thought there was no post.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic