E
E
Eugene2011-01-03 23:20:07
MySQL
Eugene, 2011-01-03 23:20:07

Using unsigned in MySQL indexes?

Is there any performance gain/loss when using the UNSIGNED attribute on primary keys?
And in general, is there any use for UNSIGNED in indexes, other than increasing the range of numbers?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2011-01-03
@Agent_J

No.

A
Alexey Shein, 2011-01-04
@conf

So just "No" without any arguments?
As far as I remember, unsigned int improves the performance of indexes, and there was an article on mysqlperformanceblog.com about this (I can’t find it right now, but here is www.mysqlperformanceblog.com/2008/12/22/high-performance-click-analysis- with-mysql/ for example, there is a topic here, search for unsigned). You can also read their book High Performance Mysql, preferably part 2.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question