Suggestions & Feedback
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsForum InformationSuggestions & Feedback

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old August 9th, 2006, 04:17 PM
stdunbar stdunbar is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2004
Location: Superior, CO, USA
Posts: 1,677 stdunbar User rank is Captain (20000 - 30000 Reputation Level)stdunbar User rank is Captain (20000 - 30000 Reputation Level)stdunbar User rank is Captain (20000 - 30000 Reputation Level)stdunbar User rank is Captain (20000 - 30000 Reputation Level)stdunbar User rank is Captain (20000 - 30000 Reputation Level)stdunbar User rank is Captain (20000 - 30000 Reputation Level)stdunbar User rank is Captain (20000 - 30000 Reputation Level)stdunbar User rank is Captain (20000 - 30000 Reputation Level)stdunbar User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 3 h 18 m 44 sec
Reputation Power: 301
Send a message via ICQ to stdunbar Send a message via Yahoo to stdunbar
Minor bug - last post != last post when post is deleted

There is a minor bug in the forums that is a little bit annoying. If a post is removed it is still shown as the last post on the "summary" page. That is if you load the main page you'll see that for the Python forums the current information looks like the attachment. However, the links really go to the last "real" post in the forum. I'm guessing that this is an optimization to prevent having to load the information for each forum when the main page is displayed. Basically what should happen though is that the cache should be flushed when a topic or post is deleted - or something like that.

Anyhow, not a big deal, just wanted to point it out.
Attached Images
File Type: jpg bad_post.JPG (15.4 KB, 96 views)
__________________
Need Java help? Want to help people who do? Sit down with a cup of Java at the hotjoe forums.

Reply With Quote
  #2  
Old August 9th, 2006, 06:18 PM
computer's Avatar
computer computer is offline
echo $usertitle['computer'];
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2003
Location: UK
Posts: 6,673 computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 4 Weeks 9 h 2 m 19 sec
Reputation Power: 219
Send a message via ICQ to computer
It's simply because the database is cached to stop so much load for that kind of query - so it updates every like half hour or something, rather than ahving to be dynamically queried every time the homepage is requested.
__________________

Reply With Quote
  #3  
Old August 9th, 2006, 07:13 PM
BurningSnowman's Avatar
BurningSnowman BurningSnowman is offline
It
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: UK
Posts: 1,217 BurningSnowman User rank is Captain (20000 - 30000 Reputation Level)BurningSnowman User rank is Captain (20000 - 30000 Reputation Level)BurningSnowman User rank is Captain (20000 - 30000 Reputation Level)BurningSnowman User rank is Captain (20000 - 30000 Reputation Level)BurningSnowman User rank is Captain (20000 - 30000 Reputation Level)BurningSnowman User rank is Captain (20000 - 30000 Reputation Level)BurningSnowman User rank is Captain (20000 - 30000 Reputation Level)BurningSnowman User rank is Captain (20000 - 30000 Reputation Level)BurningSnowman User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Month 5 Days 2 h 23 m 33 sec
Reputation Power: 221
Quote:
Originally Posted by computer
It's simply because the database is cached to stop so much load for that kind of query - so it updates every like half hour or something, rather than ahving to be dynamically queried every time the homepage is requested.

No it doesn't. I just replied to a post and got an instant update on the home page.

There must be a separate DB table duplicating the information for query speed, which isn't correctly being updated when deletion occurs. Deletion occurs rarely, so this isn't for performance gain, I'd suggest it's more just an oversight. It's also one I think I've seen on another forum, so it's probably a vB bug.

Actually, I suspect that the duplication of data itself would save very very little processing if the query was optimised and the tables properly indexed in the first place - but that's a relatively groundless suspicion without seeing the DB structure.

Reply With Quote
  #4  
Old August 10th, 2006, 03:58 AM
computer's Avatar
computer computer is offline
echo $usertitle['computer'];
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2003
Location: UK
Posts: 6,673 computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 4 Weeks 9 h 2 m 19 sec
Reputation Power: 219
Send a message via ICQ to computer
I was under the impression data for things like that are updated for replying to a post, but not for thread deletion.

Reply With Quote
  #5  
Old August 10th, 2006, 07:09 AM
BurningSnowman's Avatar
BurningSnowman BurningSnowman is offline
It
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: UK
Posts: 1,217 BurningSnowman User rank is Captain (20000 - 30000 Reputation Level)BurningSnowman User rank is Captain (20000 - 30000 Reputation Level)BurningSnowman User rank is Captain (20000 - 30000 Reputation Level)BurningSnowman User rank is Captain (20000 - 30000 Reputation Level)BurningSnowman User rank is Captain (20000 - 30000 Reputation Level)BurningSnowman User rank is Captain (20000 - 30000 Reputation Level)BurningSnowman User rank is Captain (20000 - 30000 Reputation Level)BurningSnowman User rank is Captain (20000 - 30000 Reputation Level)BurningSnowman User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Month 5 Days 2 h 23 m 33 sec
Reputation Power: 221
Well... yes, that's the point. But as I said, there's no reason for it to be that way. It's just an oversight, albeit one which I think is built into this version of vB by default.

Reply With Quote
  #6  
Old August 10th, 2006, 10:16 AM
LinuxPenguin's Avatar
LinuxPenguin LinuxPenguin is offline
fork while true;
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2005
Location: England, UK
Posts: 5,535 LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)  Folding Points: 11590 Folding Title: Novice Folder
Time spent in forums: 1 Month 3 Weeks 1 Day 19 h 23 m 58 sec
Reputation Power: 1008
Absolutely. I reported this a few days back directly to the admins and they said there's a cron job to update everything like this nightly if nothing else like posting in a forum happens to update it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsForum InformationSuggestions & Feedback > Minor bug - last post != last post when post is deleted


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway