문제

After going through the discussion here I have one more question now.

Lets assume, there is an enterprise level application with million of user base and with millions of transaction each day. Performance vise, which would be better.

  1. Java Stored Procedure
  2. Or Oracle Stored Procedures (Pl/SQL)

P.S: When i say enterprise application development, I meant it from developers point of view where we have different layers of abstraction. Testing frameworks. Automated Testing deployed on multiple blades and extensive debugging etc

도움이 되었습니까?

해결책

I suspect performance issues will come down to what kind of database operations you're doing. However a very important issue for me when dealing with databases is testability. Many times I've been in projects with are too centric around the database - where we end up with tons of business logic that I can't unit test, verify or perhaps even change.

I'm always for the pragmatic choice - everything in it's right place. And for some stuff you really should keep it in the database. But this is an issue worth thinking about.

다른 팁

I can't imagine there will be much difference between the two for most applications, unless your stored procedures are highly compute-heavy (and note that I mean computation within the procedure itself, not the computation involved in executing individual SQL statements).

Now, as for the difference between stored procedures generally and ordinary application code, that's another story.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top