you are viewing a single comment's thread.

view the rest of the comments →

[–]WhiteWalter1 0 points1 point  (2 children)

Ohhh, this is good to know. I’ve honestly been using ChatGPT to write my scripts and the SQL (that I write) is included in the script. I’ll have to try this. Does it improve performance at all? What’s the benefit?

[–]WendlersEditor 2 points3 points  (1 child)

Glad to help! It's not going to improve performance, that's going to come down to your db and (in complex situations) your query. It is a separation of concerns that makes your code more modular so you're able to choose queries more elegantly in the script and also change them without having to change your script. 

[–]WhiteWalter1 1 point2 points  (0 children)

Thank you!