Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2.0 "New Posts (X)" to mimic Social Networks
#1
What about something like this?

   

You can see something simmilar in Tomm´s website, is a great feature in my point of view (you must login) => http://resources.xekko.co.uk/index.php

Will a feature like this be compromised because creates a perfomance bottleneck?
Reply
#2
That welcome back block is shown on every page, so the queries to determine that information (number of new messages, etc) would have to be run with every page hit. It could definitely affect performance.
Reply
#3
(2011-08-28, 07:14 PM)laie_techie Wrote: That welcome back block is shown on every page, so the queries to determine that information (number of new messages, etc) would have to be run with every page hit. It could definitely affect performance.
This, although I would assume you could cache the results and only update every x number of page loads.
[Image: 422.png]
Reply
#4
What would be the point of caching a result to show you recent activity?

People often want features they see on immense sites but these are the types of features to cause high load and then people complain their site is slow. You can't have it both ways.

Reply
#5
It's just a couple of extremely simple select queries. It's fine up to a medium to large forum, but get to massive scale and you're wanting to save as a many queries as possible.
Reply
#6
(2011-08-29, 03:25 AM)labrocca Wrote: People often want features they see on immense sites but these are the types of features to cause high load and then people complain their site is slow. You can't have it both ways.

Make it an optional feature turned off by default:

Admin CP => Configuration => User Registration and Profile Options =>
Option: Turn on number of New Posts indicator?
Y - (N)


if Yes => (Recommended to turn on "cache to files" [or whatever] when using this feature)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)