Internal vs Externa Stored Procedure Performance

5 pts.
Tags:
C#
Database performance
DB2/400
SQL stored procedures
Stored Procedures
Our company develops software for Windows using C# for connecting and updating the corporate database in DB2/400. We use both internal (SQL) and external (rpg) stored procedures. Because we have noticed some bad performance in our internal stored procedures, we have the following question: Is there any diference in performance between internal vs external stored procedures? What is the best? Are they the same when you talk about performance?

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    It depends on what they're doing. External (RPG, COBOL, C, etc.) procedures are obviously best when you need things done that SQL has difficulty with. Complex, detailed business logic can be much better suited to a procedural language. Set processing (where appropriate indexes exist) will be better suited for SQL procedures. Either way, testing for performance should lead to the appropriate solution in each case. Also, quality programming will always make a difference. If you can work out SQL procedures that can replace a poor performing RPG procedures, why would you not use them? OTOH, if a SQL solution requires bending the language just to get an accurate result or if development resources are better spent elsewhere, why would you waste the effort? Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following