Stored Procedures - End of days

前端 未结 20 1404
轻奢々
轻奢々 2021-01-31 08:51

I’m listening to the Hanselminutes Podcast; \"StackOverflow uses ASP.NET MVC - Jeff Atwood and his technical team\". During the course of the Podcast they are speaking about SQL

相关标签:
20条回答
  • 2021-01-31 09:49

    SPs are probably the way to go if you are ONLY concerned about speed. But if you care about scalability or maintainability, SPs might not be the best. Our architecture is built on SPs and after 10 years of code, it is very hard to maintain and very buggy. A good ORM mapper might be a better choice.

    0 讨论(0)
  • 2021-01-31 09:51

    Maintenability Probably SPs are better. If maintaining hundres of SPs are hard, maintaining them in business tier components is even harder.

    Performance Caching of queries might be producing near performance to SP. But they can't match performance of SPs across varieties of databases in varieties of platform. Network latency is another area of concern, though the gap is reducing nowadays.

    Debug Is probably fairly easy with SPs than debugging business tier + db tier put together.

    There can be even more +ve points using SPs.

    But looking at the modern trend of programming, its rather "wise" to go with 'N' tier architecture for plenty of business reasons than sticking with "old" SP based approach.

    Good system should have mix of both. Probably following 80-20 principle, 20 being SPs.

    0 讨论(0)
提交回复
热议问题