<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:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Arial",sans-serif;
        color:black;
        mso-fareast-language:EN-US;}
span.E-MailFormatvorlage34
        {mso-style-type:personal-compose;
        font-family:"Arial",sans-serif;
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Arial",sans-serif;
        color:black;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif">Greetings Dear QGIS Developer Community,<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif">We have a problem with layer relations. In our project, we have many layers (>100) with a lot of relations (up to 10 per layer), all of them bidirectional. Bidirectional means,
 when layer A references B, layer B always references A, too. The layers are based on a PostGIS/Postgres database.<br>
When we open the form view of the attribute table, the relations are all expanded in the GUI and loaded from database immediately. This means loading times are sometimes longer than a minute, while QGIS freezes. We were looking into possibilities to change
 the default behaviour, so the relations are initially collapsed (and loaded lazily) instead of extended, when the form in the attribute table opens.<br>
<br>
However, we couldn't find any option to do this programmatically in PyQGIS or to manipulate the attribute table settings in the Qgis.ini. Alternatively, it would help if it would be possible to limit the recursion depth from Python. Meaning, a relation in a
 sub-form should not continue to load its respective relations and don’t expand them neither.<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif">Could you help us to find a solution to our problem? We would be grateful for any proposals!<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif">Best Regards<br>
Dominique Dorscheid<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>