php - Can time() and few additional overload the server while displaying/calculating for top 100 users page? -
so, need know if somehow time() + 10800 , etc can overload page if loading info separately 100 users? it's ranking page calculating online time. it's selecting top 100, if lot of users check page, can next code overload calculation time separately each user or should fine? meant these array values included in user ranking page contains top 100 users. if online, calculation otherwise nope. i inquire if illustration 50-60 online, , if lot of people seek view user ranking (accessing page) - lot of calculation, can concern or should fine mostly? server running on nginx, mssql server 2005 (just mention in case :))
$replace = array ( 'total_time' => $data['status'] == offline ? $this->secondstotime(intval($data['totaltime'])) : $this->secondstotime(intval($data['totaltime']) + (time() + 10800) - intval($data['logindt'])), 'login_time' => $data['status'] == offline ? "n/a" : $this->secondstotimecurr(time() + 10800 - intval($data['logindt']))); .....................
php nginx
No comments:
Post a Comment