Hello,
When a user hits reply the site takes over a minute (2/3 minutes) to reload the tab with the new post showing. If I browse the thread from another tab, the reply is visible much faster. Any ideas? I added some monitoring, it seems the SQL is taking a while to load. Posts table is confirmed InnoDB.
Hey, sounds like the page reload is getting hung up somewhere on the database side. Since the reply shows up quickly when you open the thread in another tab, it’s probably not the post itself that’s slow to save, but rather the page refresh after you hit “reply.” That usually means the query or process that runs after posting — like updating counts, notifications, or reloading all replies — is taking longer than it should. If your monitoring shows the SQL load spiking, it’s likely the query fetching or updating posts is slow or stuck waiting on something. In some cases, this happens because the posts table or related tables are under heavy locking or missing the right indexes, so even though the post saves fine, the page waits until everything finishes before it reloads. You might also be seeing delays if background tasks like email or webhook notifications are processed during that reload instead of running asynchronously. It’s one of those issues where everything technically works, but it feels sluggish because the database or app is doing too much right after a reply is posted.
I'll leave my answer here.
The problem was not the forum, the indexes were not built/present. Ask AI to build a monitoring tool to its own log on the server so its not polluted by other stuff. As for all activites and timings. Hit reply, get the log, feed it to AI and get the indexes required and apply them to the SQL database.