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

Added custom index for Log__c.LogRetentionDate__c #553

Merged
merged 3 commits into from
Sep 20, 2023

Conversation

jongpie
Copy link
Owner

@jongpie jongpie commented Sep 20, 2023

The data purge job LogBatchPurger filters on the field Log__c.LogRetentionDate__c in several queries to determine which records to delete. In orgs with large data volumes (LDV), the queries can have performance issues because the field is not indexed. Now that custom indexes are generally available (GA), a new custom index for the field Log__c.LogRetentionDate__c should help speed up the LogBatchPurger job (among other things that use this field, such as list views, etc.).

@jongpie jongpie added Type: Enhancement New feature or request optimization Layer: Log Management Items related to the custom objects & Logger Console app Feature: Log Retention Items related to LogBatchPurger or LogBatchPurgeScheduler labels Sep 20, 2023
@jongpie jongpie temporarily deployed to Base Scratch Org September 20, 2023 14:01 — with GitHub Actions Inactive
@jongpie jongpie had a problem deploying to Experience Cloud Scratch Org September 20, 2023 14:01 — with GitHub Actions Failure
@jongpie jongpie temporarily deployed to Experience Cloud Scratch Org September 20, 2023 14:07 — with GitHub Actions Inactive
@jongpie jongpie temporarily deployed to Base Scratch Org September 20, 2023 14:08 — with GitHub Actions Inactive
@jongpie jongpie temporarily deployed to Demo Org September 20, 2023 14:19 — with GitHub Actions Inactive
@jongpie jongpie temporarily deployed to Demo Org September 20, 2023 14:32 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Patch has no changes to coverable lines.

❗ Current head 2e42b06 differs from pull request most recent head 39a52af. Consider uploading reports for the commit 39a52af to get more accurate results

Files Changed Coverage
...-logger/core/main/logger-engine/classes/Logger.cls ø

📢 Thoughts on this report? Let us know!.

@jongpie jongpie merged commit d4aeb00 into main Sep 20, 2023
@jongpie jongpie deleted the feature/index-for-log-retention-date branch September 20, 2023 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Log Retention Items related to LogBatchPurger or LogBatchPurgeScheduler Layer: Log Management Items related to the custom objects & Logger Console app optimization Type: Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants