datopian / metastore-lib

🗄️ Library for storing dataset metadata, with versioning support and pluggable backends including GitHub.
https://tech.datopian.com/versioning/
MIT License
10 stars 1 forks source link

[performance] Eliminate calls to PyGithub `__completeIfNeeded` #23

Open shevron opened 4 years ago

shevron commented 4 years ago

During the analysis for #17, we detected many cases where PyGitHub is missing some value that it needs, thus calling __completeIfNeeded which triggers an additional API call.

We should investigate all cases where this happens, to see if it can be avoided by proving some additional values when instantiating objects or calling methods, thus avoiding PyGitHub's need to fetch those values from the server.