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
Post a Comment