Stored procedures or OR mappers?

后端 未结 15 1397
天命终不由人
天命终不由人 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 17:05

    Stored procedures hands down. OR Mappers are language specific, and often add graphic slowdowns.

    Stored procedures means you're not limited by the language interface, and you can merely tack on new interfaces to the database in forwards compatible ways.

    My personal opinion of OR Mappers is their existence highlights a design flaw in the popular structure of databases. Database developers should realize the tasks people are trying to achieve with complicated OR-Mappers and create server-side utilities that assist in performing this task.

    OR Mappers also are epic targets of the "leaky abstraction" syndrome ( Joel On Software: Leaky Abstractions )

    Where its quite easy to find things it just cant handle because of the abstraction layer not being psychic.

提交回复
热议问题