[ci skip] Improve performance of getting last note
[ci skip] Improve performance of getting last note

stoplightio/gitlabhq,iiet/iiet-git,dreampet/gitlab,axilleas/gitlabhq,iiet/iiet-git,stoplightio/gitlabhq,iiet/iiet-git,mmkassem/gitlabhq,axilleas/gitlabhq,axilleas/gitlabhq,jirutka/gitlabhq,mmkassem/gitlabhq,jirutka/gitlabhq,dreampet/gitlab,jirutka/gitlabhq,axilleas/gitlabhq,stoplightio/gitlabhq,dreampet/gitlab,jirutka/gitlabhq,stoplightio/gitlabhq,dreampet/gitlab,mmkassem/gitlabhq,iiet/iiet-git,mmkassem/gitlabhq