Project

General

Profile

Actions

action #94111

closed

Optimize /api/v1/jobs

Added by tinita over 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Feature requests
Target version:
Start date:
2021-06-16
Due date:
% Done:

0%

Estimated time:

Description

Currently that endpoint is accessible by everyone, and without parameters it returns up to 10k jobs.

Additionally it executes several SELECTS for each of the 10k jobs, resulting in about 40k.

This can take very long, for example I saw 150s on o3 today. So with only one HTTP request you can keep the webserver and DB occupied for 150s.

Ideas:

  • Test if the same optimization as in #93925 helps
  • Maybe choose a lower limit than 10k?
  • Restrict requests with a large limit to authenticated users

Related issues 2 (0 open2 closed)

Related to openQA Project (public) - action #93925: Optimize SQL on /tests/overviewResolvedtinita2021-06-12

Actions
Related to openQA Infrastructure (public) - action #107875: [alert][osd] Apache Response Time alert size:MResolvedtinita2022-03-04

Actions
Actions

Also available in: Atom PDF