Interesting—I will try using Update—the actual change is a simple modification of attribute values.

 

Cheers,

 

E.

 

_____________________________________________

Eliot Kimber

Sr. Staff Content Engineer

O: 512 554 9368

 

servicenow

 

servicenow.com

LinkedIn | X | YouTube | Instagram

 

From: Christian Grün <christian.gruen@gmail.com>
Date: Thursday, April 24, 2025 at 8:52
AM
To: Eliot Kimber <eliot.kimber@servicenow.com>
Cc: Andy Bunce <bunce.andy@gmail.com>, basex-talk@mailman.uni-konstanz.de <basex-talk@mailman.uni-konstanz.de>
Subject: Re: [basex-talk] Re: Recovering database in bad state

[External Email]

 


Good to know.

 

So the issue is with my attempt to transform a 300MB document, not an issue with BaseX itself.

 

You may be able to save lots of time if you manage to rewrite the XSLT script to XQuery (Update). Here’s a script that creates an element with 1 million nodes, which are immediately deleted again. It takes less than 1 second:

 

  <a>{ (1 to 1000000) ! <b/> }</a> update {
    delete node ./b
  }

 

Best,

Christian