perf!: halve search_link page size
20 results are rarely scrolled by user. Most users end up typing more characters to narrow down results. This way on large table we end up reading significantly fewer rows. The way relational DBs work is they keep filtering and reading rows one by one until limit is hit, so smaller the limit the better.
This commit is contained in:
parent
f989b83d33
commit
eed90a871b
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ def search_link(
|
|||
txt,
|
||||
query=None,
|
||||
filters=None,
|
||||
page_length=20,
|
||||
page_length=10,
|
||||
searchfield=None,
|
||||
reference_doctype=None,
|
||||
ignore_user_permissions=False,
|
||||
|
|
@ -57,7 +57,7 @@ def search_widget(
|
|||
query=None,
|
||||
searchfield=None,
|
||||
start=0,
|
||||
page_length=20,
|
||||
page_length=10,
|
||||
filters=None,
|
||||
filter_fields=None,
|
||||
as_dict=False,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue