Message view count.

oOo--STAR--oOo

  • @Arantor Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time
  • Posts: 43
Message view count.
« on April 20th, 2012, 11:26 PM »
Hey,

I think a plugin to show how many views your message has had would be really cool.
I understand that you only have topic views at the moment ( I think )

But say I post a message after, then its good to see how many people have potentially viewed my message?
You think this would be a waste of space, or a good piece of information?

I mean you could display this information after the date or topic title.
I think it would be a good addition and could even consider core development of this.

What do you think?

live627

  • Should five per cent appear too small / Be thankful I don't take it all / 'Cause I'm the taxman, yeah I'm the taxman
  • Posts: 1,670
A confident man keeps quiet.whereas a frightened man keeps talking, hiding his fear.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Message view count.
« Reply #2, on April 20th, 2012, 11:58 PM »
I don't think it would be any use, certainly not as a core feature. If anything I'd rather remove topic views before implementing this.

There are major performance considerations attached, namely that you'd *HAVE* to put this in its own database table otherwise the nightmare of updating the messages table (and preventing any other process even viewing threads while that update occurred, as default on MySQL prior to 5.5)[1]

Even then, you'd have to exclude search engines (which in itself is unreliable, just as it is excluded in theory from topic view counts), and even after that, the strong likelihood is that all you're going to see is a stream of increases over time, proportionate to the age of the message.

Ten messages each posted in close proximity to each other are going to have an almost horizontal (level) trend, messages further apart will get a proportionately higher spike, but that's all it'll tell you.
 1. Tables in MySQL before 5.5 are defaulted to MyISAM, where an update to the table requires table-level locking, meaning nothing else can touch the table. You can use InnoDB in 5.0/5.1 and it's default in 5.5 but that's not widespread yet.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

oOo--STAR--oOo

  • @Arantor Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time
  • Posts: 43
Re: Message view count.
« Reply #3, on April 21st, 2012, 12:23 AM »
Quote from Arantor on April 20th, 2012, 11:58 PM
I don't think it would be any use, certainly not as a core feature. If anything I'd rather remove topic views before implementing this.

There are major performance considerations attached, namely that you'd *HAVE* to put this in its own database table otherwise the nightmare of updating the messages table (and preventing any other process even viewing threads while that update occurred, as default on MySQL prior to 5.5)[1]

Even then, you'd have to exclude search engines (which in itself is unreliable, just as it is excluded in theory from topic view counts), and even after that, the strong likelihood is that all you're going to see is a stream of increases over time, proportionate to the age of the message.

Ten messages each posted in close proximity to each other are going to have an almost horizontal (level) trend, messages further apart will get a proportionately higher spike, but that's all it'll tell you.
 1. Tables in MySQL before 5.5 are defaulted to MyISAM, where an update to the table requires table-level locking, meaning nothing else can touch the table. You can use InnoDB in 5.0/5.1 and it's default in 5.5 but that's not widespread yet.
Yeah I get what you mean there.
Probably would involve a lot more processing especially when adding filters for search engines and what not.
Also on the fact on one page you would have to increase the value for every message on that page rather than just 1 for the whole topic.
Unless there was an easier way lol.

I just thought it would be a good asset to have, but implementing it does seem a lil hard, and use up more resources.

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Message view count.
« Reply #4, on April 21st, 2012, 09:28 PM »
If you think a post is worthy enough to track its view count, then... Just post it as a new topic ;)

Logic rules! :)

godboko71

  • Fence accomplished!
  • Hello
  • Posts: 361
Re: Message view count.
« Reply #5, on April 30th, 2012, 11:57 AM »
Quote from Arantor on April 20th, 2012, 11:58 PM
I don't think it would be any use, certainly not as a core feature. If anything I'd rather remove topic views before implementing this.
While views are interesting sometimes I agree it's an overhead that is almost worthless, I can use server logs for a better idea of activity.
Thank you,
Boko