1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 23:28:02 +00:00

Add a little more discussion at the end.

This commit is contained in:
jbranchaud
2015-07-13 22:27:58 -05:00
parent b249fbfc0d
commit 9fcf2b1a8e

View File

@@ -12,3 +12,7 @@ of _whatever_.
(0.6ms) select count(*) from posts where published_at is not null
=> 42
```
Writing raw SQL for a simple query like this hardly seems like a win.
However when a count query starts to involve joins or other fanciness, I
find it much clearer to reason about the raw SQL.