Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Author Table: No_of_PM field
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Author Table: No_of_PM field

 Post Reply Post Reply
Author
Nick-V View Drop Down
Senior Member
Senior Member


Joined: 26 October 2002
Location: United Kingdom
Status: Offline
Points: 319
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nick-V Quote  Post ReplyReply Direct Link To This Post Topic: Author Table: No_of_PM field
    Posted: 19 August 2008 at 1:42pm
What is the No_of_PM field used for in the Author table?
 
I assumed it as the number of private messages but in reality it differs from the number of actual PMs (received and sent) and the number of PMs displayed in the inbox is not from this field.
 
I thought it might be an unused field from previous versions however I have newish members with a non-zero value in the field...
 
...did I miss something obvious?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 19 August 2008 at 3:43pm
It holds the number of unread private messages the user has in their inbox.

It's done this way rather than running an SQL count query each time the user moves around the forum to increase performance and cut down on database hits, as the members username has to be read in from this table anyway.

This is then used to display how many New Messages the user has at the top of the forum and is also used so that if the value changes during their visit they an be notified of new private messages in their inbox.
Back to Top
Nick-V View Drop Down
Senior Member
Senior Member


Joined: 26 October 2002
Location: United Kingdom
Status: Offline
Points: 319
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nick-V Quote  Post ReplyReply Direct Link To This Post Posted: 19 August 2008 at 3:49pm
Ah ha...yep I missed the obvious...many thanks !
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.