Ask HN: Why sampling a database is not instantaneous?
https://news.ycombinator.com/item?id=41772151The other day I was trying to just sample some outputs from a (admittedly big)database, so I executed select * from database limit 10.
It took more than a minute to execute this (not in queue). The data engineer claims that my query is a bad one since the db is a big one and I did not include a where clause.
But are the db engines that naive?