3 ms·
" save user information after every request via after_filter or some other hook. Probably slow for sites that get a lot of traffic." Probably really wouldn't b
by mgkimsal 14y ago
" save user information after every request via after_filter or some other hook. Probably slow for sites that get a lot of traffic."
Probably really wouldn't be that slow, unless done really naively - much of that information is already being written to a web server logfile in most cases, and that doesn't slow things down too much. Send the info to a separate logging server/db. If you're getting a lot of traffic, you're possibly doing a lot of queries anyway - one more is incrementally painful, but shouldn't be a killer.