Hey Ricardo,
      I always thought that *guid.comb* was better than *guid *strategy if
you want to improve performance.
Like this post link
<http://nhforge.org/blogs/nhibernate/archive/2009/03/20/nhibernate-poid-generators-revealed.aspx>
said,
*Guid.comb *turns out to have a lesser fragmentation in the table when you
compare it *guid *strategy.

Would you mind to explain further your point 3) ?

Thanks in advance!

Roman


On Mon, Sep 29, 2014 at 5:39 PM, Ricardo Peres <[email protected]> wrote:

> Hi,
>
> Some remarks:
> 1) you don't need two Save calls if you configure cascading from one
> entity's property to the other entity (company to contact); try "all";
> 2) the way you are deleting objects is vary bad, in performance terms;
> see, for example,
> http://weblogs.asp.net/ricardoperes/deleting-entities-in-nhibernate;
> 3) if you don't need GuidComb (and I guess not) you can use other Guid
> flavors for a slight performance improvement - GuidComb ids are ordered
> temporally.
>
> RP
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/nhusers.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Román

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to