User Support & Resources Account Problems | Questions | Suggestions

IF YOU POST ABOUT SEARCH BEING BROKE, I'll ban you...

Thread Tools
 
Search this Thread
 
Old Feb 22, 2006 | 02:25 PM
  #201  
NoGamesLS1's Avatar
TECH Resident
iTrader: (16)
 
Joined: Jul 2005
Posts: 800
Likes: 0
Default

Every viagra contains one drop of Mr. T's sweat
Reply
Old Apr 20, 2006 | 12:35 PM
  #202  
King James's Avatar
TECH Resident
iTrader: (13)
 
Joined: Feb 2004
Posts: 838
Likes: 0
From: Terre Haute, IN
Default

Originally Posted by Brains
Update:

LS1Tech and myself personally have split the cost of a new development server. The components arrived yesterday, and I spent yesterday evening assembling the new machine and installing the operating system. This system will be used to develop and stress test any and all new code destined for use on this (and affiliate) site(s).

Search is priority one. As is, adding in more posts than a couple months worth really kills site performance -- more than it already is hurting. Some of you have caught wind of my efforts to port vBulletin to a more high-performance and enterprise-scale database server (PostreSQL). This work is more or less finished, but needs to be final bug tested, load tested, and then transferred to the production servers. LOTS of work, but it IS progressing.
Any new updates? The search being down sucks ***!
Reply
Old Apr 20, 2006 | 11:51 PM
  #203  
blacksnake's Avatar
On The Tree
 
Joined: Jul 2005
Posts: 160
Likes: 0
From: New Jersey
Default

I personally have not seen any ETA on the return of the full search function.
Reply
Old May 17, 2006 | 01:30 AM
  #204  
horist's Avatar
TECH Senior Member
 
Joined: Nov 2001
Posts: 7,036
Likes: 1
From: Lake Zurich, IL
Default

TTT any updates? site is running fast.. but search sux ***
Reply
Old May 17, 2006 | 01:56 PM
  #205  
Brains's Avatar
Thread Starter
TECH Senior Member
iTrader: (7)
 
Joined: Jan 2002
Posts: 12,754
Likes: 0
From: Katy, TX
Default

Here's the latest "State of the Union" on search..

First off, let me state that I've been incrementally and slowly adding posts into the existing search index while monitoring server performance. I don't want to rob Peter to pay Paul, so to speak.

Second, here's where we stand overall. Based on the post-***** test session we had when the server blew up a while back, I'm confident the PostgreSQL port of vBulletin is solid. The only variable beyond that has been search, since I turned it off for the duration of that test (since there were no posts indexed). Here's a breakdown of what has transpired since then:

1. Loaded 3.5M posts into the "vBulletin" style post indexing scheme, under Postgres. This turned out to work reasonably well, but was somewhat hit or miss. It didn't tear down the server (since PG has MUCH more intelligent query and resource scheduling) but the search results wouldn't return in a consistant timeframe. Sometimes took 2 seconds, some took 2+ minutes, for similar type searches.

2. Wiped out the vB style index, and indexed the tables using the tSearch2 "FullText" index plugin for PG. This required some hacking of the vBulletin search subsystem to get working, since PG does fulltext a little differently than MySQL. End result, was it worked a little faster than #1 but still inconsistant in performance.

3. Went looking at the actual data and query structure of the search, and the PHP code that controlled everything. Found out some HUGE problems with the way Jelsoft wrote the search system, mostly based on trying to offer too many options that truly don't make a lot of sense for us. The most glaring is the idea of cacheing the search results, so if someone else searches the same thing 20 minutes later, we can re-use the search results from the first guy. In theory, this sounds like a good idea. In practice, its pretty half-baked. First, what is the percentage of people will search for the exact same thing? Not very high, I looked. Less than 1%. So even if it DID gain a ton of performance (it really doesn't, I'll explain why in a bit) there's very little chance it would actually be used. That brings us to the next stage.

