Advertise here: Contact FM.
SELECT COUNT(commentid) FROM comments WHERE timestamp > lastlogin
function commentcount(currentcount, cookie_lastcount, id){
newcount = currentcount - cookie_lastcount;
if(newcount > 0){
commentjump = cookie_lastcount + 1;
document.write('<a href="/mefi/'+id+'#'+commentjump+'"');
document.write(newcount+' new');
document.write('</a>');
}
cookie_lastcount = currentcount;
}
Personally I don't need to see more than the last 20 or so posts. But every time I refresh or post a comment the server has to hold in memory and send all 300. Which is about a third of a meg per pop.
Could we make it so that after a thread goes over 100 posts it will only display the number shown in the "(16 new)" link when that's clicked on? It could still display the full list if the "419 comments" link was clicked.
For people who aren't logged in you could add a "Last 20" link so that non-members could also help limit server load.
posted by y6y6y6 at 10:46 AM on February 27, 2004