vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
New vBSEO Discount Level for Network Builders Meet vBSEO Team in New York (Nov. 3rd & 4th) vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

Bad performance due to member URL's

This is a discussion on Bad performance due to member URL's within the Troubleshooting forums, part of the vBSEO Google/Yahoo Sitemap category; We currently have member URL's set to members/[user_name].html however this makes VBSEo use some truly terrible SQL to locate users ...

Go Back   vBulletin SEO Forums > vBSEO Google/Yahoo Sitemap > Troubleshooting

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-10-2008, 07:39 PM
Junior Member
 
Real Name: Craig Fletcher
Join Date: Dec 2007
Posts: 5
Bad performance due to member URL's

We currently have member URL's set to members/[user_name].html however this makes VBSEo use some truly terrible SQL to locate users e.g.
Code:
select userid
from user
where username regexp "^(&[\\#\\da-z]*;|[^a-z\\d])*[nÑñ][aÀÁÂÃÄÅàáâãäå][nÑñ]d[oÒÓÔÕÖØòóôõöø](&[\\#\\da-z]*;|[^a-z\\d])+t[oÒÓÔÕÖØòóôõöø]rr[eÈÉÊËèéêë][sŠš](&[a-z]*;|[^a-z\\d])*$"
limit 1
Of course due to the use of regexp here, it forces a full table scan which is crippling for sites such as ours with 100,000's of users.

Surely a static map either added to the user table or created as a vbseo specific table should be whats used instead of this terrible SQL?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 09-10-2008, 08:11 PM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,469
The only way to fix a full table scan is to include the userID in your re-write.

members/[user_id]-[user_name]/ for example
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 09-11-2008, 12:54 PM
Junior Member
 
Real Name: Craig Fletcher
Join Date: Dec 2007
Posts: 5
Thanks Brian changing all of the settings which just had [user_name] to [user_id]-[user_name] made a massive difference! The DB on a dual quad core machines was showing loads of 300% in top and its now down to ~10%.

This really should be the default as those queries are absolute killers especially as they are used for every post on a thread view.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Rewrite new vB tag format URL's to ZTT style URL's. FleaBag Custom Rewrite Rules 9 11-13-2008 03:42 AM
Performance hit jdougher General Discussion 2 02-21-2007 07:20 PM
vB SEO performance hit bjornstrom General Discussion 7 05-28-2006 05:35 PM
performance ryanc Pre-Sales Questions 2 01-22-2006 04:00 PM


All times are GMT -4. The time now is 08:47 AM.


Powered by vBulletin Version 3.8.0 Beta 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.