AutoField vs BigAutoField

Question by malero

What is the difference between an AutoField and a BigAutoField? The documentation says that they're both 64-bit values, but BigAutoField has a higher maximum value(9,223,372,036,854,775,807).

Answers

  • I believe AutoField is based on the IntegerField and the BigAutoField is based on the BigIntegerField.

    Type Minimum Maximum
    SmallAutoField 1 32,767
    AutoField 1 2,147,483,647
    BigAutoField 1 9,223,372,036,854,775,807

    Answered by boomerkin