4. The vB PHP code does some very innefficient things, due to the framework being written to support saved searches. The biggest glaring thing is basically running every search TWICE (or more). Sure, some of that is handled by the DB engine query cache, but that also introduces its own issues. First off, if you expand the number of search results, you increase the amount of cache needed. This is why the current limit is 250 results. Any more than that, and it won't fit in the query cache at all, and it has to be paged to disk. That basically halts everything, since you're still fighting normal posting and reading queries. Once things start to back up, the site grinds to a halt. Now do that multiple times. Very bad. So, by removing saved searches it only runs once and alleviates quite a bit of that right off the bat. The next problem, is the search engine actually runs the exact same search query every time you either return to the results page, or click between pages. So again, if the query doesn't fit in the query cache it has to be paged to disk, or run from scratch. Not very efficient.

5. This is the stage I'm in the middle of right now, which is a 100% total rewrite of the search engine. Without laying out all the details, it basically works by running the initial query, and storing the results list in a search results table. Since this table is nice and small (n results * x searches in the past y minutes) requerying it based on page movements or returning to the results list is incredibly fast. With realistic limits (1000 results, 30 searches per minute, 5 minute window) the table would grow to a fuzzy max of 150,000 rows. Thats nothing for a database to query on, and even cache. There's still no cheap way of getting away from the initial impact of running the search, which can take up to 2 minutes in some cases. The only realistic way to speed that up is with a custom built search server/cluster, which spreads the database over as many disks as possible. The more disk spindles there are, and the faster they spin, the faster it can scan all that data. Its not cheap to build and host a box like that obviously, so we'll do the best we can with the resources that make the most sense. If some 6 word, obscure search back to the beginning of time takes a couple minutes, so be it. Most typical 1 to 3 word searches complete in mere seconds, so most searches would never take that hit anyway.
Reply
Old May 17, 2006 | 02:11 PM
  #206  
Nautilus's Avatar
9 Second Club
iTrader: (15)
 
Joined: Nov 2002
Posts: 3,132
Likes: 0
From: VT/SC
Default

I have no f*#king clue what you just said.... But thank you for your hard work anyway...
Reply
Old May 17, 2006 | 02:44 PM
  #207  
NOSjohn's Avatar
Restricted User
iTrader: (9)
 
Joined: Apr 2004
Posts: 2,692
Likes: 0
Default

He said, he's looked at it, analyzed how it's working with various parameters and is now trying to optimize how it works with his own coding.
Reply
Old May 17, 2006 | 02:57 PM
  #208  
MrDude_1's Avatar
TECH Junkie
20 Year Member
Photogenic
Photoriffic
Shutterbug
iTrader: (4)
 
Joined: Feb 2002
Posts: 3,368
Likes: 5
From: Charleston, SC
Default

cool.. thanks for the update.. makes perfect sense to me.

i have a smaller site, but i also noticed the search saving.. i thought it was kinda dumb, but i dont really have a need to re-write it...
Reply
LS1 Tech Stories

The Best V8 Stories One Small Block at Time

story-0

6 Gifts Neither Your Dad Nor Grad Will Shove Into the 'Trinket Drawer'

 Brett Foote
story-1

Topdon ONE vs. Artidiag 800 BT2: Which is the Diagnostic Tablet For You?

 Pouria Savadkouei
story-2

Gas Monkey Built a 6-Wheel Ferrari Testarossa With a Corvette LT4 Engine

 Verdad Gallardo
story-3

7 Most Reliable High-Performance Engines GM Has Ever Built

 Verdad Gallardo
story-4

Amazing '71 Camaro Restomod Is Modern Muscle Car Under the Skin

 Verdad Gallardo
story-5

6 Common C5 Corvette Failures and What's Involved In Repairing Them

 Pouria Savadkouei
story-6

Retro Modern Bandit Pontiac Trans AM Comes With Burt Reynolds' Autograph

 Verdad Gallardo
story-7

