Skip to content

ENH Optimise SQL queries to improve performance#328

Merged
emteknetnz merged 1 commit intosilverstripe:4from
creative-commoners:pulls/4/optimise
Aug 6, 2025
Merged

ENH Optimise SQL queries to improve performance#328
emteknetnz merged 1 commit intosilverstripe:4from
creative-commoners:pulls/4/optimise

Conversation

@GuySartorelli
Copy link
Copy Markdown
Member

While not reducing the number of queries, I've updated a bunch of calls to find() and byID() (which were only being used to check if a record exists) to instead use filter()->exists() which is more efficient.

Issue

@emteknetnz emteknetnz merged commit 3ecdf71 into silverstripe:4 Aug 6, 2025
11 checks passed
@emteknetnz emteknetnz deleted the pulls/4/optimise branch August 6, 2025 00:47
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.

3 participants