QUERY PLAN
Limit (cost=342411.83..342411.88 rows=20 width=255)
-> Sort (cost=342384.53..349591.45 rows=2882766 width=255)
Sort Key: a.created_at DESC
-> Seq Scan on tbl_action_logs a (cost=0.00..134575.66 rows=2882766 width=255)