In stackoverflow, and some other websites where people submits questions or posts, there is a delay of 20 seconds before the post displayed, is that means the post is delayed by the SQL server, or the website does not allows instant posting, or it’s a CDN cache matter ?
And the important thing , why there is a delay, is it in order to make the server faster, or to give the moderators more time to check the posts?
It is due to caching.
There is no actual delay doing the insert, it’s just that the page you are viewing is actually an old snapshot of the data stored in memory, this dramatically improves performance for database bound task, and it’s extremely important for performance.