<div dir="auto"><div dir="auto">Hello,</div><div dir="auto"><br></div><div dir="auto">In my project I need to compare the result of the concatenation of two fields, A and B, in common between two different layers.</div><div dir="auto"><br></div>For he moment, I'm using a calculated field in each layer to concatenate the two fields. Then a sql request in a virtual layer compare them.<div dir="auto"><br><div dir="auto">Improving my sql abilities, I noticed that I could do that with a single virtual layer and a sql request with two sub requests to concatenate the A and B fields and the primary request to compare them.</div><div dir="auto"><br></div><div dir="auto">My question : </div><div dir="auto"><br></div><div dir="auto">1 - what is the more lightweight solution with large sets of data ?</div><div dir="auto">I noticed that sql requests could seriously slow down qgis. But calculated fields have to be calculated too...</div><div dir="auto"><br></div><div dir="auto">2 - I do not really master external database solutions yet (I'm using geopackage and project relations between tables). In fine, is a postgresql DB could be a solution in term of velocity ? Are the Qgis VL layers have an equivalent in that kind of database, or must I create them anyway into the SIG ?</div><div dir="auto"><br></div><div dir="auto">Thanks for any help.</div><div dir="auto"><br><div data-smartmail="gmail_signature" dir="auto">Mathieu G<br><br></div></div></div></div>