Open robertlagrant opened 3 years ago
Yes, SQLAlchemy is great. In general, if your use case can be met with SQLAlchemy core, then you really should use it.
There are times when a report or a transformation needs significantly complex queries. You want to incrementally work on the query, look at performance, make tweaks and so on. Once you have the final working query - it is much simpler to put into a JinjaSQL template, than to take that monstrosity and convert it into equivalent SQLAlchemy core.
Your mileage may vary!
Just based on this section:
It would be good to know why this would be better than SQLAlchemy (I'm less familiar with Django's ORM) - some examples: SQLAlchemy has Group By support, you can get data from multiple tables using it, and you can dynamically build queries using it. Also it has the core API as a lower level SQL DSL.
Thanks!