Skip to content

Use pagination without COUNT for issues/MRs

yorickpeterse-staging requested to merge issuables-pagination-without-count into master

What does this MR do?

This changes the pagination system of MR and issue index pages so they don't use COUNT(*) queries, at the cost of not displaying page numbers. This saves around 30 milliseconds per page on GitLab.com. Since the page numbers aren't that useful this is an easy performance win.

Screenshots (if relevant)

Screenshot_from_2017-08-22_14-13-53

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Merge request reports