Improve pagination for note serialization during project export
This is a follow-on from <https://gitlab.com/gitlab-org/gitlab/-/issues/504039>, a catch-all issue to fix [instances of query timeouts](https://log.gprd.gitlab.net/app/r/s/BoA7E) during project import/export. ```sql SELECT notes.id FROM notes WHERE notes.project_id = PROJECT_ID AND notes.noteable_type = 'Commit' ORDER BY notes.id ASC LIMIT 100 ``` This is triggered from [the this line of code](https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/import_export/json/streaming_serializer.rb#L177). The catch is that [the notes table is above the limit for the number of indexes](https://gitlab.com/gitlab-org/gitlab/blob/56587219c9511e965536bfc238210c9cb068ae03/rubocop/rubocop-migrations.yml), so we're discouraged (prohibited?) from adding more. If possible, we'll need to [update the pagination technique](https://docs.gitlab.com/development/database/pagination_guidelines/) we use to better leverage existing indexes on this table.
issue