You can display the chosen query plan of a distributed
query. The information displayed for a distributed join differs from
information displayed for a local join.
The following figure shows the chosen query plan for the distributed
query. Figure 1. Selected Output of SET EXPLAIN ALL for Distributed Query, Part
3
QUERY:
------
select l.customer_num, l.lname, l.company,
l.phone, r.call_dtime, r.call_descr
from customer l, vjp_stores@gilroy:cust_calls r
where l.customer_num = r.customer_num
Estimated Cost: 9
Estimated # of Rows Returned: 7
1) informix.r: REMOTE PATH
2) informix.l: INDEX PATH
(1) Index Keys: customer_num (Serial, fragments: ALL)
Lower Index Filter: informix.l.customer_num = informix.r.customer_num
NESTED LOOP JOIN
The following table shows the main differences between the chosen
query plans for the distributed join and the local join.