webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  XQuery - XML maximum query duration exceeded

    Posted Thu April 22, 2004 12:20 PM

    I am trying to execute an XQuery to add an attribute to zero or more elements in 7000+ documents. However, after 5 minutes the transaction times out with the following error:

    INOXME8504 - XML maximum query duration exceeded

    I have tried changing the database property ‘maximum transaction duration’ to 3000 seconds and restarting the database but still get a timeout after 5 minutes.

    Is there some way of setting or overriding the default duration as part of the XQuery, or can I break down my large transaction into smaller ones?

    For the record, here is the XQuery I anm trying to execute:

    update for $a in input()/enquiry/enquiry-data/*
    where $a/text() > “”
    do (
    insert attribute description {local-name($a)} into $a
    )


    Many thanks,
    David Sanders


    #webMethods
    #API-Management
    #Tamino


  • 2.  RE: XQuery - XML maximum query duration exceeded

    Posted Thu April 22, 2004 01:51 PM

    You probably need to change:

    Properties->XML->XML maximum query duration


    #API-Management
    #webMethods
    #Tamino


  • 3.  RE: XQuery - XML maximum query duration exceeded

    Posted Thu April 22, 2004 07:15 PM

    Thanks mark, that worked, though I had to reboot the server for the new property value to take effect.

    Regards,
    David Sanders


    #API-Management
    #webMethods
    #Tamino


  • 4.  RE: XQuery - XML maximum query duration exceeded

    Posted Mon April 26, 2004 12:06 PM

    Nevertheless, R&D wants to learn more about the use case, because 300+ seconds seems to be quite long a time for 7000 updates. Could you please provide data and query to us?

    regards

    Harald


    #API-Management
    #webMethods
    #Tamino


  • 5.  RE: XQuery - XML maximum query duration exceeded

    Posted Tue April 27, 2004 11:55 AM

    I have put the information you requested on our ftp server (ftp.softwareag.com) in file

    incoming/iesd/XQueryInfoForR&D.zip

    I have included the data as a tamino unload, the XQuery, the tsd schema and an explanation of what I want to achieve.

    Please let me know if I can improve performance by changing the XQuery.

    Kind regards,
    David Sanders


    #API-Management
    #webMethods
    #Tamino