mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
71fff44c0b
getNetworksFromStore reads networks and endpoint_cnt from the kvstores. endpoint_cnt especially is read in a for-loop for each network and that causes a lot of stress in poorly performing KV-Stores. This fix eases the load on the kvstore by fetching all the endpoint_cnt in a single read and the operation is performed on it. Signed-off-by: Madhu Venugopal <madhu@docker.com> |
||
---|---|---|
.. | ||
cache.go | ||
datastore.go | ||
datastore_test.go | ||
mock_store.go |