Hey everyone<br><br><div class="gmail_quote">On Wed, Feb 13, 2013 at 8:30 PM, Matthew Dawson <span dir="ltr"><<a href="mailto:matthew@mjdsystems.ca" target="_blank">matthew@mjdsystems.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">.Especially since you remarked a duplicate is not a big deal, yes you should be<br></div>
fine.  For quick reference of the probabilities, Wikipedia offers:<br>
<a href="http://en.wikipedia.org/wiki/Universally_unique_identifier#Random_UUID_probability_of_duplicates" target="_blank">http://en.wikipedia.org/wiki/Universally_unique_identifier#Random_UUID_probability_of_duplicates</a><br>

<div class="im"><br></div></blockquote><div><br>Considering the probability of hitting a duplicate is so low. I'm going to be removing the check in master.<br><br>Unless someone objects?<br><br>Very simple benchmarks reveal that the time spent creating a resource drops from 8 msecs to 4-5sec, when one removes the check. And this is with an empty database. On a production system, with a large database, the difference would be a lot greater.<br>
</div></div><br clear="all"><br>-- <br><span style="color:rgb(192,192,192)">Vishesh Handa</span><br>