funny… If my $list has one InoId, the query returns in less than a second. However, if I add a second InoId to the list, it never returns, and I get the time out message. I’m running Tamino 4.2.1.1 on HP-UX.
for $doc in input()/document
where tf:getInoId($doc) eq $list
return
$doc/title
. . .
<ino:messagetext ino:code=“INOXYE9291”>Transaction aborted because it has taken too long</ino:messagetext>
Eventually I need to write an update query for a few hundred documents, in a sluggish db of 300,000 docs. But for now I’m just trying to figure out how to query a list of ID’s. The SQL would be something like:
SELECT title
FROM documents
WHERE id IN (1,2,…)
The above query worked, but it deadlocked whenever two of them were run concurrently (despite the fact that the $i sequence is unique/never intersects for each query).
At the moment I am simply deleting them one at a time, but I will probably need to optimize it by creating a bunch of ORs in the WHERE clause.