User search query take a long time

This github issue appears to be related: Performance issue using LIMIT and OFFSET in search users query · Issue #5288 · pkp/pkp-lib · GitHub