Should PHP sleep after a MySql Insert when that INSERT is required right after success? -


php - > inserts value mysql database on file1.php

-- success: redirects file2.php?id=(last_id) --

php - > requires (last_id) work fine.

question:

should php sleep 1 second before redirecting, when mentioned database contains 100k+ rows, avoid possible problem, or in-necessary?

i tried , works fine without sleeping, doesn't mean work.

thanks information may throw in, , taking time.

no, shouldn't sleep. call synchronous.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -