QUERY PLAN
Limit (cost=3374.15..3374.16 rows=1 width=954)
-> Sort (cost=3374.15..3374.16 rows=1 width=954)
Sort Key: id DESC
-> Bitmap Heap Scan on tbl_api_log a (cost=12.03..3374.14 rows=1 width=954)
Recheck Cond: (("time" >= '2026-07-13 00:00:00'::timestamp without time zone) AND ("time" <= '2026-07-13 23:59:59'::timestamp without time zone))
-> Bitmap Index Scan on idx_api_log_time_brin (cost=0.00..12.03 rows=984 width=0)
Index Cond: (("time" >= '2026-07-13 00:00:00'::timestamp without time zone) AND ("time" <= '2026-07-13 23:59:59'::timestamp without time zone))