Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR is a possible way to reduce query times especially for large queries with thumbnails.
Adds optional Solr field-list restriction to catalog queries so callers can
request only the attributes they need, greatly reducing Solr fetch time and
response size for large result sets (e.g. excluding thumbnails).
includedFields/excludedFields(lists of attribute names,*wildcards supported; only one may be given). They are read from the top-level request properties or from the nestedunchecked-propertiesmap used by endpoints such as ddf-jsonrpc.solr.query.fieldList.enabled=true.solr.query.fieldList.requiredFields(e.g.security.*,validation-errors,validation-warnings,metacard-tags, metacard.owner) so post-query security/validity plugins keep working.flhas no exclusion syntax), limited to base attribute fields; derived index-only fields (_tokenized, _phonetics, _sort, ...) are never requested.metacard.partial=true(the attribute is added to a cached extension of the metacard type so transformers serialize it).metacard.partialin the AttributeRegistry and rejects creates/updates of partial metacards, which would otherwise silently drop every attribute that was not returned.Query performance improvements
Removes two per-result costs from the post-query phase and fixes ambiguous
query metric keys.
qm.prequeryaccess.<Plugin>.elapsed(previously mislabeledqm.postquery.*), and the post-query pass of pre-authorization plugins asqm.postauthorization.<Plugin>.elapsed(previously overwrote the pre-queryResults: 1000-result queries via JSON-RPC (median ms)
excludedFields: [thumbnail]excludedFields: [thumbnail]excludedFields: [thumbnail]excludedFields: [thumbnail]How these numbers were produced:
Who is reviewing it?
@jaymcnallie
@vinamartin
@derekwilhelm
Select relevant component teams:
Ask 2 committers to review/merge the PR and tag them here.
How should this be tested?
Any background context you want to provide?
What are the relevant tickets?
Fixes: #____
Screenshots
Checklist:
Notes on Review Process
Please see Notes on Review Process for further guidance on requirements for merging and abbreviated reviews.
Review Comment Legend: