Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>By removing the Cumulative Maximum and adding 3 scripting functoids, doing the calculation in another way, the problem is solved. <strong>Mapping time decreased by a factor of 40.</strong></p> <p>11 Mb, 10 000 rows, was previously mapped in 200 minutes is now mapped in 5 minutes.</p> <p><strong>Solution</strong><br> One scripting functoid, "Inline XSLT Call Template" with no input or output, containing the max() portion of the library from EXSLT <a href="http://www.exslt.org/math/functions/max/index.html" rel="nofollow noreferrer">Math library found here</a>. Instead of using the whole library I unzipped the file and "extracted" the max() template.</p> <pre><code> &lt;xsl:template name="GetMax"&gt; &lt;xsl:param name="nodes" /&gt; &lt;xsl:choose&gt; &lt;xsl:when test="not($nodes)"&gt;NaN&lt;/xsl:when&gt; &lt;xsl:otherwise&gt; &lt;xsl:for-each select="$nodes"&gt; &lt;xsl:sort data-type="number" order="descending" /&gt; &lt;xsl:if test="position() = 1"&gt; &lt;xsl:value-of select="number(.)" /&gt; &lt;/xsl:if&gt; &lt;/xsl:for-each&gt; &lt;/xsl:otherwise&gt; &lt;/xsl:choose&gt; &lt;/xsl:template&gt; </code></pre> <p>One scripting functoid, "Inline XSLT Call Template" with no input or output, containing a variable which select attribute points at the template with the node set to calculate </p> <pre><code>&lt;xsl:variable name="var:MaxValueDate"&gt; &lt;xsl:call-template name ="GetMax"&gt; &lt;xsl:with-param name ="nodes" select="Root//Parent/ValueToCalculate" /&gt; &lt;/xsl:call-template&gt; &lt;/xsl:variable&gt; </code></pre> <p>One scripting functoid, "Inline XSLT" with one output, using the variable to populate an output element with its value.</p> <pre><code>&lt;OutputElement&gt; &lt;xsl:value-of select="$var:MaxValueDate" /&gt; &lt;/OutputElement&gt; </code></pre> <p>Voila!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload