Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added ,
Empty file.
4 changes: 4 additions & 0 deletions services/ui_backend_service/api/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ async def get_all_runs(self, request):
# due to lack of pg statistics on JSONB fields. To battle this, first execute
# subquery of ordered list from runs_v3 table in and filter by tags on outer query.
# This needs more research in the future to further improve performance.
_, limit, offset, _, _, _ = pagination_query(request)

# Prevent very large payloads
limit = min(limit, 100)
builtin_conditions, _ = builtin_conditions_query(request)
has_tag_filter = len([s for s in builtin_conditions if 'tags||system_tags' in s]) > 0
if has_tag_filter:
Expand Down