QUERY PLAN
Limit (cost=28962.33..28962.33 rows=1 width=957)
-> Sort (cost=28962.33..28962.33 rows=1 width=957)
Sort Key: id DESC
-> Gather (cost=1000.00..28962.32 rows=1 width=957)
Workers Planned: 2
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..27962.22 rows=1 width=957)
Filter: ((url ~~* '%v2/punch-leave/cancel%'::text) AND (device_type = '2'::smallint) AND ((schema)::text = 'a57be577deb434'::text))