vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Querys Per hack (https://vborg.vbsupport.ru/showthread.php?t=159190)

lasto 10-01-2007 02:59 PM

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.

Lizard King 10-01-2007 03:02 PM

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.

Paul M 10-01-2007 03:06 PM

^^^

What he said - the number on it's own is not as important as what they actually do.

lasto 10-01-2007 03:17 PM

so having a hack that puts 11 querys on your board is fine ?

Lizard King 10-01-2007 03:21 PM

Quote:

Originally Posted by lasto (Post 1350809)
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 :)

lasto 10-01-2007 03:25 PM

Quote:

Originally Posted by Lizard King (Post 1350810)
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.

Paul M 10-01-2007 05:03 PM

Quote:

Originally Posted by lasto (Post 1350812)
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.

King Kovifor 10-01-2007 06:17 PM

Someone mentioned my Welcome Panel Template Rewrite in my thread. It adds 11.

lasto 10-01-2007 06:28 PM

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.

Dean C 10-01-2007 07:01 PM

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.


All times are GMT. The time now is 01:10 PM.

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.01530 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete