-
Notifications
You must be signed in to change notification settings - Fork 54
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
Modify get entities query to avoid unnecessary join #872
Conversation
comms/lighthouse/package.json
Outdated
@@ -16,7 +16,7 @@ | |||
"@dcl/archipelago": "1.0.0", | |||
"@dcl/catalyst-api-specs": "1.0.1", | |||
"cors": "2.8.5", | |||
"dcl-catalyst-commons": "7.2.1", | |||
"dcl-catalyst-commons": "tag-7.2.2-include-deployed-by", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
before merging to main, add the version here
} | ||
function getBaseQuery(includeOverwrittenInfo?: boolean) { | ||
// TODO: make another query for when deleter deployment is needed | ||
if (!!includeOverwrittenInfo) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aren't both queries equal and the only difference the left join?
I think it can be added as are the other clauses
overwrittenBy
field, it is only calculated whenauthChain
is requested in:/pointer-changes
and/audit/{entityType}/{entityId}
deployedBy
filter