logoalt Hacker News

ethan_smith04/22/20250 repliesview on HN

The optimization should work well for your sampling query since the ORDER BY and LIMIT operations would happen before materializing the large columns, but the randomization function might force early evaluation - worth benchmarking both approaches.