Projects::NotesController#create is slow
Dev: https://dev.gitlab.org/gitlab/gitlabhq/issues/2463
It takes almost a second. Check for performance issues
Yorick
How was this measured as being slow? Is it slow because of the database, because of Azure, or something else? I took a quick look at the Note model but can't find anything that immediately stands out. The same goes for the controller code. Having said all that I'm not sure if creating notes taking a second is a really big problem, certainly not bigger than improving generic page loading times for example.
Job
it's one of the most done queries, afaik. And it has a very high annoyance ratio, as it's the one thing we hit many times a day. Shame you don't see obvious improvements. I agree that page load in general should be low.
Dmitriy
Is it slow because of the database, because of Azure, or something else? Yorick, its not related to GitLab.com specific. I think it makes a lot of sql queries in https://dev.gitlab.org/gitlab/gitlabhq/blob/master/app/services/notes/create_service.rb.
Having said all that I'm not sure if creating notes taking a second is a really big problem
We render new comment only after POST request succeed. That means after I press Add comment button I need to wait 1+ second to see my comment posted. That's bad for user experience.