Hi,
our Tamino-Version is 4.1.1.1 with fixes installed up to version 4.1.1.9!
I use two doctypes, partner and policy and want to join them using a customer_id (xs:long).
my query looks like this:
for $a in input()/Policy, $b in input()/Partner
where $b/address/name=“testname”
and $b/address/firstname=“hugo”
and $a/info/customer_id=$b/customer_id
return
{ $a/policy_nr }
{ $b/address/name }
{ $b/address/firstname }
…
there are standard-indizes for
- Policy/policy_nr
- Policy/info/customer_id
- Partner/customer_id
- Partner/address/name
- Partner/address/firstname
If i start this query I get a timeout after a few minutes.
(there are about 10.000 documents in each doctype).
If I only query Partner for name and firstname, the result returns very fast.
If I join Policy and Partner and select only for firstname or name (one of them), it is also very fast…
Has anybody an idea, how to modify the query to get fast response when select for name AND firstname??
Thanks in advance!
Gerald
#webMethods#API-Management#Tamino