Skip to content

Commit

Permalink
[backend] bs_sched revert number of projpacks for full scan
Browse files Browse the repository at this point in the history
reverts part of 64ae5c9
the trade off is between doing a full scan or cleaning
up data for all dirty projects. it looks like the optimum
is a lot closer to 200 (or even lower than that) than the
1000 the old patch used.
  • Loading branch information
bugfinder committed Nov 4, 2020
1 parent 10840d2 commit 5e11a5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/BSSched/ProjPacks.pm
Expand Up @@ -834,7 +834,7 @@ sub setup_projects {

my $t1 = Time::HiRes::time();
my $projids_todo_cnt = scalar(@{$projids_todo || []});
undef $projids_todo if $projids_todo_cnt > 1000; # removing old stuff takes too long
undef $projids_todo if $projids_todo_cnt > 200; # removing old stuff takes too long

my @projids_todo;
if ($projids_todo) {
Expand Down

0 comments on commit 5e11a5d

Please sign in to comment.