On 13/03/11 05:02, Andy wrote:
> I have a model that may have a lot (billions) of records. I understand
> that the "id" field of a model is defined as a 32-bits int. So it may
> not be big enough.
> 
> Is it safe to just ALTER the database schema to change the "id" field
> from int to bigint? Would Django break? 

It would be best to also set your id field on your model to be a
BigIntegerField at the ORM level if you're doing that.

http://docs.djangoproject.com/en/1.2/ref/models/fields/#bigintegerfield

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to