Postgres get number of rows from query
Hi guys, I am this query
Which returns ~10000 rows.
Is there a way to modify this query to just return the number of rows and maybe make the query faster?
15 Replies
speed wise, if you just need the count there is no need to use
true, removed that
Won't this just return the number of rows?
if not there, then insted of USE
That does not return the same number of rows 🤔
That returns this 😕
What about this one?
That returns ~15000, should be ~10000 rows 😄
try
yeah tried that aswell just now
Seems to work
thanks guys
no problem glad to help 🙂
The query should be fast right? 😄
if you removed the group by yes
nice thanks!
😃
never noticed there are 3 different smile emojis