Answer the question
In order to leave comments, you need to log in
Criticize the approach?
There is an idea to create a web application, no matter what, where all the logic of working with data (API, Restful, CRUD) will not be taken out of the database. Those. we leave all the business logic inside the database, we write it on innoDB triggers, SQL procedures and SQL functions. PHP (let's say) doesn't do any SELECT/INSERT/UPDATE/DELETE, but only calls procedures like METHOD_acion(params).
For example, GET_some(id);
From the pros I see:
Answer the question
In order to leave comments, you need to log in
I debugged one such project of one large (forbes top 40) company, it still sucks, it slowed down like crazy, stored procedures in 10k lines.
- Well, it's convenient to develop
- The language is not for application development (if it is * SQL)
- It will slow down more, because the entire load goes to one link, when in high-load projects they try, on the contrary, to unload the central links.
Возможна такая ситуация: где-то что-то поменял и все рухнуло. А где и что поменял, не помню.
I support Night. It's very difficult to test things like this. And without proper testing, you will not get a quality product. Alternatively, you can leave the idea, but soften it a little. That is, to take out of the database at least part of the planned. Then it’s easier to test, and there are fewer brakes too.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question