Skip to content
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

Parannetaan kalenteritapahtumien tietokantakyselyiden suorituskykyä #5751

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

Gekkio
Copy link
Contributor

@Gekkio Gekkio commented Sep 30, 2024

  • replace NOT MATERIALIZED with MATERIALIZED. A single guardian has a small amount of children and a relatively small amount of placements, so we want to materialize to prevent the query planner from trying to be too clever
  • replace useless calendar_event.type index
  • add missing indexes (calendar_event_time.calendar_event_id is the most important)

@Gekkio Gekkio changed the title Improve calendar event query performance Parannetaan kalenteritapahtumien tietokantakyselyiden suorituskykyä Sep 30, 2024
@Gekkio Gekkio force-pushed the calendar-event-perf branch from bc12d6f to effd9fd Compare October 1, 2024 15:00
@Gekkio Gekkio marked this pull request as ready for review October 1, 2024 15:05
- replace NOT MATERIALIZED with MATERIALIZED. A single guardian has a
  small amount of children and a relatively small amount of placements,
  so we *want* to materialize to prevent the query planner from trying
  to be too clever
- replace useless calendar_event.type index
- add missing indexes (calendar_event_time.calendar_event_id is the most important)
@Gekkio Gekkio force-pushed the calendar-event-perf branch from effd9fd to bc86c21 Compare October 1, 2024 15:11
@Gekkio Gekkio added the tech Tekninen muutos, esim. refaktorointi label Oct 1, 2024
@Gekkio Gekkio merged commit 7036f3d into master Oct 1, 2024
28 checks passed
@Gekkio Gekkio deleted the calendar-event-perf branch October 1, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech Tekninen muutos, esim. refaktorointi
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants