since the source of "high" is concentrated in one place.... ;) On Fri, Sep 10, 2010 at 8:58 AM, Thomas Koch <[email protected]> wrote:
> Hi - I use the hi-lo generator for my domain and have a question > regarding its use in multiple processes. > > I have a WCF project that is the primary power behind generating > entities and saving them to the database with NHibernate and HI-LO. I > also have an administrative application that sometimes generate > entities for the domain. > > Since these two applications live en separate processes, is there a > risk here of them creating overlapping id's ? > > As far as I have understood, each session factory will update the > "hibernate_unique_key" table and generate ids based on the "high" > value returned. > > Can the reading and updating of this "next high value" be considered > an atomtic operation even though its done in separate processes? > > Regards > Thomas > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- Fabio Maulo -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
