Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Views XXXX (aka thread has been read XXXX times)

Category Vanilla Started by mark Comments 3 Last comment by lech Last Active 1 day ago new 1 views 955
how much load on the server would it be to add the number of views a thread has?
0
This discussion has been closed.
Comments
either should be easy, but the total number of views won't include people who aren't logged in, of course.
select count(LastViewed),DiscussionID from LUM_UserDiscussionWatch where DiscussionID='$DiscussionID' group by DiscussionID;
that should take care of the sql.
select count(LastViewed) from LUM_UserDiscussionWatch where DiscussionID='$DiscussionID';
I mean, if you already know what DiscussionID is, why return it and group by it?