AN
Size: a a a
AN
AN
L
V
V
ВК
КТ
КТ
Aggregate (cost=226978.04..226978.05 rows=1 width=8) (actual time=9710.758..9710.758 rows=1 loops=1)
-> Bitmap Heap Scan on a_mail mail0_ (cost=162097.01..226977.98 rows=243 width=8) (actual time=9525.289..9710.650 rows=319 loops=1)
Recheck Cond: (((current_department_)::text = '299900/06/03'::text) AND ((mail_status_)::text = ANY ('{Registered,Returned,Forwarded,Arrived,ForDeliveryList,SendedToDeadLetter,RemovedFromForeign}'::text[])))
Filter: ((packet_list_ IS NULL) AND (act_item_ IS NULL) AND (((modify_date_ IS NOT NULL) AND (date(modify_date_) = CURRENT_DATE)) OR ((modify_date_ IS NULL) AND (date(create_date_) = CURRENT_DATE))))
Rows Removed by Filter: 10080
Heap Blocks: exact=10118
-> BitmapAnd (cost=162097.01..162097.01 rows=58721 width=0) (actual time=9472.986..9472.986 rows=0 loops=1)
-> Bitmap Index Scan on a_mail_current_department_ (cost=0.00..8264.83 rows=497918 width=0) (actual time=275.833..275.833 rows=525513 loops=1)
Index Cond: ((current_department_)::text = '299900/06/03'::text)
-> Bitmap Index Scan on a_mail_mail_status_ (cost=0.00..153832.15 rows=10380865 width=0) (actual time=8918.099..8918.099 rows=29873119 loops=1)
Index Cond: ((mail_status_)::text = ANY ('{Registered,Returned,Forwarded,Arrived,ForDeliveryList,SendedToDeadLetter,RemovedFromForeign}'::text[]))
Planning time: 1.162 ms
Execution time: 9726.920 ms
VY
Aggregate (cost=226978.04..226978.05 rows=1 width=8) (actual time=9710.758..9710.758 rows=1 loops=1)
-> Bitmap Heap Scan on a_mail mail0_ (cost=162097.01..226977.98 rows=243 width=8) (actual time=9525.289..9710.650 rows=319 loops=1)
Recheck Cond: (((current_department_)::text = '299900/06/03'::text) AND ((mail_status_)::text = ANY ('{Registered,Returned,Forwarded,Arrived,ForDeliveryList,SendedToDeadLetter,RemovedFromForeign}'::text[])))
Filter: ((packet_list_ IS NULL) AND (act_item_ IS NULL) AND (((modify_date_ IS NOT NULL) AND (date(modify_date_) = CURRENT_DATE)) OR ((modify_date_ IS NULL) AND (date(create_date_) = CURRENT_DATE))))
Rows Removed by Filter: 10080
Heap Blocks: exact=10118
-> BitmapAnd (cost=162097.01..162097.01 rows=58721 width=0) (actual time=9472.986..9472.986 rows=0 loops=1)
-> Bitmap Index Scan on a_mail_current_department_ (cost=0.00..8264.83 rows=497918 width=0) (actual time=275.833..275.833 rows=525513 loops=1)
Index Cond: ((current_department_)::text = '299900/06/03'::text)
-> Bitmap Index Scan on a_mail_mail_status_ (cost=0.00..153832.15 rows=10380865 width=0) (actual time=8918.099..8918.099 rows=29873119 loops=1)
Index Cond: ((mail_status_)::text = ANY ('{Registered,Returned,Forwarded,Arrived,ForDeliveryList,SendedToDeadLetter,RemovedFromForeign}'::text[]))
Planning time: 1.162 ms
Execution time: 9726.920 ms
КТ
ВК
КТ
YS
Aggregate (cost=226978.04..226978.05 rows=1 width=8) (actual time=9710.758..9710.758 rows=1 loops=1)
-> Bitmap Heap Scan on a_mail mail0_ (cost=162097.01..226977.98 rows=243 width=8) (actual time=9525.289..9710.650 rows=319 loops=1)
Recheck Cond: (((current_department_)::text = '299900/06/03'::text) AND ((mail_status_)::text = ANY ('{Registered,Returned,Forwarded,Arrived,ForDeliveryList,SendedToDeadLetter,RemovedFromForeign}'::text[])))
Filter: ((packet_list_ IS NULL) AND (act_item_ IS NULL) AND (((modify_date_ IS NOT NULL) AND (date(modify_date_) = CURRENT_DATE)) OR ((modify_date_ IS NULL) AND (date(create_date_) = CURRENT_DATE))))
Rows Removed by Filter: 10080
Heap Blocks: exact=10118
-> BitmapAnd (cost=162097.01..162097.01 rows=58721 width=0) (actual time=9472.986..9472.986 rows=0 loops=1)
-> Bitmap Index Scan on a_mail_current_department_ (cost=0.00..8264.83 rows=497918 width=0) (actual time=275.833..275.833 rows=525513 loops=1)
Index Cond: ((current_department_)::text = '299900/06/03'::text)
-> Bitmap Index Scan on a_mail_mail_status_ (cost=0.00..153832.15 rows=10380865 width=0) (actual time=8918.099..8918.099 rows=29873119 loops=1)
Index Cond: ((mail_status_)::text = ANY ('{Registered,Returned,Forwarded,Arrived,ForDeliveryList,SendedToDeadLetter,RemovedFromForeign}'::text[]))
Planning time: 1.162 ms
Execution time: 9726.920 ms
КТ
КТ
Aggregate (cost=226978.04..226978.05 rows=1 width=8) (actual time=8820.719..8820.719 rows=1 loops=1)
Buffers: shared hit=272627 read=314
-> Bitmap Heap Scan on a_mail mail0_ (cost=162097.01..226977.98 rows=243 width=8) (actual time=8775.981..8820.669 rows=342 loops=1)
Recheck Cond: (((current_department_)::text = '299900/06/03'::text) AND ((mail_status_)::text = ANY ('{Registered,Returned,Forwarded,Arrived,ForDeliveryList,SendedToDeadLetter,RemovedFromForeign}'::text[])))
Filter: ((packet_list_ IS NULL) AND (act_item_ IS NULL) AND (((modify_date_ IS NOT NULL) AND (date(modify_date_) = CURRENT_DATE)) OR ((modify_date_ IS NULL) AND (date(create_date_) = CURRENT_DATE))))
Rows Removed by Filter: 10110
Heap Blocks: exact=10175
Buffers: shared hit=272627 read=314
-> BitmapAnd (cost=162097.01..162097.01 rows=58721 width=0) (actual time=8755.889..8755.889 rows=0 loops=1)
Buffers: shared hit=262766
-> Bitmap Index Scan on a_mail_current_department_ (cost=0.00..8264.83 rows=497918 width=0) (actual time=158.460..158.460 rows=525693 loops=1)
Index Cond: ((current_department_)::text = '299900/06/03'::text)
Buffers: shared hit=4290
-> Bitmap Index Scan on a_mail_mail_status_ (cost=0.00..153832.15 rows=10380865 width=0) (actual time=8316.335..8316.335 rows=29973992 loops=1)
Index Cond: ((mail_status_)::text = ANY ('{Registered,Returned,Forwarded,Arrived,ForDeliveryList,SendedToDeadLetter,RemovedFromForeign}'::text[]))
Buffers: shared hit=258476
Planning time: 0.478 ms
Execution time: 8833.921 ms
КТ
ВК
EW
YS