Closed bramkragten closed 5 years ago
There is an index on event_type, so it would be better to filter it in the db.
SELECT count(*) FROM public.events: 1195585 SELECT count(*) FROM public.events WHERE event_type='call_service': 130662
SELECT count(*) FROM public.events
SELECT count(*) FROM public.events WHERE event_type='call_service'
There is an index on event_type, so it would be better to filter it in the db.
SELECT count(*) FROM public.events
: 1195585SELECT count(*) FROM public.events WHERE event_type='call_service'
: 130662