Re: Re: Why is IPAddressField a char(15) instead of an int?

2006-12-17 Thread Matthew Flanagan
On 18/12/06, Don Arbow <[EMAIL PROTECTED]> wrote: > > On Dec 17, 2006, at 9:16 AM, Jamie wrote: > > > > Hello, > > > > I'm just wondering if there's a specific reason why IPAddressField is > > defined as a 15-character string instead of a 32-bit integer? Using an > > integer would reduce the

Re: Why is IPAddressField a char(15) instead of an int?

2006-12-17 Thread Don Arbow
On Dec 17, 2006, at 9:16 AM, Jamie wrote: > > Hello, > > I'm just wondering if there's a specific reason why IPAddressField is > defined as a 15-character string instead of a 32-bit integer? Using an > integer would reduce the storage size by 15 bytes to only four bytes > and make it easier to

Why is IPAddressField a char(15) instead of an int?

2006-12-17 Thread Jamie
Hello, I'm just wondering if there's a specific reason why IPAddressField is defined as a 15-character string instead of a 32-bit integer? Using an integer would reduce the storage size by 15 bytes to only four bytes and make it easier to calculate ranges. Additionally, on MySQL, it's about 30%