<html 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=utf-8">
<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:10.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Consolas",serif;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="en-FR" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">@Julien sorry for not being clear, I used the Debugging/Developement tool</span><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"> </span><span lang="EN-US" style="font-size:11.0pt;font-family:"Apple Color Emoji";mso-fareast-language:EN-US">😊</span><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">@René-Luc Thanks I’ll look into it.
</span><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">QGIS-Developer <qgis-developer-bounces@lists.osgeo.org> on behalf of René-Luc Dhont via QGIS-Developer <qgis-developer@lists.osgeo.org><br>
<b>Date: </b>Wednesday, 16 November 2022 at 10:06<br>
<b>To: </b>qgis-developer@lists.osgeo.org <qgis-developer@lists.osgeo.org><br>
<b>Subject: </b>Re: [QGIS-Developer] Project loader profiler Postgres Layers<o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt">Hi Rémi,<br>
<br>
During the provider creation, a lot of SQL requests are made to check a lot of thing even if the use estimated metadata is checked :<br>
* Fields list<br>
* geometry type<br>
* primary key<br>
* extent<br>
* capabilities (read, insert, update, delete)<br>
<br>
You can take a look at these PRs to have an idea on all the SQL request made at the creation :<br>
* <a href="https://github.com/qgis/QGIS/pull/49440">https://github.com/qgis/QGIS/pull/49440</a><br>
* <a href="https://github.com/qgis/QGIS/pull/50186">https://github.com/qgis/QGIS/pull/50186</a><br>
<br>
Regards,<br>
René-Luc<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Le 16/11/2022 à 09:55, Julien Cabieces via QGIS-Developer a écrit :<o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre><o:p> </o:p></pre>
<pre>Hi Remi,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Which profiler are you talking about ?<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Did you try to use the the new Debugging/Developement tool ? It's new<o:p></o:p></pre>
<pre>since QGIS 3.26 and will give you the list of requests and the time<o:p></o:p></pre>
<pre>spent for each one when loading a project/layer or opening the attribute<o:p></o:p></pre>
<pre>table.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Regards,<o:p></o:p></pre>
<pre>Julien<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
</body>
</html>