Skip to content
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

Use constant parameters to query events #485

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

louisaxel-ambroise
Copy link
Owner

Instead of specifying the event IDs as SQL parameters, use a constant expression instead.

The generated EF query changes from WHERE eventid = @p01 OR eventid = @p02 ... to WHERE eventid IN (1,2,...)

This seems safe as the event IDs are directly retrieved from the database without modification

@louisaxel-ambroise louisaxel-ambroise merged commit db49b3a into main Mar 1, 2024
3 checks passed
@louisaxel-ambroise louisaxel-ambroise deleted the constant-event-filter branch March 8, 2024 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant