Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

pref: improve caledar object query performance and accuracy #52746

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
Loading
from

Conversation

SebastianKrupinski
Copy link
Contributor

@SebastianKrupinski SebastianKrupinski commented May 11, 2025

Summary

  • modifies time range query to select events better
  • add index for most common search query

Tests

Before index
Screenshot 2025-05-10 204201

After index
Screenshot 2025-05-10 204055

Checklist

@SebastianKrupinski SebastianKrupinski self-assigned this May 11, 2025
@SebastianKrupinski SebastianKrupinski added 3. to review Waiting for reviews feature: caldav Related to CalDAV internals labels May 11, 2025
@github-project-automation github-project-automation bot moved this to 🏗️ In progress in 💌 📅 👥 Groupware team May 11, 2025
@SebastianKrupinski SebastianKrupinski force-pushed the fix/noid-improve-calendar-accuracy-performace branch from c70a78c to e419ba2 Compare May 11, 2025 01:01
@SebastianKrupinski SebastianKrupinski changed the title feat: Calendar Import pref: improve caledar object query performance and accuracy May 11, 2025
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
@SebastianKrupinski SebastianKrupinski force-pushed the fix/noid-improve-calendar-accuracy-performace branch from e419ba2 to 7e9090b Compare May 11, 2025 01:06
@SebastianKrupinski SebastianKrupinski marked this pull request as ready for review May 11, 2025 01:09
@SebastianKrupinski SebastianKrupinski requested review from tcitworld and a team as code owners May 11, 2025 01:09
@SebastianKrupinski SebastianKrupinski requested review from skjnldsv, yemkareems and come-nc and removed request for a team May 11, 2025 01:09
@SebastianKrupinski SebastianKrupinski marked this pull request as draft May 11, 2025 16:04
@SebastianKrupinski
Copy link
Contributor Author

Odd index is failing on CI but not on dev

@@ -50,6 +50,7 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
}
$calendarObjectsTable->addUniqueIndex(['calendarid', 'calendartype', 'uri'], 'calobjects_index');
$calendarObjectsTable->addUniqueIndex(['calendarid', 'calendartype', 'uid'], 'calobjects_by_uid_index');
$calendarObjectsTable->addUniqueIndex(['calendarid', 'calendartype', 'firstoccurence', 'lastoccurence'], 'calobjects_by_time_index');
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
$calendarObjectsTable->addUniqueIndex(['calendarid', 'calendartype', 'firstoccurence', 'lastoccurence'], 'calobjects_by_time_index');
$calendarObjectsTable->addIndex(['calendarid', 'calendartype', 'firstoccurence', 'lastoccurence'], 'calobjects_by_time_index');

// case 2: event starts before range and ends within range
// case 3: event starts within range and ends after range
// case 4: event starts before range and ends after range
$rangerStart = $timeRange['start']->getTimeStamp();
Copy link
Contributor

Choose a reason for hiding this comment

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

@kesselb kesselb added 2. developing Work in progress and removed 3. to review Waiting for reviews labels May 11, 2025
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
@kesselb
Copy link
Contributor

kesselb commented May 11, 2025

Odd index is failing on CI but not on dev

CI is running the code from the migration, and there you've added a unique index.
The event listener is adding a non-unique-index.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress feature: caldav Related to CalDAV internals
Projects
Status: 🏗️ In progress
Development

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.