*save is a function that puts the value into a hashtable inside global.
When he logs out, those info will be moved/transfered into the DB
Method B) use DB directly store the info into the DB as soon as it change.
I know method B will put a heavy load on the sql connection, but I am just wondering whether things will get any more better/effecient if I employ method A.
Or are there MUCH better alternative?
Notes: 1) the info to be recorded constantly are actually user/player map location. Must be updated as soon as he move. 2) Expected total number of user online at the same time to be around 20,000-50,000.