Improve auto-pagination when running a query in the query editor