Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture Apex cursor limits #760

Open
jongpie opened this issue Sep 4, 2024 · 2 comments
Open

Capture Apex cursor limits #760

jongpie opened this issue Sep 4, 2024 · 2 comments
Assignees
Labels
Layer: Log Management Items related to the custom objects & Logger Console app Layer: Logger Engine Items related to the core logging engine Salesforce Feature: Platform Events Items related to how platform events are leveraged by Nebula Logger Salesforce Feature: Reporting Anything related to reports, dashboards, and the underlying data model Type: Enhancement New feature or request

Comments

@jongpie
Copy link
Owner

jongpie commented Sep 4, 2024

Salesforce has introduced Apex cursors (currently in beta) as a new way to query large data sets. This new functionalty has some new transaction limits, available in the class System.Limits. From this page:

To get Apex cursor limits, use these new methods in the Limits class.

  • Limits.getApexCursorRows() and its upper bound Limits.getLimitApexCursorRows() method
  • Limits.getFetchCallsOnApexCursor() and its upper bound Limits.getLimitFetchCallsOnApexCursor() method

Nebula Logger should automatically capture & store these new limits in the same way it captures other limits. New fields will need to be created on LogEntryEvent__e and LogEntry__c to store the data.

@jongpie jongpie added Type: Enhancement New feature or request Salesforce Feature: Reporting Anything related to reports, dashboards, and the underlying data model Layer: Log Management Items related to the custom objects & Logger Console app Layer: Logger Engine Items related to the core logging engine Salesforce Feature: Platform Events Items related to how platform events are leveraged by Nebula Logger labels Sep 4, 2024
@jongpie jongpie removed this from the Version 4.15.0: Winter '25 Release milestone Sep 12, 2024
@twentyTwo
Copy link
Contributor

I can work on this @jongpie

@jongpie
Copy link
Owner Author

jongpie commented Sep 23, 2024

@twentyTwo that would be amazing! Feel free to submit a PR for this at your convenience, and let me know if you have any questions along the way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Layer: Log Management Items related to the custom objects & Logger Console app Layer: Logger Engine Items related to the core logging engine Salesforce Feature: Platform Events Items related to how platform events are leveraged by Nebula Logger Salesforce Feature: Reporting Anything related to reports, dashboards, and the underlying data model Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants