trafficcontrol
trafficcontrol copied to clipboard
Improve the response time for v3/server endpoint
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.