Ah I see -for the create db part I missed the list of element names. Stored in variable $enames 
One of them is the referenced one and the rest are any name 5-15 chars long. There are round about 30 elements / I assume the real name doesn’t make a difference… each of them are unique in the list of enames. but I can send you those next week 
The created db using the same characteristic and volume than real world data and reproducing the issue at least on my test client

Alex

Am 12.08.2022 um 18:01 schrieb Christian Grün <christian.gruen@gmail.com>:


Hi Alex, > declare variable $input := <root><sheet name="SAP">{for $idx in (1 to > 10000) return <row>{for $e in $enames return element {$e} { attribute > {"content"} {$idx}}}</row>}</sheet></root>;
Hi Alex,

> declare variable $input := <root><sheet name="SAP">{for $idx in (1 to
> 10000) return <row>{for $e in $enames return element {$e} { attribute
> {"content"} {$idx}}}</row>}</sheet></root>;
> db:create("test-db",$input,"test.xml")

Looking at the subsequent query, I assume there must be additional
"Objektkurztext" elements. Do you have a query for us that we can run
out of the box?

Thanks in advance,
Christian