-
-
Notifications
You must be signed in to change notification settings - Fork 169
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 a custom index for LogEntry__c.OriginLocation__c #411
Added a custom index for LogEntry__c.OriginLocation__c #411
Conversation
80bcbc4
to
1c7e9b3
Compare
I've been doing some testing of the new I've tried deleting with
I'll continue testing this - it makes me a little nervous to merge this PR before having a rollback plan in place (just in case there's some negative impact in some orgs), so I want to figure out deleting the index before I release this change. |
Agree @jongpie since not documented as such, that fact that deploying the meta-data 'works' (did you run an explain plan to see if truly the field was indexed, not only 'checked' as indexed) is tricky. Risk-reward is not such that this needs to be pushed. |
@JeroenSfdc yeah, I ran a few tests before & after deploying the custom index, and it does appear to be actually indexing the field - but given that I haven't found a way yet to delete the custom index, I'm going to hold off on merging this PR for now. I'll try reaching out internally at Salesforce to see if anyone can provide me with some more info on the new metadata type - if/when I can figure out how to delete a custom index, then I think I'll move forward with merging this PR. |
…inLocation__c (using the new CustomIndex metadatatype) to improve queries & reports that filter on this field
cf11831
to
9cdba05
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #411 +/- ##
=======================================
Coverage 95.07% 95.07%
=======================================
Files 59 59
Lines 5944 5944
Branches 129 129
=======================================
Hits 5651 5651
Misses 288 288
Partials 5 5
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
@JeroenSfdc this is now available in the |
Nice @jongpie! Since we're on the manage package, will need to wait a bit. Thanks a lot! |
@JeroenSfdc just FYI, I'm hoping to have the managed package release ( |
@JeroenSfdc, some unfortunate news, I'm not going to include the custom index in the next managed package release ( I've recently seen a few errors about the custom index in a couple of unrelated orgs that deploy Nebula Logger's metadata (instead of using the unlocked or managed packages). For some reason, the inclusion of the custom index causes a deployment error. It doesn't seem to be a widespread issue (I only know of 2-3 orgs impacted)), and I can't reproduce the issue myself in any of my own orgs, so it could be something specific to those orgs. But as a precaution, I'm going to exclude it from the managed package this release to avoid any upgrade issues. In the meantime, I'll continue to investigate these errors further - hopefully, I'll be able to include the index in the next managed package release, |
Fixes #400 by adding a custom index for the field
LogEntry__c.OriginLocation__c
, using the newCustomIndex
metadatatype. This should help to improve queries & reports that filter on this field.