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

XML datasource slow


jonnyfrastovner

Recommended Posts

Hi,

I am facing performance issues in an xpath query. The documents are structured as defined in the attached xsd. My testfile is about 2MB - 3000 nodes.I define the query as

descendant::FeilMelding

 

The report query window instantly recognizes 3000 nodes. I define two fields, as @type and @grad. Filling a query outputting the two fields takes about 18 seconds, and adding new fields slows the query down further. I have defined sorting of the two fields in the "sort options" window, but it does not seem to impact performance much.

 

Is this performance as expected? I have a rather fast pc. I have tried to define an alternative query executor, as suggested elsewhere:

net.sf.jasperreports.xpath.executer.factory=net.sf.jasperreports.engine.util.xml.JaxenXPathExecuterFactory

but ireport gives this error:

net.sf.jasperreports.engine.JRException:Ânet.sf.jasperreports.engine.JRRuntimeException:Ânet.sf.jasperreports.engine.JRException:ÂClassÂ"net.sf.jasperreports.engine.util.xml.JaxenXPathExecuterFactory"ÂshouldÂbeÂcompatibleÂwithÂ"net.sf.jasperreports.engine.query.JRQueryExecuterFactory"

Link to comment
Share on other sites

  • 3 years later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

jonnyfrastovner
Wrote:

Hi,
I am facing performance issues in an xpath query. The documents are structured as defined in the attached xsd. My testfile is about 2MB - 3000 nodes.I define the query as
descendant::FeilMelding

The report query window instantly recognizes 3000 nodes. I define two fields, as @type and @grad. Filling a query outputting the two fields takes about 18 seconds, and adding new fields slows the query down further. I have defined sorting of the two fields in the "sort options" window, but it does not seem to impact performance much.

Is this performance as expected? I have a rather fast pc. I have tried to define an alternative query executor, as suggested elsewhere:
net.sf.jasperreports.xpath.executer.factory=net.sf.jasperreports.engine.util.xml.JaxenXPathExecuterFactory
but ireport gives this error:
net.sf.jasperreports.engine.JRException:�net.sf.jasperreports.engine.JRRuntimeException:�net.sf.jasperreports.engine.JRException:�Class�"net.sf.jasperreports.engine.util.xml.JaxenXPathExecuterFactory"�should�be�compatible�with�"net.sf.jasperreports.engine.query.JRQueryExecuterFactory"

i have the same problem.

Can someone help me ??

 

Regards,

Mathias

Link to comment
Share on other sites

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...