Jump to content
We've recently updated our Privacy Statement, available here ×

Load jasper versus jrxml design - performance


Recommended Posts

By: andrey - letushka

Load jasper versus jrxml design - performance

2006-03-14 10:10

It's about very simple thing that can effect performance...

Imagine that you have some number of on-line users and you have two options:

 

1) Load jrxml design every time for each request to get lets say PDF report -or-

2) Compile jrxml file on the fly with the first hit and then point to .jasper file for subsequent requests.

 

Number 1) doesn't create temporary .jasper files but has to process jrxml files every time -> can stress performance

 

Number 2) creates temporary .jasper files, but probably doesn't stress performance that much.

 

Another question is whether by loading .jasper file you can use setter() methods to change some report defaults and get available report parameters? Basically whether

loading JRXML <=> loading JASPER

 

Which method would you choose, why and also please look at the last question.

 

Thank you!

 

 

By: Manfred Moser - mosabua

RE: Load jasper versus jrxml design - perform

2006-03-14 13:51

If you read the Ultimate Guide you will see that you should avoid on the fly report compilation (1) if at all possible.

 

For 2 you can even compile the jrxml at build time.. even better for performance.

 

for your last question... check out the API for JasperReport vs JasperDesign vs JasperPrint

 

manfred

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...