Aggregate (cost=869360.53..869360.54 rows=1 width=0)
(actual time=103.102..103.102 rows=1 loops=1)
-> Nested Loop (cost=0.00..869164.63 rows=78360
width=0) (actual time=0.253..101.708 rows=8413 loops=1)
-> Nested Loop (cost=0.00..438422.95
rows=56499 width=4) (actual time=0.157..51.766 rows=8178
loops=1)
-> Index Scan using
index_products_on_drop_shipper_id on products
(cost=0.00..2312.56 rows=618 width=4) (actual
time=0.087..6.318 rows=618 loops=1)
Index Cond: (drop_shipper_id =
221)
-> Index Scan using
index_line_items_on_product_id on line_items li
(cost=0.00..702.89 rows=279 width=8) (actual
time=0.010..0.069 rows=13 loops=618)
-> Index Only Scan using
purchased_items_line_item_id_idx on purchased_items pi
(cost=0.00..7.60 rows=2 width=4) (actual
time=0.005..0.005 rows=1 loops=8178)
Index Cond: (line_item_id =
li.id)
Heap Fetches: 144
Total runtime: 103.442 ms
(11 rows)