Ask HN: Why sampling a database is not instantaneous?

https://news.ycombinator.com/item?id=41772151
by whatever1 • 2 years ago
1 4 2 years ago

The 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?

Related Stories

Loading related stories...

Source preview

news.ycombinator.com