When to use stored procedures instead of using ORM with programming logic?

Hi everyone, what I wanted to know when I prefer to write stored procedures for writing programming logic and pull data using ORM or something else.

+3
source share
6 answers

Stored procedures are executed on the server side.

This means that processing large amounts of data does not require the transmission of this data over a network connection.

In addition, using stored procedures, you can build consistent, complex business logic.

, , , .

, ( ), SQL . .

+9

SP .

  • , , , :
    • ( )
  • - - , Row_Delete DELETE FROM Rows .
+3

.

  • /
  • ,
  • ,

"" "".

, . , / DAL ORM, / .

, ? ?

+3

, .

, .

( , ) - , , , . .

, , , ( SP).

, .

+1

, ORM, - , , . , , . ( ) ( ).

+1
source

Source: https://habr.com/ru/post/1745810/


All Articles