<div dir="ltr"><div>Hi all,</div><div>I'm facing very slow opening of project files for a customer here in QGIS 3.4.5. Something like 7 minutes, against 30 s in QGIS 2.18. <br></div><div><br></div><div> We are still investigating to narrow it down, but I faced a first query in the logs that I fail to understand. <br></div><div><br></div><div>QGIS emits this at a point:</div><div><br><p class="MsoNormal">select count(*)<span></span></p>
<p class="MsoNormal">from information_schema.tables <span></span></p>
<p class="MsoNormal">where table_name = 'qgis_editor_widget_styles' ;</p></div><div><br></div><div>And this query is long in our context, 1.7s, because of a very high number of tables and schemas in that production DB. <br></div><div><br></div><div>I found at [0] in the postgres provider where it comes from, I found the associated PR [1], but I fail to understand in what workflow this table is created using QGIS, and what it is used for.</div><div><br></div><div>Can someone put some light here ? </div><div><br></div><div>Best regards</div><div><br></div><div>Régis<br></div><div><br></div><div>[0] <a href="https://github.com/qgis/QGIS/blob/master/src/providers/postgres/qgspostgresprovider.cpp#L1083" target="_blank">https://github.com/qgis/QGIS/blob/master/src/providers/postgres/qgspostgresprovider.cpp#L1083</a></div><div>[1] <a href="https://github.com/qgis/QGIS/pull/3439">https://github.com/qgis/QGIS/pull/3439</a> <br></div></div>