IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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
Expand all | Collapse all

[XQuery] problem performances with the function

  • 1.  [XQuery] problem performances with the function

    Posted Thu April 24, 2008 02:35 PM

    Hello,

    I build a XQuery like you see below and this XQuery is exectuted through the Tamino API in .NET.

    for exemple:

    • for $test in count(input()/Data[@Crit=10 and tf:containsText(Person/Name, ‘steve’)]) return {$test}

    or

    • count(for $test in input()/Data[@Crit=10 and tf:containsText(Person/Name, ‘steve’)] return $test)

    The execution of theses two Xquery request a lot of time with the function count(…) and are slower than without this function.

    For information, i have a text-index on the element “Name” and standard-index on attribute “Crit” and the database contains about two thousands hundred records.

    Is anyone know how I can improve the performance of the xquery to know the number of records in the database or it exists something else to know the number of records.

    Thank your for help

    Cedric


    #webMethods-Tamino-XML-Server-APIs
    #API-Management
    #webMethods


  • 2.  RE: [XQuery] problem performances with the function

    Posted Mon April 28, 2008 06:09 PM