|
|
|
|
|
by lolinder
1003 days ago
|
|
It does make a difference if the resulting SQL is unperformant. Someone who is good at SQL can look at a query and see where the query planner might go wrong, then make subtle tweaks to get better performance. Optimizing queries in a compile-to-SQL language basically has to be left to the compiler, which may not have the context needed to write performant SQL. Compiling a query is different than compiling a whole program to assembly, because the query makes assumptions about schemas and indexes that cannot be encapsulated in what you're feeding to the compiler at that moment. |
|
Also, someone who ISN'T good at SQL can look at EXPLAIN output and see where the query planner HAS gone wrong.
Adding PRQL to the mix unambiguously makes that analysis and optimization step harder.