MySQL Generate unique identifier before insert -
i writing program logs packets of data mysql database.
the program forwards these packets , speed absolutely critical. want able forward these packets posible.
logging database done in background batch inserts of queued packets.
i don't want wait database write packets disc before forwarding them, need way of identifing individual packets.
how can this? basicaly need generate unique identifier each packet without using auto_increment have wait database then.
the unique thing individual packets time in came in, using time identifer seems bad idea (for example if time gets set backwards ntp/user/leapsecond/etc...)
is there way? can reserve unique identifers database without needing go disc?
Comments
Post a Comment