1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00
unleash.unleash/src/lib/features
Gastón Fournier a9f9be1efa
chore: add a class to handle aggreggation queries (#8446)
## About the changes
We have many aggregation queries that run on a schedule:
f63496d47f/src/lib/metrics.ts (L714-L719)

These staticCounters are usually doing db query aggregations that
traverse tables and we run all of them in parallel:
f63496d47f/src/lib/metrics.ts (L410-L412)

This can add strain to the db. This PR suggests a way of handling these
queries in a more structured way, allowing us to run them sequentially
(therefore spreading the load):
f02fe87835/src/lib/metrics-gauge.ts (L38-L40)

As an additional benefit, we get both the gauge definition and the
queries in a single place:
f02fe87835/src/lib/metrics.ts (L131-L141)

This PR only tackles 1 metric, and it only focuses on gauges to gather
initial feedback. The plan is to migrate these metrics and eventually
incorporate more types (e.g. counters)

---------

Co-authored-by: Nuno Góis <github@nunogois.com>
2024-10-18 11:11:22 +02:00
..
access feat: filter projectless events for normal users (#7914) 2024-08-21 13:59:24 +03:00
api-tokens API tokens scoped to deleted projects shouldn't give wildcard access (#7499) 2024-07-08 09:52:10 +02:00
change-request-access-service fix: change request enabled check should ignore disabled envs (#7869) 2024-08-14 13:13:31 +02:00
change-request-segment-usage-service fix: change request enabled check should ignore disabled envs (#7869) 2024-08-14 13:13:31 +02:00
client-feature-toggles fix: make default for gradual rollout work on the correct strategy name (#7401) 2024-06-14 15:54:00 +02:00
dependent-features feat: Deprecate feature toggle environment variants api (#7066) 2024-05-16 13:43:21 +02:00
events chore: fix search events endpoint description (#8289) 2024-09-27 11:16:51 +00:00
export-import-toggles feat: start using event service composition root (#7871) 2024-08-15 08:33:46 +03:00
feature-lifecycle chore: debug lifecycle only when have new stages (#8418) 2024-10-10 14:28:11 +03:00
feature-naming-pattern chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
feature-search fix: support search for tags that has colon inside (#7998) 2024-08-28 11:33:51 +03:00
feature-toggle Restructure features documentation (#8394) 2024-10-16 13:59:30 +02:00
frontend-api chore: wrapTimer function types (#8428) 2024-10-15 11:18:22 +02:00
group chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
instance-stats chore: add a class to handle aggreggation queries (#8446) 2024-10-18 11:11:22 +02:00
integration-events [Gitar] Cleaning up stale flag: integrationEvents with value true (#7940) 2024-08-21 14:25:24 +02:00
maintenance feat: use audit info in events (#6872) 2024-04-18 16:32:35 +02:00
metrics task: make count column bigint. (#8183) 2024-09-19 10:59:40 +02:00
onboarding fix: archived flags without metrics do not count towards onboarding (#8443) 2024-10-14 14:09:57 +03:00
personal-dashboard feat: add timestamps to project events (#8389) 2024-10-09 09:32:58 +02:00
playground fix: use ip-address for remote-strategy (#8380) 2024-10-07 13:51:03 +02:00
private-project feat: private projects in application overview (#6775) 2024-04-04 14:56:21 +02:00
project fix: group and user has at least 1 project owner counter respects multirole project groups (#8453) 2024-10-16 12:47:00 +02:00
project-environments fix: give project_default_strategy_write the ability to update the default strategy (#8112) 2024-09-06 11:49:11 +02:00
project-insights feat: start using event service composition root (#7871) 2024-08-15 08:33:46 +03:00
scheduler chore: add a class to handle aggreggation queries (#8446) 2024-10-18 11:11:22 +02:00
segment fix: add request body schema in update segment endpoint (#8085) 2024-09-05 08:17:04 +01:00
tag-type chore!: [v6] remove error.description in error messages (#7157) 2024-05-27 11:26:19 +02:00
traffic-data-usage feat: traffic visibility UI and store (#6659) 2024-03-22 11:54:33 +01:00
ui-observability-controller chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
index.ts refactor: composition root for personal dashboard service (#8280) 2024-09-27 10:44:27 +02:00