From 1952f59f9f283e0f0758657c250a9f7a786d3bdc Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 27 Jul 2020 16:45:06 -0700 Subject: search: smaller default result set --- fatcat_scholar/search.py | 2 +- notes/scaling_works.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py index 1a543d9..c0e8189 100644 --- a/fatcat_scholar/search.py +++ b/fatcat_scholar/search.py @@ -223,7 +223,7 @@ def do_fulltext_search( raise ValueError(f"Unknown 'sort_order' parameter value: '{query.sort_order}'") # Sanity checks - limit = min((int(query.limit or 25), 100)) + limit = min((int(query.limit or 15), 100)) offset = max((int(query.offset or 0), 0)) if offset > deep_page_limit: # Avoid deep paging problem. diff --git a/notes/scaling_works.md b/notes/scaling_works.md index 3de4214..6537596 100644 --- a/notes/scaling_works.md +++ b/notes/scaling_works.md @@ -83,6 +83,9 @@ processing times: - ensure transform output is sorted by key => - ensure number of cores is large +- return fewer results (15 vs. 25) + => less highlighting + => fewer thumbnails to catch ## Work Grouping -- cgit v1.2.3