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

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -