<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ES" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">As a continuation of my previous question about the URL parameters on the ‘next’ links, I followed the workaround of Saulius Grazulis and add the URL parameters manually to the ‘next’ URL. And it worked.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">However now I am finding that COD takes very long to generate a response from the queries I am making. I posted the doubts in
<a href="https://matsci.org/t/connection-to-cod-optimade-api-is-very-slow/39556/11">
https://matsci.org/t/connection-to-cod-optimade-api-is-very-slow/39556/11</a> and there was some discussion, but finally the suggestion was to contact this email directly. Basically, the doubt is if including response_fields that require returning the ‘P1’-d
 cell take longer to generate. I did some small tests with different queries that I re-post here in case.<o:p></o:p></span></p>
<div style="mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<p style="background:white"><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222">Queries with </span><code><span lang="EN-US" style="font-size:11.5pt;font-family:Consolas;color:#222222">response_fields</span></code><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"> and </span><code><span lang="EN-US" style="font-size:11.5pt;font-family:Consolas;color:#222222">nelements</span></code><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"><o:p></o:p></span></p>
<p style="margin:0cm"><span style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"><a href="https://www.crystallography.net/cod/optimade/v1/structures?filter=(elements%20HAS%20%20ALL%20%22Li%22)%20AND%20(nelements=3)&response_fields=lattice_vectors,cartesian_site_positions,species,species_at_sites"><span lang="EN-US">https://www.crystallography.net/cod/optimade/v1/structures?filter=(elements%20HAS%20%20ALL%20"Li")%20AND%20(nelements=3)&response_fields=lattice_vectors,cartesian_site_positions,species,species_at_sites</span></a></span><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"> (3,8
 sec)<br>
</span><span style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"><a href="http://www.crystallography.net/cod/optimade/v1/structures?filter=(elements%20HAS%20%20ALL%20%22Li%22,%20%22Co%22)%20AND%20(nelements=3)&response_fields=lattice_vectors,cartesian_site_positions,species,species_at_sites"><span lang="EN-US">http://www.crystallography.net/cod/optimade/v1/structures?filter=(elements%20HAS%20%20ALL%20"Li",%20"Co")%20AND%20(nelements=3)&response_fields=lattice_vectors,cartesian_site_positions,species,species_at_sites</span></a></span><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"> (1min)<br>
</span><span style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"><a href="http://www.crystallography.net/cod/optimade/v1/structures?filter=(elements%20HAS%20%20ALL%20%22Li%22,%20%22Co%22,%20%22O%22)%20AND%20(nelements=3)&response_fields=lattice_vectors,cartesian_site_positions,species,species_at_sites"><span lang="EN-US">http://www.crystallography.net/cod/optimade/v1/structures?filter=(elements%20HAS%20%20ALL%20"Li",%20"Co",%20"O")%20AND%20(nelements=3)&response_fields=lattice_vectors,cartesian_site_positions,species,species_at_sites</span></a></span><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"> (1min5sec)<o:p></o:p></span></p>
<p style="background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222">Queries with only </span><code><span lang="EN-US" style="font-size:11.5pt;font-family:Consolas;color:#222222">response_fields</span></code><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"><o:p></o:p></span></p>
<p style="margin:0cm"><span style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"><a href="http://www.crystallography.net/cod/optimade/v1/structures?filter=(elements%20HAS%20%20ALL%20%22Li%22)&response_fields=lattice_vectors,cartesian_site_positions,species,species_at_sites"><span lang="EN-US">http://www.crystallography.net/cod/optimade/v1/structures?filter=(elements%20HAS%20%20ALL%20"Li")&response_fields=lattice_vectors,cartesian_site_positions,species,species_at_sites</span></a></span><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"> (7.2
 sec)<br>
</span><span style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"><a href="http://www.crystallography.net/cod/optimade/v1/structures?filter=(elements%20HAS%20%20ALL%20%22Li%22,%22Co%22)&response_fields=lattice_vectors,cartesian_site_positions,species,species_at_sites"><span lang="EN-US">http://www.crystallography.net/cod/optimade/v1/structures?filter=(elements%20HAS%20%20ALL%20"Li","Co")&response_fields=lattice_vectors,cartesian_site_positions,species,species_at_sites</span></a></span><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"> (1min14sec)<br>
</span><span style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"><a href="http://www.crystallography.net/cod/optimade/v1/structures?filter=(elements%20HAS%20%20ALL%20%22Li%22,%22Co%22,%22O%22)&response_fields=lattice_vectors,cartesian_site_positions,species,species_at_sites"><span lang="EN-US">http://www.crystallography.net/cod/optimade/v1/structures?filter=(elements%20HAS%20%20ALL%20"Li","Co","O")&response_fields=lattice_vectors,cartesian_site_positions,species,species_at_sites</span></a></span><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"> (1min11sec)<o:p></o:p></span></p>
<p style="background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222">Queries without any of the former<o:p></o:p></span></p>
<p style="margin:0cm"><span style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"><a href="http://www.crystallography.net/cod/optimade/v1/structures?filter=(elements%20HAS%20%20ALL%20%22Li%22)"><span lang="EN-US">http://www.crystallography.net/cod/optimade/v1/structures?filter=(elements%20HAS%20%20ALL%20"Li")</span></a></span><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"> (1sec)<br>
</span><span style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"><a href="http://www.crystallography.net/cod/optimade/v1/structures?filter=(elements%20HAS%20%20ALL%20%22Li%22,%22Co%22)"><span lang="EN-US">http://www.crystallography.net/cod/optimade/v1/structures?filter=(elements%20HAS%20%20ALL%20"Li","Co")</span></a></span><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"> (1sec)<br>
</span><span style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"><a href="http://www.crystallography.net/cod/optimade/v1/structures?filter=(elements%20HAS%20%20ALL%20%22Li%22,%22Co%22,%20%22O%22)"><span lang="EN-US">http://www.crystallography.net/cod/optimade/v1/structures?filter=(elements%20HAS%20%20ALL%20"Li","Co",%20"O")</span></a></span><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"> (1,1sec)<o:p></o:p></span></p>
<p style="margin:0cm"><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"><o:p> </o:p></span></p>
<p style="margin:0cm"><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222">You can see that querying for more elements in the compositions takes much longer, with little difference on wether I ask for a limited nelements
 or no.<o:p></o:p></span></p>
<p style="margin:0cm"><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"><o:p> </o:p></span></p>
<p style="margin:0cm"><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222">Is there a specific reason behind this?
<o:p></o:p></span></p>
<p style="margin:0cm"><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"><o:p> </o:p></span></p>
<p style="margin:0cm"><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222">Best regards,<o:p></o:p></span></p>
<p style="margin:0cm"><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222"><o:p> </o:p></span></p>
<p style="margin:0cm"><span lang="EN-US" style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#222222">Oier.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<br />-- 
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.
</body>
</html>