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: jeff.singer@xxxxxxxxxx (Jeff Singer)
  • Subject: [Advanced-java] Fast Persistence of Unique Numbers
  • Date: Fri, 18 Jan 2002 16:10:29 +0200

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