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 10-01-2007, 02:59 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Querys Per hack

I used to install hacks just for the fun of it and never bothered how many queries it made but lately ive gone the opposite way so i can have a faster board with the minimum of connections.

What i would like to see in Hack threads is a seperate box so Hack makers can input how many queries each hack uses.
Reply With Quote
  #2  
Old 10-01-2007, 03:02 PM
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Location: Mersin
Posts: 907
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Exactly number of queries are not that important. What is important is the query that is used by the hack. If the query is well written it will have pretty less effect on your board. However if the query is not well written and it has a full table scan it can bring down your server to its knee.
Reply With Quote
  #3  
Old 10-01-2007, 03:06 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^^

What he said - the number on it's own is not as important as what they actually do.
Reply With Quote
  #4  
Old 10-01-2007, 03:17 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so having a hack that puts 11 querys on your board is fine ?
Reply With Quote
  #5  
Old 10-01-2007, 03:21 PM
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Location: Mersin
Posts: 907
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lasto View Post
so having a hack that puts 11 querys on your board is fine ?
If it is just on one page 11 queries i'll never install that. But again instead of the number you shall check query execution time , used memory by each query etc.. If you give the name of the hack we may comment better
Reply With Quote
  #6  
Old 10-01-2007, 03:25 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lizard King View Post
If it is just on one page 11 queries i'll never install that. But again instead of the number you shall check query execution time , used memory by each query etc.. If you give the name of the hack we may comment better
cant really name the hacks in question but have found 2 on here over last few days

1 adds 10 and the other adds 11 - i was under the understanding that the more queries it makes to the database the slower the board will be.So with these 2 hacks alone that is 21 queries and both are popular hacks.

Cheers for reply as well.
Reply With Quote
  #7  
Old 10-01-2007, 05:03 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lasto View Post
1 adds 10 and the other adds 11 - i was under the understanding that the more queries it makes to the database the slower the board will be.So with these 2 hacks alone that is 21 queries and both are popular hacks.

Again, it really depends on the nature of them, if they are simple selects on an indexed column then they will run very quickly and not have too much impact, esp if they get cached by mysql. It also depends on how often they are run.

That said, 10+ is a lot, and it maybe that a change in the design of the mod could cut them down.

I'm curious to know which they are.
Reply With Quote
  #8  
Old 10-01-2007, 06:17 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Someone mentioned my Welcome Panel Template Rewrite in my thread. It adds 11.
Reply With Quote
  #9  
Old 10-01-2007, 06:28 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

was me King Kovifor.Your hack is good,so is loads of others on here but i think people should be told how many queries they add to the overall running of the board as some people who are new wont know and tbh proberly wont care if there queries run to about 50 or more.
Not calling your hack or anyone elses,but a simple box to input How many queries etc is not to much to ask for.
But upon reading the posts above it seems i am wrong and its not the actual querying thats a problem so long as the code is good.
Reply With Quote
  #10  
Old 10-01-2007, 07:01 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Think less about queries. There's a lot more too optimization than simply your interaction with the database server. Think about your memory usage, think about how you can avoid un-necessary loops etc.
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 01:28 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04119 seconds
  • Memory Usage 2,247KB
  • Queries Executed 13 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete