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