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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -