Premature optimization. UUIDs aren't slow. On Monday, February 9, 2015, Matthew Hall <[email protected]> wrote:
> On Sun, Feb 08, 2015 at 11:07:59AM +0100, Michael Osipov wrote: > > How would you propose to use it? > > I would still need a random number or do you recomment to use a static > one > > and simply increment during the lifetime of the application? > > > > If so, thing might cause trouble in the future because I would probably > > store the session information in a database for analysis issues and woudl > > have collisions. > > > > Michael > > Then you either have to use real big random's like UUID and accept it'd be > slow, or derive the numeric values from a native DB counter (for example, a > Redis counter, or a PostgreSQL sequence data type). > > Matthew. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] <javascript:;> > For additional commands, e-mail: [email protected] > <javascript:;> > >
