WHERE created_at <= timestamp slow on large table on (140M rows)
I have a large table (140M rows) with a created_at timestamp column and its taking too much time to execute. PostgreSQL 14.20 Query: SELECT * FROM users WHERE created_at <= '2026-04-17 00:00:00'; What is the best way to optimize this query for large datasets?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.