-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
base: master
Are you sure you want to change the base?
pref: improve caledar object query performance and accuracy #52746
Conversation
c70a78c
to
e419ba2
Compare
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
e419ba2
to
7e9090b
Compare
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'); |
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.
$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(); |
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.
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
CI is running the code from the migration, and there you've added a unique index. |
Summary
Tests
Before index

After index

Checklist