Making a local copy of the materials project database

Hi! In the documentation, it mentions that:

For large, long-running, or frequently duplicated queries, we ask that you make a local copy and retrieve the data using the API only once. This will speed up your own analyses and also avoid unnecessary loads on the Materials Project servers.

Could anyone point me to any materials with more details on how exactly I can create my only local copy of the materials project database, and also query this local copy with mp-api? Thanks in advance!

Running your own database backend and API isn’t trivial. If you’re running a variety and unpredictable set of queries to retrieve small subsets of the data, you should definitely continue to use MPRester against our API. The paragraph in the docs only tries to ask users who find themselves running the same query or downloading everything repeatedly, to write the data to a file and subsequently load it from the file when running their analyses (potentially in parallel on high performance computing). HTH.