VG
Size: a a a
VG
MM
VY
ВК
VG
М
М
crm-# \d ivr.autoringup_call
Table "ivr.autoringup_call"
Column | Type | Collation | Nullable | Default
------------+-----------------------------+-----------+----------+-------------------------------------------------
id | integer | | not null | nextval('ivr.autoringup_call_id_seq'::regclass)
abon | character varying(13) | | not null |
datetime | timestamp without time zone | | not null |
dialtime | integer | | |
waittime | integer | | |
abmsgtime | integer | | |
msgtime | integer | | |
dialsignal | character varying(50) | | |
ringup | character varying(5) | | |
status | character varying(1) | | |
pc_id | character varying(8) | | |
project | character varying(10) | | |
type | integer | | |
Indexes:
"autoringup_call_pk" PRIMARY KEY, btree (id)
"autoringup_call_pc_id_datetime_idx" btree (pc_id, datetime DESC NULLS LAST)
М
explain (analyze, buffers)
select * from ivr.autoringup_call where datetime between '2020-05-21 00:00:00' and '2020-05-22 00:00:00'
Gather (cost=1000.00..286578.08 rows=152218 width=99) (actual time=585.538..661.873 rows=161274 loops=1)
Workers Planned: 2
Workers Launched: 2
Buffers: shared hit=2411 read=187418
-> Parallel Seq Scan on autoringup_call (cost=0.00..270356.28 rows=63424 width=99) (actual time=582.112..629.147 rows=53758 loops=3)
Filter: ((datetime >= '2020-05-21 00:00:00'::timestamp without time zone) AND (datetime <= '2020-05-22 00:00:00'::timestamp without time zone))
Rows Removed by Filter: 4226578
Buffers: shared hit=2411 read=187418
Planning Time: 0.781 ms
Execution Time: 668.502 ms
М
ДЛ
АФ
АФ
Д
ВК
ВК
ВЯ
MM
ВК
ВК
AP