Skip to content

Commit

Permalink
Sleep longer while updating lastaccess column, to not let the slave
Browse files Browse the repository at this point in the history
DBs bog so much.
  • Loading branch information
jamiemccarthy committed Nov 11, 2004
1 parent 0a1604a commit 96ecc07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slash/DB/Static/MySQL/MySQL.pm
Expand Up @@ -566,7 +566,7 @@ sub updateLastaccess {
);
# If there is more to do, sleep for a moment so we don't
# hit the DB too hard.
Time::HiRes::sleep(0.2) if @uids;
sleep 2 if @uids;
}
}
} else {
Expand Down

0 comments on commit 96ecc07

Please sign in to comment.