Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-24-2003, 08:49 PM
Tigga's Avatar
Tigga Tigga is offline
 
Join Date: Dec 2001
Location: Atlanta
Posts: 1,061
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Admin CP - Who Voted taking forever?

Just wondering if I'm the only one that's experienced this problem... Before, whenever I would click on the "Who Voted?" link in the Admin CP to see who voted on a poll, it would take forever for the page to load that allows you to select which poll (168 seconds when I checked it). I figured out a simple fix for it, so I was wondering if anyone else experienced this problem or if it was just me... And wondering if it was worth releasing.
Reply With Quote
  #2  
Old 04-24-2003, 09:38 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just checked mine and it came up instantly. But I don't have a very active forum and there aren't many threads or posts. I'd be curious to see what you did to fix it, though.
Reply With Quote
  #3  
Old 04-24-2003, 09:59 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I've noticed this before and is the result of just getting the many poll threads and putting them in the combobox.
Reply With Quote
  #4  
Old 04-24-2003, 10:36 PM
Tigga's Avatar
Tigga Tigga is offline
 
Join Date: Dec 2001
Location: Atlanta
Posts: 1,061
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea, that's exactly what it's coming from... It seems though if you reverse the query (pull from the thread and left join the poll) it works much better. Here's what I changed if anyone would like to try it out...
In admin/thread.php find:
PHP Code:
    $polls $DB_site->query("
        SELECT poll.pollid, poll.question, thread.title
        FROM poll
        LEFT JOIN thread USING(pollid)
        ORDER BY thread.dateline DESC
    "
); 
Replace that with:
PHP Code:
    $polls $DB_site->query("
        SELECT thread.title, poll.pollid, poll.question 
        FROM thread
        LEFT JOIN poll ON (thread.pollid=poll.pollid)
        WHERE thread.open<>10 AND thread.pollid!='0'
        ORDER BY thread.dateline DESC
    "
); 
Just that simple change seemed to do the trick. When I checked the time it took to load the page before hand it was 168 seconds. Afterwards it was pretty much instant. If anyone else has noticed that problem and the fix helps them as well please let me know and I'll go ahead and release it.
Reply With Quote
  #5  
Old 04-24-2003, 10:56 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You might want to post in the vB2 Troubleshooting forums and post it as a bug so it can be fixed in the inevidable 2.3.1 (because IMO a 138-sec page is a bug).
Reply With Quote
  #6  
Old 04-25-2003, 09:17 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 05:36 PM Tigga said this in Post #4
Yea, that's exactly what it's coming from... It seems though if you reverse the query (pull from the thread and left join the poll) it works much better. Here's what I changed if anyone would like to try it out...
In admin/thread.php find:
PHP Code:
    $polls $DB_site->query("
        SELECT poll.pollid, poll.question, thread.title
        FROM poll
        LEFT JOIN thread USING(pollid)
        ORDER BY thread.dateline DESC
    "
); 
Replace that with:
PHP Code:
    $polls $DB_site->query("
        SELECT thread.title, poll.pollid, poll.question 
        FROM thread
        LEFT JOIN poll ON (thread.pollid=poll.pollid)
        WHERE thread.open<>10 AND thread.pollid!='0'
        ORDER BY thread.dateline DESC
    "
); 
Just that simple change seemed to do the trick. When I checked the time it took to load the page before hand it was 168 seconds. Afterwards it was pretty much instant. If anyone else has noticed that problem and the fix helps them as well please let me know and I'll go ahead and release it.
Will this also list polls in threads that are closed?
Reply With Quote
  #7  
Old 04-25-2003, 06:03 PM
Tigga's Avatar
Tigga Tigga is offline
 
Join Date: Dec 2001
Location: Atlanta
Posts: 1,061
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bofo - Yes, the "thread.open<>10" code there is just telling it not to pull a "redirect" thread, or one that has the "moved:" prefix in front of it. That code should do the exact same thing as the original code, only much faster if you're experiencing problems with the page load time.

Filbert - I've actually posted 3 things (including this one) there over the last week or two, but haven't seen any replies yet. I'm starting to wonder if the devs are even concerned about small bugs in v2.x, or if they're just trying to avoid releasing another version besides 3.0. :ermm:
Reply With Quote
  #8  
Old 04-25-2003, 10:22 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, that's what the "thread.open<>10" means. I have always wondered about that. Thanks for explaining it to me.

What other small bugs have you posted about?
Reply With Quote
  #9  
Old 04-25-2003, 10:23 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They should still fix bugs in the 2.x.x series considering that's the one that they're selling to consumers.
Reply With Quote
  #10  
Old 08-21-2003, 04:30 PM
gorman gorman is offline
 
Join Date: Sep 2002
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
04-25-03 at 12:36 AM Tigga said this in Post #4
Yea, that's exactly what it's coming from... It seems though if you reverse the query (pull from the thread and left join the poll) it works much better. Here's what I changed if anyone would like to try it out...
Tigga, can't believe this was so easy... don't know if they have fixed it in following releases, I'm using 2.2.8 with some security modifications... Thanks a lot!
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:02 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05685 seconds
  • Memory Usage 2,257KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete