explain.depesz.com

A tool for finding a real cause for slow queries.

Result: uwJ

options
Did it help? Consider supporting us - Bitcoin address: 12v2hUztAk2LgzQ9H9LMwuU32urHMjZQnq
# exclusive inclusive rows x rows loops node
1. 0.954 57.775 ↑ 1.0 1 1

Aggregate (cost=1038.65..1038.66 rows=1 width=0) (actual time=57.774..57.775 rows=1 loops=1)

2.          

Initplan (forAggregate)

3. 0.018 0.018 ↑ 1.0 1 1

Index Scan using uk_account_acco_alias on account (cost=0.00..5.27 rows=1 width=4) (actual time=0.017..0.018 rows=1 loops=1)

  • Index Cond: ((acco_alias)::text = 'amilrj'::text)
4. 2.293 56.803 ↓ 37.4 1646 1

Bitmap Heap Scan on message_sms_mo (cost=923.70..1033.26 rows=44 width=0) (actual time=54.646..56.803 rows=1646 loops=1)

  • Recheck Cond: ((acco_id = $0) AND (msmo_received >= '2012-04-01 00:00:00-03'::timestamp with time zone) AND (msmo_received < ('2012-04-01 00:00:00-03'::timestamp with time zone + '1 mon'::interval)))
  • Filter: ((msmo_mobile)::text !~~ '5500%'::text)
5. 2.144 54.510 ↓ 0.0 0 1

BitmapAnd (cost=923.70..923.70 rows=44 width=0) (actual time=54.510..54.510 rows=0 loops=1)

6. 2.898 2.898 ↓ 2.9 18102 1

Bitmap Index Scan on message_sms_mo_by_account (cost=0.00..97.75 rows=6261 width=0) (actual time=2.898..2.898 rows=18102 loops=1)

  • Index Cond: (acco_id = $0)
7. 49.468 49.468 ↓ 7.5 360750 1

Bitmap Index Scan on message_sms_mo_by_received (cost=0.00..825.68 rows=48244 width=0) (actual time=49.468..49.468 rows=360750 loops=1)

  • Index Cond: ((msmo_received >= '2012-04-01 00:00:00-03'::timestamp with time zone) AND (msmo_received < ('2012-04-01 00:00:00-03'::timestamp with time zone + '1 mon'::interval)))