-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Nonoptimal database query #1302
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
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.
| 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
|
@copilot please resolve the conflicts |
|
The breaking changes to the integration tests are holding back this PR. |
|
@copilot please recreate this PR, but without all the unnecessary changes. Only include the Linq changes, please exclude the changes to the integrations tests where generic parameters are being added. Also please leave out the formatting changes. |
|
succeeded by #1399 |
Describe the change
#1169