The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I need this one optimising. Leading on from this conversation on vbulletin.com.
http://www.vbulletin.com/forum/showthread.php?p=771783 This got closed but the last reply was interesting: This really is a discussion for vBulletin.org. When you run a query, all fields in the where clause should be indexed for best speed. We don't put an index on dateline because we don't use it in the Where clauses of vBulletin. Code:
SELECT COUNT(*) AS posts FROM post WHERE dateline > You need to take this discussion of code modifications to vBulletin.org. ================================================== [quote]all fields in the where clause should be indexed for best speedp/quote] How do i do this? (index tables) as it sometimes takes up to 0.3 seconds for this to comlpete the querie!! Thanks in advance for any help. |
#2
|
|||
|
|||
![]()
[QUOTE=mcyates]I need this one optimising. Leading on from this conversation on vbulletin.com.
http://www.vbulletin.com/forum/showthread.php?p=771783 This got closed but the last reply was interesting: This really is a discussion for vBulletin.org. When you run a query, all fields in the where clause should be indexed for best speed. We don't put an index on dateline because we don't use it in the Where clauses of vBulletin. Code:
SELECT COUNT(*) AS posts FROM post WHERE dateline > You need to take this discussion of code modifications to vBulletin.org. ================================================== Quote:
Code:
SELECT COUNT(*) AS posts FROM post WHERE dateline > |
#3
|
|||
|
|||
![]()
I've remived this from global.php do i need it?
Code:
# SINCE YOUR LAST VISIT $getnewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM ".TABLE_PREFIX."thread WHERE lastpost > '".$bbuserinfo['lastvisit']."'"); $getnewpost=$DB_site->query_first("SELECT COUNT(*) AS posts FROM ".TABLE_PREFIX."post WHERE dateline > '".$bbuserinfo['lastvisit']."'"); |
#4
|
|||
|
|||
![]()
sorry i just checked this with the version of vb303 which i've just downloaded and its not on their and its nothing to do with vbookie or ucash or any other hacks "currently" on my site. I must have saved global.php with a hack already on it not knowing.
sorry You may as well delete this thread. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|