mysql - Performance based on searching a integer or a long string (unique) in database? -
i have 5 columns in table in database , 2 unique (one integer , string).
integer like
1,5,6,7,9,0
, string http://exmaple.com/book-on-the-self-no-2
.
now column should used searching rows??? how impact performance? database sql or mysql?
thank..
generally speaking, less comparisons , manipulation of data (like reading disk) mysql has make, faster it'll go.
which means searching on integers (a couple of bytes) faster searching on (possibly long) strings.
in case, sidenote : don't forget adding index on field searching on -- depending on kind of query you're doing, it'll speed things lot.
Comments
Post a Comment