QUERY PLAN
Limit (cost=593.22..692.02 rows=20 width=957)
-> Index Scan Backward using tbl_api_log_pkey on tbl_api_log a (cost=0.42..36304.54 rows=7349 width=957)
Filter: ((device_type = '6'::smallint) AND ((schema)::text = 'a57be577deb434'::text))