Skip to content

perf(dav): push carddav report filtering to the db#55669

Draft
ChristophWurst wants to merge 1 commit intomasterfrom
perf/dav/db-filtering-carddav-report
Draft

perf(dav): push carddav report filtering to the db#55669
ChristophWurst wants to merge 1 commit intomasterfrom
perf/dav/db-filtering-carddav-report

Conversation

@ChristophWurst
Copy link
Member

  • Resolves: #

Summary

Searching on CardDAV is very expensive as the full address book is loaded into memory. This pushes filtering down into the DB.

TODO

Checklist

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
'cp.value',
$selectQuery->createNamedParameter('%' . $matchFilter['value'] . '%', IQueryBuilder::PARAM_STR) // TODO: escaping
),
'starts-with' => $selectQuery->expr()->eq(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you use '%' still like?
Same on ends-with?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: 🏗️ In progress

Development

Successfully merging this pull request may close these issues.

2 participants