1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-18 11:14:57 +02:00
unleash.unleash/src/lib/features/feature-search
Jaanus Sellin f3df3a31bf
feat: fix paging in sql by using common table expressions (#5343)
Optimizations:

1. Removed extra round trip to database  to count environments
2. Removed extra round trip to database to count features

Fixes:

Currently, we were using a very optimistic query to set correct limit
and offset. This breaks as soon we we join tags.

` query = query
            .select(selectColumns)
            .limit(limit * environmentCount)
            .offset(offset * environmentCount);` 

The solution was to use common table expressions, so we could count and
rank features.
2023-11-16 10:34:44 +02:00
..
createFeatureSearchService.ts feat: add feature search service (#5149) 2023-10-25 15:18:52 +02:00
feature-search-controller.ts feat: sort favorites on the backend (#5326) 2023-11-14 09:22:35 +02:00
feature-search-service.ts feat: connect search and filter with server api (#5297) 2023-11-08 14:19:40 +02:00
feature.search.e2e.test.ts feat: fix paging in sql by using common table expressions (#5343) 2023-11-16 10:34:44 +02:00