+ 2
What is more efficient in your opinion - using SQL functions or fetch data and do the math with PHP?
3 Antworten
+ 1
In my current project we use stored procedures that contains all DB logic with data structure, joins etc. It is considered to be more productive. In PHP we just call that procedures and get results from DB like API calls
+ 1
if you have a complex queries I recommend store them in procedures. This will simplify your PHP code as well.
But if you are going to migrate to another DB in the future: maybe it's better use PDO and universal SQL that will run in different DBs identically
0
use standard sql statments because if you want develop your project and use another db