Hi,
I’ve created the following tsd’s (see attachments) where the id.tsd conaints the attribute I want to index. The id.tsd is imported in the type-tech-rdc.tsd (renamed to .xml so they could be attached)
Next I run explain this query in Xquery tool:
declare namespace imp=“http://nsp.rdc.nl/tamino/import/1.0”;
for $a in input()/TYPE-TECH-ABON[not(@imp:id = input()/typekeuring-export/feed/@srcref)]
return $a
The explain states the following:
This query compiles successfully.
This query will retrieve all documents from the doctype ETG-CVO/TYPE-TECH-ABON.
This query will perform an index scan (details unknown).
the srcref attribute is also indexed and that seems to be ok. But I’m wondering if the imp:id index is being used, since the query takes a very long time on a database with 600 - 700 small (usually round 500Kb - 1 Mb) documents in it.
Any help would be great!
Thanks,
Danny
type-tech-rdc.xml (1.56 KB)
id.xml (1.24 KB)
#API-Management#webMethods#Tamino