codeLive: Learn About Apex Cursors (Beta)

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 6

  • @NathoModalu
    @NathoModalu 2 месяца назад

    Intresting and this one solves most of the complex problems in terms of pagination and async process

  • @sarfrajahmad8258
    @sarfrajahmad8258 2 месяца назад +2

    i have a question, lets say I create a cursor having soql with user_mode and store cursor Id in some object and reteive the cursor Id with another user how will code behave as per the records fetch. both user has different record access.
    please help me understand this.

  • @AbhishekMadhu_online
    @AbhishekMadhu_online Месяц назад

    If I create a cursor today, and the data in the records get changed after I create the cursor, what data will I get when I try to get the records next day? The new updated data or the older stale data?

  • @AdityaNaag3
    @AdityaNaag3 2 месяца назад

    41:35 Lol. I hit the dev org storage limit when running the queueable job that creates new records :D

  • @shresthdixit7569
    @shresthdixit7569 2 месяца назад

    I think the depth size is 5 for developer edition and trial org otherwise it is unlimited , which means as per your code, if it is executed in developer org it should only process 5 batches and not 50. i'm still wondering why i would not use a batch over this.The only big difference i see the number of records i can process in a single transaction, in batch i can process 2000 records in a single transaction, but here i can have 10 fetch in a single transaction which are almost 20000 records, and yes also there is one more difference, through cursors i can go back and forth through the data. But i never ran into such scenarios, it will be great if you can have a scenario where you are going back and forth with the data with the batch like implementation of queueable.

  • @devnabeel
    @devnabeel 2 месяца назад

    awesome