<div dir="ltr">I tried just now, I replaced the create({...}) with populate([{...}]) but the result is same. When I turn on DBI_TRACE I clearly see the SELECT FROM address table, which I want to avoid.<div><br></div><div>Roman</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-03 19:08 GMT+01:00 Andrew Beverley <span dir="ltr">&lt;<a href="mailto:andy@andybev.com" target="_blank">andy@andybev.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sat, 3 Feb 2018 17:05:06 +0100 Roman Daniel wrote:<br>
&gt; When I create customer together with address and pass the adress as<br>
&gt; hashref (which is very comfortable), the address resultset is first<br>
&gt; searched for the values passed and only if the address is not found,<br>
&gt; new address is created.<br>
&gt;<br>
&gt; Is there a way to make DBIC skip the find and always create the<br>
&gt; related record (while passing related record as plain hashref)?<br>
<br>
</span>Have you tried using populate() instead of create()?<br>
<br>
Andy<br>
<br>
______________________________<wbr>_________________<br>
List: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class" rel="noreferrer" target="_blank">http://lists.scsys.co.uk/cgi-<wbr>bin/mailman/listinfo/dbix-<wbr>class</a><br>
IRC: <a href="http://irc.perl.org#dbix-class" rel="noreferrer" target="_blank">irc.perl.org#dbix-class</a><br>
SVN: <a href="http://dev.catalyst.perl.org/repos/bast/DBIx-Class/" rel="noreferrer" target="_blank">http://dev.catalyst.perl.org/<wbr>repos/bast/DBIx-Class/</a><br>
Searchable Archive: <a href="http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk" rel="noreferrer" target="_blank">http://www.grokbase.com/group/<wbr>dbix-class@lists.scsys.co.uk</a><br>
</blockquote></div><br></div>