Tim Möhlmann
8e2c3b671f
fix(query): optimize instance by domain query ( #7513 )
...
fix(query): optimize instance by domain query
On zitadel cloud we noticed an increase in database CPU usage and slightly higher response times.
By analyzes we found that the instance by domain query was wrongly joining all instance_feature rows against all instances.
This PR adds an additional CTE to limit the join set to only the features that apply to the found instance.
The query was introduced with https://github.com/zitadel/zitadel/pull/7356 and part of the v2.47 release.
(cherry picked from commit 3af28d29d25b9f396c6129ad8d248df4cc3af8dc)
2024-03-07 11:44:31 +01:00
..
2024-01-08 15:26:30 +00:00
2024-03-05 16:12:49 +01:00
2023-12-07 09:43:45 +00:00
2024-02-28 09:30:05 +00:00
2023-11-20 17:21:08 +02:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-01-18 07:10:49 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-02-28 10:55:54 +02:00
2023-10-19 12:19:10 +02:00
2024-01-04 16:12:20 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-20 13:21:08 +01:00
2023-12-20 13:21:08 +01:00
2023-12-20 13:21:08 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-01-17 10:16:48 +00:00
2023-10-19 12:19:10 +02:00
2023-12-08 15:30:55 +01:00
2023-12-05 17:01:03 +00:00
2023-12-08 15:30:55 +01:00
2023-08-22 10:49:22 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-08-22 10:49:22 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-03-07 11:44:31 +01:00
2024-03-05 16:12:49 +01:00
2023-08-22 10:49:22 +00:00
2023-12-08 15:30:55 +01:00
2024-03-05 16:12:49 +01:00
2024-02-28 10:55:54 +02:00
2024-02-28 10:55:54 +02:00
2024-02-28 10:55:54 +02:00
2024-02-28 10:49:57 +00:00
2023-11-21 13:11:38 +01:00
2023-11-21 13:11:38 +01:00
2024-01-29 15:11:52 +00:00
2024-01-29 15:11:52 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-11-20 17:21:08 +02:00
2023-12-08 15:30:55 +01:00
2024-01-08 21:13:46 +00:00
2023-12-08 15:30:55 +01:00
2022-06-14 07:51:00 +02:00
2023-10-19 12:19:10 +02:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-08-22 10:49:22 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-08-22 10:49:22 +00:00
2023-12-08 15:30:55 +01:00
2023-12-05 17:01:03 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-10-25 11:42:00 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-05 17:01:03 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-05 17:01:03 +00:00
2023-12-08 15:30:55 +01:00
2023-11-20 17:21:08 +02:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-01-25 17:28:20 +01:00
2024-01-25 17:28:20 +01:00
2023-09-15 16:58:45 +02:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-06 10:30:56 +00:00
2023-12-08 15:30:55 +01:00
2024-01-02 16:27:36 +01:00
2024-01-02 16:27:36 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-02-28 10:21:11 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-02-28 10:55:54 +02:00
2024-02-28 10:55:54 +02:00
2024-02-28 10:55:54 +02:00
2023-12-05 17:01:03 +00:00
2023-12-08 15:30:55 +01:00
2024-01-02 14:41:46 +01:00
2024-01-02 14:41:46 +01:00
2024-01-24 11:36:04 +01:00
2024-01-24 11:36:04 +01:00
2023-11-20 17:21:08 +02:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-01-02 14:41:46 +01:00
2024-01-02 14:41:46 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-01-17 10:00:10 +01:00
2024-01-17 10:00:10 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-11-20 17:21:08 +02:00