-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
feat(webcal): only update modified and deleted events from webcal calendars #46723
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
b9d52df to
2e504d8
Compare
| foreach (array_chunk($calendarObjectUris, 1000) as $chunk) { | ||
| $query = $this->db->getQueryBuilder(); | ||
| $query->delete('calendarchanges') | ||
| ->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId))) |
Check notice
Code scanning / Psalm
MissingReturnType
| ->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION))) | ||
| ->andWhere($query->expr()->in('uri', $query->createNamedParameter($chunk, IQueryBuilder::PARAM_STR_ARRAY), IQueryBuilder::PARAM_STR_ARRAY)) | ||
| ->executeStatement(); | ||
| } |
Check notice
Code scanning / Psalm
RiskyTruthyFalsyComparison
7e7c4ae to
e0b4627
Compare
|
What does the blackfire comparison look like without md5? Does it get even better? |
ChristophWurst
left a comment
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.
Looks good!
af04739 to
c47650c
Compare
ChristophWurst
left a comment
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.
Code looks good
![]()
…endars Signed-off-by: Anna Larch <[email protected]>
c47650c to
fb94db1
Compare
st3iny
left a comment
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.
Tested and works.
|
I ran the freeze check again and we are good. |

Summary
Blackfire profiling comparison for an update query:

Checklist
Screenshots before/after for front-end changesBackports requested where applicable (ex: critical bugfixes)