trafficcontrol icon indicating copy to clipboard operation
trafficcontrol copied to clipboard

Improve the response time for v3/server endpoint

Open tcfdev opened this issue 3 years ago • 0 comments

This Improvement request (usability, performance, tech debt, etc.) affects these Traffic Control components:

  • Traffic Ops

Current behavior:

The response time for GET v3/servers is O(n) in relation to the number of servers. It looks like we loop through every server and submit a subsequent DB query for a profile name to allow for backward compatibility with Layered Profiles feature.

New behavior:

Prefer the response time for GET v3/servers to be O(1) in relation to the number of servers. Remove the loop for n servers for profile info.

tcfdev avatar Dec 06 '22 21:12 tcfdev