Greetings,
I have two documents, a FuelFiling and a FuelTransaction.
FuelFiling contains header information.
A FuelFiling can have one to many FuelTransactions.
The documents are linked by a ConfirmationNum.
ConfirmationNum is defined as index in both documents, using both standard and text indexes.
I try to find out how many FuelTransaction records there are for each of the FuelFiling record.
My query works fine in development, which has a few dozen records.
But it always time out in production (after a long run time), and resulted in INOXYE9291.
I extended Tamino maximum transaction duration and XML query to 1800 seconds, but it doesn’t help.
My production database has 500 FuelFiling records and 2.7 millions FuelTransaction records.
The database space=4.2GB, index space=500MB, journal=300MB
The server has dual Xeon, 512MB RAM, plenty disk storage .etc.
Here is my simple query:
for $a in input()/FuelFiling
return {
$a/ConfirmationNum,
$a/CompleteDate,
let $b := count(input()/FuelTransaction[ConfirmationNum = $a/ConfirmationNum])
return $b
}
Any advice is greatly appreciated.
#API-Management#Tamino#webMethods