vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin Tips & Tricks (https://vborg.vbsupport.ru/forumdisplay.php?f=239)
-   -   [vB 4.1.3+] Get rid of one query per page with a simple configuration change (https://vborg.vbsupport.ru/showthread.php?t=263281)

Andreas 05-06-2011 10:00 PM

[vB 4.1.3+] Get rid of one query per page with a simple configuration change
 
If you are running vBulletin 4.1.3+ and you do not have set a Server SQL Mode you can get rid of one query on ervery page by adding
Code:

$config['Database']['no_force_sql_mode'] = true;
to your config.php

To verify that no mode is set run
[sql]
SELECT @@GLOBAL.sql_mode;
SELECT @@SESSION.sql_mode;
[/sql]

If both queries give empty results no mode is set and you can safely add the configuration setting.

Princeton 05-07-2011 01:49 PM

great tip - thanks for sharing!

TheLastSuperman 05-11-2011 07:15 PM

Quote:

Originally Posted by Princeton (Post 2192992)
great tip - thanks for sharing!

Ditto ;).

8thos 06-26-2011 04:24 PM

Where in AdminCP does it say set Server SQL Mode?

Alfa1 06-26-2011 07:32 PM

Nowhere. You can check by running the above query.

HMBeaty 06-26-2011 07:41 PM

Awesome! Thanks!

--------------- Added [DATE]1309123130[/DATE] at [TIME]1309123130[/TIME] ---------------

Would it be possible to make this a plugin versus editing the config.php file?

ProFifaLeagues 06-30-2011 07:44 PM

Running the check above i get the return
@@GLOBAL.sql_mode; @@SESSION.sql_mode; So am i advised not to use this edit?

Thanks just wanted to be double sure


All times are GMT. The time now is 04:00 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.01050 seconds
  • Memory Usage 1,721KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete