Why cursors are less efficient than RPGLE?

510 pts.
Tags:
AS/400
RPGLE
SQLRPGLE
I had created two programs for reading a PF and writing into another PF. 1) In RPGLE -- Runs very faster 2) IN SQLRPGLE using cursor -- Takes more time.. Why this CURSOR is slow? Both are AS/400 utilities right?

Software/Hardware used:
V7R1

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: 2  Replies

 
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
    There's no way for us to know without seeing at least the programming, the database definitions and the run-time environment. . Usually, unless there is a specific reason to use one, a rule of thumb is "If you're using a cursor, you're probably doing it wrong." . Tom
    125,585 pointsBadges:
    report
  • CharlieBrowne
    If you are reading a PF and writing to a 2nd PF and you use OVRDBF option SEQONLY it will always process the fastest.
    41,430 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