QUERY PLAN
Limit (cost=0.42..89.13 rows=20 width=957)
-> Index Scan Backward using tbl_api_log_pkey on tbl_api_log a (cost=0.42..35186.70 rows=7933 width=957)
Filter: ((device_type = '0'::smallint) AND ((schema)::text = 'a57be577deb434'::text))