-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Nonoptimal database query #1302
base: master
Are you sure you want to change the base?
Conversation
.ThenInclude(ep => ep.ExtensionAttributes) | ||
.Include(wf => wf.ExecutionPointers) | ||
.AsSplitQuery() | ||
.FirstAsync(x => x.InstanceId == uid, cancellationToken); |
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.
.FirstAsync(x => x.InstanceId == uid, cancellationToken); | |
.FirstOrDefaultAsync(x => x.InstanceId == uid, cancellationToken); |
because it seems you're checking for raw
being not null
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.
@@ -32,7 +32,7 @@ public async Task<string> CreateEventSubscription(EventSubscription subscription | |||
{ | |||
subscription.Id = Guid.NewGuid().ToString(); | |||
var persistable = subscription.ToPersistable(); | |||
var result = db.Set<PersistedSubscription>().Add(persistable); | |||
_ = db.Set<PersistedSubscription>().Add(persistable); |
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.
Could we put non-related changes in their own PR?
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.
done
Describe the change
#1169