mirror of
https://github.com/jbranchaud/til
synced 2026-01-16 13:38:02 +00:00
Add a little more discussion at the end.
This commit is contained in:
@@ -12,3 +12,7 @@ of _whatever_.
|
|||||||
(0.6ms) select count(*) from posts where published_at is not null
|
(0.6ms) select count(*) from posts where published_at is not null
|
||||||
=> 42
|
=> 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user