Too much data requested in one query


Hi, I am trying to download all compounds in MP data including their Pretty formula and CIF. I am getting the following error. Is there any better idea to do so?

reak down your query into sub-queries.", “version”: {“db”: “2018.11”, “pymatgen”: “2018.11.6”, “rest”: “2.0”}, “created_at”: “2018-11-12T14:44:46.350284”, “traceback”: “Traceback (most recent call last):\n File \”/var/www/python/matgen_prod/materials_django/rest/\", line 94, in wrapped\n d = func(*args, **kwargs)\n File \"/var/www/python/matgen_prod/materials_django/rest/\", line 176, in query\n \“Too much data requested in one query.\”\ Too much data requested in one query. Please break down your query into sub-queries.\n"}’

Any suggestions would be really appreciated.


There is a good chance that the next release of pymatgen will auto-chunk your query for you. See this pull request, and in the meantime you can reference the proposed changes to MPRester.query and use that code to break down your current query.



Thank you. I will try it.