oncall-engine/engine/apps/user_management/models
Matias Bordese bba6eb333e
Add db indexes to user table (#3067)
Add composite indexes based on existing queries/usage, ensuring partial
index prefixes are useful too.

- `is_active` filtering is set in the default `User` manager
- most of our user queries are per `organization`
- multiple cases filter by `username` or `email` (most notably schedule
related queries, given the low-level backend ical representation)

Also rework how users are fetched from DB when getting users from
schedules ical representation (which was particularly slow when regex
filtering by required permission).

Related to https://github.com/grafana/oncall-private/issues/2163
2023-09-27 12:35:52 +00:00
..
__init__.py Add basic organization moved exception handling and middleware 2022-10-20 15:04:58 -06:00
organization.py add shifts property to shift swap request response schema + finalize slack message layout (#2712) 2023-08-01 14:21:02 -04:00
region.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
team.py Re-enable a few mypy rules + fix existing errors (#2725) 2023-08-03 09:43:03 +00:00
user.py Add db indexes to user table (#3067) 2023-09-27 12:35:52 +00:00