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