Stored procedures or OR mappers?

后端 未结 15 1439
天命终不由人
天命终不由人 2021-01-06 16:04

Which is better? Or use and OR mapper with SP\'s? If you have a system with SP\'s already, is an OR mapper worth it?

15条回答
  •  梦谈多话
    2021-01-06 16:48

    Stored procedures are better, in my view, because they can have an independent security configuration from the underlying tables.

    This means you can allow specific operations without out allowing writes/reads to specific tables. It also limits the damage that people can do if they discover a SQL injection exploit.

提交回复
热议问题