Top 10 Greatest Cadillac V Series Performance Models Ever, Ranked

 Pouria Savadkouei
story-8

Top 10 Most Powerful Chevy Trucks Ever Made!

 
story-9

Hennessey's New Supercharged Silverado ZR2 Has 700 HP

 Verdad Gallardo
Old May 18, 2006 | 04:59 AM
  #209  
ACW's Avatar
ACW
TECH Veteran
 
Joined: Dec 2004
Posts: 4,012
Likes: 1
From: Beaumont, TX
Default

Nice to have another update at last
Reply
Old May 18, 2006 | 11:19 AM
  #210  
blacksnake's Avatar
On The Tree
 
Joined: Jul 2005
Posts: 160
Likes: 0
From: New Jersey
Default

Originally Posted by Brains
Here's the latest "State of the Union" on search..
Thanks for the update. Sounds like a real PITA.


Love the site and appreciate the work you guys put into it.
Reply




All times are GMT -5. The time now is 11:01 PM.

story-0
6 Gifts Neither Your Dad Nor Grad Will Shove Into the 'Trinket Drawer'

Don't get dad new socks or a grill brush this year.

By Brett Foote | 2026-06-04 18:13:20


VIEW MORE
story-1
Topdon ONE vs. Artidiag 800 BT2: Which is the Diagnostic Tablet For You?

Slideshow: We take a close look at the ONE and Artidiag 800BT2 diagnostic tools from Topdon and the reasons to buy one over the other.

By Pouria Savadkouei | 2026-05-28 11:05:11


VIEW MORE
story-2
Gas Monkey Built a 6-Wheel Ferrari Testarossa With a Corvette LT4 Engine

Slideshow: The controversial Ferrari F6 swaps its original flat-12 for a Corvette Z06-derived LT4 V8 and sends power to four rear wheels through a custom-built drivetrain.

By Verdad Gallardo | 2026-05-26 18:23:54


VIEW MORE
story-3
7 Most Reliable High-Performance Engines GM Has Ever Built

Slideshow:These GM engines didn't just make huge power, they survived abuse, boost, track days, and six-digit mileage with a reputation for refusing to quit.

By Verdad Gallardo | 2026-05-21 16:45:27


VIEW MORE
story-4
Amazing '71 Camaro Restomod Is Modern Muscle Car Under the Skin

Slideshow: This heavily modified 1971 Camaro mixes classic muscle car styling with a fifth-generation Camaro interior and modern LS3 power.

By Verdad Gallardo | 2026-05-12 18:06:42


VIEW MORE
story-5
6 Common C5 Corvette Failures and What's Involved In Repairing Them

Slideshow: From wobbling harmonic balancers to failed EBCMs, these are the issues that define long-term C5 ownership and what repairs typically involve.

By Pouria Savadkouei | 2026-05-07 18:44:57


VIEW MORE
story-6
Retro Modern Bandit Pontiac Trans AM Comes With Burt Reynolds' Autograph

Slideshow: A modern Camaro transformed into a retro icon, this limited-run "Bandit" build blends nostalgia with brute force in a way few revivals manage.

By Verdad Gallardo | 2026-04-21 13:57:02


VIEW MORE
story-7
Top 10 Greatest Cadillac V Series Performance Models Ever, Ranked

Slideshow: Cadillac didn't just crash the high-performance luxury vehicle party, it showed up loud, supercharged, and occasionally a little unhinged...

By Pouria Savadkouei | 2026-04-16 10:05:15


VIEW MORE
story-8
Top 10 Most Powerful Chevy Trucks Ever Made!

Slideshow: Top ten most powerful Chevy trucks ever made

By | 2026-03-25 09:22:26


VIEW MORE
story-9
Hennessey's New Supercharged Silverado ZR2 Has 700 HP

Slideshow: Hennessey has turned the Silverado ZR2 into a 700-hp off-road monster with supercharged V8 power and a limited production run.

By Verdad Gallardo | 2026-03-24 18:57:52


VIEW MORE