r/javascript • • Dec 30 '19

Complex SQL query builder

https://github.com/olegnn/sql-template-builder
66 Upvotes

18 comments sorted by

View all comments

-23

u/[deleted] Dec 30 '19

[removed] — view removed comment

2

u/ShortFuse Dec 30 '19

Definitely not, especially with the cloud-based, microservice-heavy architecture used today. In ideal situations, you want one big long script to do as much as possible before returning a result because the machine requesting the operation is rarely ever the same one running the SQL DB instance. They even probably not on the same network either. You want less back and forth between the app server and the database server to reduce the latency in client requests.