I have seen a couple threads about what everyone was doing now a days in regards to signed vs unsigned key values. It would seem that unsigned is optimal since it allows twice the number of rows for the same cost. Are there any benefits with signed keys?
Is there any standard consensus? Its seems like signed is the answer since "it has always been that way"
I prefer to set my columns as unsigned
if they cannot be negative. Besides the range factor that you mentioned, it also makes it clearer when reading the table definition.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With