i am trying to put together the frame work for a social networking site. no small feat :) i've been reading up n database structure, but there's one thing i wasn't able to find.
how do sites like facebook show online users?
is it simply a field in the user table that shows if they are online? how is it not slowing down the db to check a user table with over 100000 uses to see who is online?
or is there one table for online users that holds a ID number? if so, how then do we determine if the user is still active? ie, they closed the browser window without logging out?
any advice is MUCH MUCH MUCH appreciated!
how do sites like facebook show online users?
is it simply a field in the user table that shows if they are online? how is it not slowing down the db to check a user table with over 100000 uses to see who is online?
or is there one table for online users that holds a ID number? if so, how then do we determine if the user is still active? ie, they closed the browser window without logging out?
any advice is MUCH MUCH MUCH appreciated!
Comment