May be used on any SQL statement, except EXPLAIN itself. Translates Optimizer output (the execution plan) into English.
Assumes the query will run stand-alone; doesnt take a loaded system into
account.
Spool sizes are based on dynamic sampling or statistics. Use them as figures of merit for comparison purposes only.
Know what the Request is supposed to do before EXPLAINing it.
QUERY
EXPLAIN SELECT * FROM daily_sales WHERE item_id = 5010;
EXPLANATION
-----------------------------------------------------------------------------------------------------------------------1) First, we do a single-AMP RETRIEVE step from TFACT.daily_sales by way of the primary index "TFACT.daily_sales.item_id = 5010 with no residual conditions into Spool 1, which is built locally on that AMP. The size of Spool 1 is estimated with high confidence to be 731 rows. The estimated time for this step is 0.22 seconds. -> The contents of Spool 1 are sent back to the user as the result of statement 1. The total estimated time is 0.22 seconds.
QUERY
EXPLAIN SELECT * FROM daily_sales ORDER BY 1;
Note:
Most EXPLAIN text is easy to understand. The following additional definitions may help:
... (group_AMPs)
V2R5 feature in which a subset of AMPs will be used instead of all AMPs.