QUERY PLAN
Limit (cost=343210.17..343210.22 rows=20 width=255)
-> Sort (cost=343181.77..350388.21 rows=2882575 width=255)
Sort Key: a.created_at DESC
-> Seq Scan on tbl_action_logs a (cost=0.00..134566.75 rows=2882575 width=255)