Skip to content

Commit

Permalink
[Alloy] Increase per-page to 100.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Nov 8, 2024
1 parent 0ef329a commit 919c30d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perllib/Integrations/AlloyV2.pm
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ sub search {
return [] unless $result_count;

my $maxPages = 100;
my $pageSize = $result_count <= 2000 ? 20 : ( ceil($result_count / $maxPages) + 1 );
my $pageSize = $result_count <= 10000 ? 100 : ( ceil($result_count / $maxPages) + 1 );
my $pages = int( $result_count / $pageSize ) + 1;

my $query_body = $body_base;
Expand Down

0 comments on commit 919c30d

Please sign in to comment.