forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce pg_stat_statements churn using
= any()
instead of IN ()
- Loading branch information
1 parent
90b0266
commit c4cb732
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
Extremely minor but you want want to capitalize ANY and ALL as keywords.
I'm not familiar with Arel much, but I'm wondering if "to_sql" on a AR relation that includes an IN clause, and now has any ANY clause, would break? I left this comment here: rails#49388 (comment) where I'm wondering if that's what that code does. At a quick glance it seems like the to_sql code has not changed between 6.1 and main.
Thanks!