Unlimited Sequences

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

User avatar
jig
Ebase User
Posts: 30
Joined: Sun Oct 09, 2011 10:16 am
Location: UK

Unlimited Sequences

#1

Postby jig » Fri Mar 08, 2013 12:49 pm

Hi All,

Has anyone used anything other than 'Ebase sequence' to generate unique numbers?

After some trial & error, we found out that the highest number you can generate using a 'Ebase sequence' is 2147483647 (2 billion....).

2 billion+ is a lot of numbers but would love to hear if someone has come-up with a solutions/approach to generate unlimited sequence numbers (numeric/alpha numeric).

Regards
Jignesh
0 x
Regards,
Jignesh

Jignesh Vaducha, MSc, MCA
Mobile: +44 (0) 77 325 47 112
Telephone: +44 (0) 1462 488 311
Email: [email protected]

Steve
Moderator
Moderator
Posts: 423
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

#2

Postby Steve » Fri Mar 08, 2013 3:06 pm

Hi Jig,

There are a few possibilities..

You could do similar to Ebase and write to a database. Note you will have to wrap it in a transaction and lock the sequence. Easiest way to do this is by synchronising a Java method to do it. There will be restrictions on the column length.

Another way is the write the next sequence to a file, then you will get no restrictions. Note that the same applies... you will need to lock the method to before reading and writing to the file.

Steve
0 x

User avatar
jig
Ebase User
Posts: 30
Joined: Sun Oct 09, 2011 10:16 am
Location: UK

#3

Postby jig » Mon Mar 11, 2013 5:14 pm

Thanks Steve!
0 x
Regards,
Jignesh

Jignesh Vaducha, MSc, MCA
Mobile: +44 (0) 77 325 47 112
Telephone: +44 (0) 1462 488 311
Email: [email protected]


Who is online

Users browsing this forum: No registered users and 50 guests