[RTFACT-19629] docker push is slow when layers exist in lots of locations in Artifactory Created: 14/Jul/19 Updated: 23/Jan/20 Resolved: 10/Nov/19
|Project:||Artifactory Binary Repository|
|Reporter:||Ariel Kabov||Assignee:||Inbar Tal|
|Sprint:||Pam - Quality 5|
When uploading a Docker image to Artifactory, for each layer we first check if it exists already in the DB.
The current SQL query that is sent by Artifactory in order to check existence is:
In big environments, the above query can take a very long time to respond due to layers being shared by many images.
I believe the current reason we pull the entire list, is that then we need to find an entry which the deploying user has permissions for.
Possible ways to improve:
This is the stacktrace of where we spent most time of the push: