Area: Product
Sub-Area: Search Pagination
Applies to: Cloud
Issue
When you page through a very large set of search results, the last pages can load slowly, show no results, or never finish loading.
You Might Be Asking
- Why won't the last page of search results load?
- How can I access assets at the end of a very large result set?
- Is there a limit to search pagination?
Cause
Yes, there is a limit. The search UI pages through only the first 10,000 results. It clamps each request so that the start position plus the page size never goes past 10,000.
Release history: the DataHub Cloud v0.3.13 release notes list a known issue. Going to one of the last pages near 10,000 results can time out and show no results, because large offsets don't scale well in Elasticsearch. Release v0.3.13.2 also added a guard that stops requests for assets outside the 10,000 result boundary, such as going to the last page with 30 results per page. Release v0.3.12 sends you to page one when you change the page size, so the request can't go out of bounds.
Solution
- Narrow the result set so it has fewer than 10,000 results. Use the filters on the results page, or add terms to your query. You can filter by Domain, Owner, Tag, Glossary Term, Entity Type, Environment and more. You can also wrap a phrase in double quotes for an exact match. See Advanced filters and Search operators.
- If you need to read more than 10,000 results, use the
scrollAcrossEntitiesGraphQL API instead of paging through the UI. See Searching at scale.
Notes on the pagination controls:
- Search results use previous and next arrow buttons, compact page numbers and a results-per-page selector with 10, 20 and 30.
- The selector shows only when there are more results than fit on one page.