BLK2: Get Data Faster with BULK COLLECT (PL/SQL Channel)

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.พ. 2025

ความคิดเห็น • 10

  • @dhanukajayasinghe9598
    @dhanukajayasinghe9598 6 ปีที่แล้ว

    Thanks Steve, as always...

  • @mohitmangal1830
    @mohitmangal1830 6 ปีที่แล้ว

    Mind blowing explaination

  • @AbhishekKumar-zx2jr
    @AbhishekKumar-zx2jr 8 ปีที่แล้ว +1

    thank you sir

  • @paulwhite923
    @paulwhite923 6 ปีที่แล้ว

    excellent, thank you!

  • @dhanukajayasinghe9598
    @dhanukajayasinghe9598 5 ปีที่แล้ว

    Good day Steven. On 10g and higher,we still have to convert to BULK COLLECT (with LIMIT) if we are retrieving high volume of records due to the PGA memory issues right? (I’m referring to the section ‘When to convert to BULK COLLECT’). Or is it taken care of by the Optimizer??

    • @PracticallyPerfectPLSQL
      @PracticallyPerfectPLSQL  5 ปีที่แล้ว

      That's correct. If you do a SELECT BULK COLLECT INTO without LIMIT, there is no way for PL/SQL to do "pagination". You are filling up a collection once and then iterating through that collection.

    • @dhanukajayasinghe9598
      @dhanukajayasinghe9598 5 ปีที่แล้ว

      Got it.. Thanks Steve

  • @shanawazali6161
    @shanawazali6161 7 หลายเดือนก่อน

    have any opportunity for 3+ years PLSQL developer

  • @Rajeev20039
    @Rajeev20039 7 ปีที่แล้ว

    Does data flushes from memory using Limit clause, I have following code. Will it work for 1 billion records.
    My question is that will all data remain in memory after completion of loop.
    OPEN CUR_CQ;
    LOOP
    FETCH
    CUR_CQ BULK COLLECT
    INTO
    CQ_TABLE$ LIMIT 100;
    EXIT
    WHEN CUR_CQ%NOTFOUND;
    END LOOP;
    CLOSE CUR_CQ;