diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-24 12:56:10 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-24 12:56:10 +0200 |
commit | a3f64b195effa4ac5fca657df3e74696158416b1 (patch) | |
tree | 6a0e0dc1c49b8beff26d0967b17fe42b356c8788 /lib/api/api.rb | |
parent | a5f23435f7d8b8040ed6b80322ccea3fa8323468 (diff) | |
download | gitlab-ce-a3f64b195effa4ac5fca657df3e74696158416b1.tar.gz |
Improve performance for merge_request#show page
* store @participants in variable
* store result of subscribed? call into variable
In total it reduce amount of SQL queries for merge_request with 10
comments/participants twice.
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/api/api.rb')
0 files changed, 0 insertions, 0 deletions