-
Notifications
You must be signed in to change notification settings - Fork 478
Closed
Labels
enhancementThis issue describes a new feature, improvement, or optimization.This issue describes a new feature, improvement, or optimization.
Milestone
Description
Is your feature request related to a problem? Please describe.
When making the API call to get a single server ID here the implementation will scan all severs of that type. When this is used in conjunction with other code that is calling this method per server in a loop it will have O(M*N) peformance.
Describe the solution you'd like
Construct a service lock path for the individual sever being requested and see if it has a lock using that service lock path. Could add a new method to ServiceLockPaths to do this.
Describe alternatives you've considered
Could remove the method from the public API and leave only methods in the API where its known that all servers will be scanned.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementThis issue describes a new feature, improvement, or optimization.This issue describes a new feature, improvement, or optimization.