Ahhhhhh. Gotcha. But why does it make id 58058 and not 58000 (for a hi value of 58)?
It seems to be doing [(hi * maxlo) + hi] But doesn't just [hi * maxlo] seem more sensible? And also, I suppose the value of maxlo depends on the application. Is it ok to go as low as 100? On May 6, 3:12 pm, Jason Meckley <[email protected]> wrote: > this is expected. the high value is unique to the entity. > > On May 6, 2:50 pm, nicklang <[email protected]> wrote: > > > > > > > Hi, > > > I'm using hilo for my id generation - and here is my confusion... > > > I'm updating 3 entities (corresponding to 3 tables). > > > I checked the mysql log and I see 3 select/update queries to the hilo > > table before the real queries - I thought the idea of hilo was that it > > only needs to get the hi once?? > > > I'm using the value of 1000 for maxlo - I'm not sure if this is > > reasonable. The way I understand it is that the client gets the hi > > once say its value is 58 - then it multiplies by the maxlo and > > increments to generate more ids - for example 58001, 58002, 58003... > > > But instead I'm getting 58058, 59059, 60060 - what is up with that?? > > > Any insight is appreciated! > > > -- > > 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 > > athttp://groups.google.com/group/nhusers?hl=en. > > -- > 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 > athttp://groups.google.com/group/nhusers?hl=en. -- 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.
