Monday, January 20, 2020

Re: Primary Key

I'm not sure a six digit model would support 10bn unique values. 

On Mon, Jan 20, 2020 at 4:01 AM Soumen Khatua <soumenkhatua258@gmail.com> wrote:
Hi Folks,

I want to generate unique 6 digit primary key for django models and I want to generate this for 10 billon users. So guys please could you tell me How I can do that?

I tried UUID module but it's generating some big numbers.

Thank you

Regards,
Soumen

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPUw6WZSz%3D0sPRJ40VTVHQRD8GtHh3m2zb64Te4ti8RF2f23Vg%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABd3-AAjozMfQE5sfr-jcW%2BKi32sJTAy7bFQxN4yNEsh7eHg5w%40mail.gmail.com.

No comments:

Post a Comment