Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Advanced-java] Fast Persistence of Unique Numbers


  • From: KC_Eilander@xxxxxxxx (KC_Eilander@xxxxxxxx)
  • Subject: [Advanced-java] Fast Persistence of Unique Numbers
  • Date: Fri, 18 Jan 2002 08:41:56 -0700


Can you just use an existing UUID or GUID utility instead of re-invenint
the wheel?

-KC





"Jeff Singer" <jeff.singer@xxxxxxxxxx>@lists.xcf.berkeley.edu on 01/18/2002
07:10:29 AM

Sent by:  advanced-java-admin@xxxxxxxxxxxxxxxxxxxxxx


To:   <advanced-java @lists.xcf.berkeley.edu>
cc:
Subject:  [Advanced-java] Fast Persistence of Unique Numbers


Hi All

Sorry if this has been asked before.

I need to generate a unique 9 or 10 digit number. Any ideas. I do realize
the numbers will rollover after a certain amount of time.

The easy solution for us is to start a counter at 1 and increment. I am
just
worried about persistence, if the process is terminated.

Our limitation is speed. It is possible to use a database to do this quite
easily, but I need a fast method of doing this without using a database.

So, what is the quickest way to persist a number. A file we update?

Thanks in advance
Jeff Singer

_______________________________________________
Advanced-java mailing list
Advanced-java@xxxxxxxxxxxxxxxxxxxxxx
http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java