commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Carman <ja...@carmanconsulting.com>
Subject Re: [POOL2] Pooling mutable objects
Date Mon, 09 Feb 2015 11:37:32 GMT
Premature optimization.  UUIDs aren't slow.

On Monday, February 9, 2015, Matthew Hall <mhall@mhcomputing.net> 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: user-unsubscribe@commons.apache.org <javascript:;>
> For additional commands, e-mail: user-help@commons.apache.org
> <javascript:;>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message