My Host changed MySQL Auto_increment column to two -


after recent change host has made, auto_increment columns incrementing two. after emailing host this, said:

this sites located on our new load balanced shared platform. behaviour expected on new cluster. auto increment not affect performance or working of tables, , can still counts on tables , use incremented columns in same way. if check directly on database see these incrementing two.

eventually behaviour applied our servers perform update on our entire platform.

what know: saying right? in mind auto increment column should increment 1 , not two!!

this going cause few issues older sites use generate order numbers etc.

everything else have got continue work ok, bit annoying.

disregarding specifics of host, if piece of code depends on auto increment going 1 one , not having holes, code wrong because never guarantee.

the guarantees have column not have duplicates, , new rows have next sequence value column; last value + 1, not guaranteed - guarantee next one, won't go , fill holes example.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -