Hi again,
On 20/01/2020 10.22, Kasper Laudrup wrote:
You want to generate a number between 0 and 1.000.000 that should be
unique for 10.000.000.000 instances?
I hope you can understand why that doesn't make any sense.
Thinking a bit more about, you don't specify whether it should be in
base 10.
If use use base 64 you can represent 68.719.476.736 values which is
enough for representing 10.000.000.00 unique values.
You would still have to generate them so they don't collide with an
existing value (which, unlike a UUID, is bound to happen).
Kind regards,
Kasper Laudrup
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/3a55fb7a-56f3-72cc-8049-13bf4a1deafe%40stacktrace.dk.