User Support & Resources Account Problems | Questions | Suggestions

Why is LS1Tech so SLOW???

Thread Tools
 
Search this Thread
 
Old Nov 15, 2005 | 05:40 PM
  #21  
Antagonist's Avatar
Teching In
 
Joined: Nov 2005
Posts: 9
Likes: 0
Default

Originally Posted by technical
MySQL is a strange bitch. There are different table types and varying locking strategies (table/record). But your analysis is correct. If you lock a table when someone is updating/inserting then no one else can update/insert on that table.
There is no way a whole table would be locked when a record is edited or updated. You are mistake. sir.
Reply
Old Nov 15, 2005 | 05:45 PM
  #22  
ML'Sz28's Avatar
11 Second Club
iTrader: (1)
 
Joined: Sep 2004
Posts: 235
Likes: 0
From: baytown, texas
Default

I don't feel right complaining since it's a free site to browse, but the slowness in agrivating. I hope it gets fixed very soon.
Reply
Old Nov 15, 2005 | 05:52 PM
  #23  
Antagonist's Avatar
Teching In
 
Joined: Nov 2005
Posts: 9
Likes: 0
Default

Originally Posted by Brains
technical - you've got it, for the most part
antagonist - you're an idiot (and a troll, but we'll get to that later) .
I am neither an idiot or a troll . Im the proud owner of a very fast 02 Z28. I am just tired of reading all the stupid posts. A different viewpoint is all it is.
Originally Posted by Brains
VB does a *LOT* of database writes; .
VB or any other language will not do anything its not instructed to do.

Originally Posted by Brains
If two people post at the same time under MySQL, everyone waits.
Ever hear of a buffer file? Guess what it does?
Reply
Old Nov 15, 2005 | 05:53 PM
  #24  
Antagonist's Avatar
Teching In
 
Joined: Nov 2005
Posts: 9
Likes: 0
Default

Originally Posted by YoungB@BYUNSPEED
I got an idea. Convert the database to a flat file system.
Reply
Old Nov 15, 2005 | 06:15 PM
  #25  
Vents's Avatar
TECH Addict
iTrader: (9)
 
Joined: Apr 2002
Posts: 2,085
Likes: 0
From: Texas, it's like your state, but better.
Default

must be because it dosent have an LS1...
Reply
Old Nov 15, 2005 | 07:16 PM
  #26  
cyphur's Avatar
TECH Senior Member
iTrader: (10)
 
Joined: Mar 2003
Posts: 8,009
Likes: 0
From: North Texas
Default

Antagonist, glad to see that you live up to your handle. This thread WAS a constructive conversation until you came in. If you do not want to offer useful information, feel free to stay out of it from here on out. Just b/c you're butthurt b/c of a little comment on the internet doesn't mean you have to retaliate by acting like a 3 year old. Its very apparent to everyone in here you are the one here that don't know what you're talking about.

Seeing as Brains here has been working on the database for the past few years, I'm more inclined to trust him on this one. Argue with us all you want, its just going to provide me with some humor
Reply
Old Nov 15, 2005 | 08:02 PM
  #27  
Camaroz's Avatar
TECH Fanatic
iTrader: (2)
 
Joined: Sep 2004
Posts: 1,713
Likes: 0
From: South Shore, MA
Default

Originally Posted by cyphur_traq
Seeing as Brains here has been working on the database for the past few years, I'm more inclined to trust him on this one. Argue with us all you want, its just going to provide me with some humor
By arguing with Brains your just going to waste precious time he could put to the site
Reply
Old Nov 15, 2005 | 09:45 PM
  #28  
BlueSix's Avatar
TECH Junkie
 
Joined: May 2003
Posts: 3,050
Likes: 0
From: its fucking cold
Default

Kind of ironic....i got a database error message while trying to view the second page of this thread.
Reply
LS1 Tech Stories

The Best V8 Stories One Small Block at Time

story-0

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

 Pouria Savadkouei
story-1

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

 Verdad Gallardo
story-2

7 Most Reliable High-Performance Engines GM Has Ever Built

 Verdad Gallardo
story-3

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

 Verdad Gallardo
story-4

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

 Pouria Savadkouei
story-5

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

 Verdad Gallardo
story-6

Top 10 Greatest Cadillac V Series Performance Models Ever, Ranked

 Pouria Savadkouei
story-7

Top 10 Most Powerful Chevy Trucks Ever Made!

 
story-8

Hennessey's New Supercharged Silverado ZR2 Has 700 HP

 Verdad Gallardo
story-9

Coachbuilt N2A Anteros Is an LS2-Powered C6 Corvette In Italian Clothes

 Verdad Gallardo
Old Nov 15, 2005 | 10:15 PM
  #29  
ss rally red's Avatar
TECH Veteran
iTrader: (8)
 
Joined: Jan 2002
Posts: 4,298
Likes: 0
From: Destin FL
Default

Originally Posted by BlueSix
Kind of ironic....i got a database error message while trying to view the second page of this thread.
I have been getting several of these every day now for the last week-10 days.
Reply
Old Nov 16, 2005 | 01:36 AM
  #30  
2MuchRiceMakesMeSick's Avatar
TECH Senior Member
 
Joined: Apr 2004
Posts: 6,157
Likes: 1
From: Texas
Default

Originally Posted by Antagonist
Please. Databases are not written in SQL . SQL = structured query language. Queries, get it? It doesnt matter what language is used to create the program using the database . You can execute SQL from WITHIN almost any language.

If you know what you are doing.

SQL is the language that extracts/updates/maintains the information to and from the database.
You must have a language that executes the SQL commands because it cannot interface with the user by itself in a simplistic form. Think of it more as a script that needs a runtime interpreter. The point I was trying to make is that this site is not just driven by SQL, there is a whole lot more to it.
But what the hell do I know, I just write and maintain database code for a major corporation.


Originally Posted by Antagonist
I am neither an idiot or a troll
VB or any other language will not do anything its not instructed to do.

He is talking about Virtual Bulletin not Visual Basic
You remind me of this new guy at work "he has taken a SQL class in college so he knows everything"



Originally Posted by Antagonist
Ever hear of a buffer file? Guess what it does?
You dont use files to buffer for fast execution because the limitations of I/O hardware. You use variables that are managed in memory, usually varchars , ints, etc...
Reply
Old Nov 16, 2005 | 07:09 AM
  #31  
Brains's Avatar
TECH Senior Member
iTrader: (7)
 
Joined: Jan 2002
Posts: 12,754
Likes: 0
From: Katy, TX
Default

Antagonist definitely sounds like a wet-behind-the-ears still-in-school kind of kid who thinks he's got a handle on everything computer related because he took a beginners programming class. BECAUSE if he had any experience, he'd fully understand what and why, and not make incorrect statements like " There is no way a whole table would be locked when a record is edited or updated. You are mistake. sir."

Since you posess SOO much knowledge and talent, I'm simply AMAZED you haven't written your own forum software and become a millionaire

Anyway, allow me to enlighten you, grasshopper:
Originally Posted by MySQL Reference Manual :: 7.3.1 Locking Methods
MySQL 5.0 supports table-level locking for MyISAM and MEMORY tables, page-level locking for BDB tables, and row-level locking for InnoDB tables.

In many cases, you can make an educated guess about which locking type is best for an application, but generally it is difficult to say that a given lock type is better than another. Everything depends on the application and different parts of an application may require different lock types.

To decide whether you want to use a storage engine with row-level locking, you should look at what your application does and what mix of select and update statements it uses. For example, most Web applications perform many selects, relatively few deletes, updates based mainly on key values, and inserts into a few specific tables. The base MySQL MyISAM setup is very well tuned for this.

Table locking in MySQL is deadlock-free for storage engines that use table-level locking. Deadlock avoidance is managed by always requesting all needed locks at once at the beginning of a query and always locking the tables in the same order.

The table-locking method MySQL uses for WRITE locks works as follows:

*

If there are no locks on the table, put a write lock on it.
*

Otherwise, put the lock request in the write lock queue.

The table-locking method MySQL uses for READ locks works as follows:

*

If there are no write locks on the table, put a read lock on it.
*

Otherwise, put the lock request in the read lock queue.

When a lock is released, the lock is made available to the threads in the write lock queue, then to the threads in the read lock queue.

This means that if you have many updates for a table, SELECT statements wait until there are no more updates.
Reply
Old Nov 16, 2005 | 07:12 AM
  #32  
Billiumss's Avatar
TECH Addict
iTrader: (11)
 
Joined: Nov 2001
Posts: 2,975
Likes: 15
From: Erie, PA
Default

I too have noticed it has been slow, mainly at night.

I'm glad to hear that you guys are working on the problem.

With all the sponsors that LS1tech.com has and what each and everyone pays to be a sponsor, money should not be a problem of making this board faster.
Reply
Old Nov 16, 2005 | 08:18 AM
  #33  
Ouija's Avatar
12 Second Club
iTrader: (3)
 
Joined: Mar 2004
Posts: 318
Likes: 0
From: Austin, TX
Default

Originally Posted by Brains
Antagonist definitely sounds ...
Brains - From a fellow Forum Coder to another quit waisting your time smacking the uneducated back into their holes and work on that code to speed things up, unless yer taking a stress break.

It's usually a thankless job, but I'll say thank you for your time. After all you did respond to my PM about a database issue a while back.

He has no clue what he's talking about, and everyone can see that.


Antagonist - for running my little site (tiny in comparison to LS1 Tech) you have to use SQL, VBA, HTML & JSP, not to mention anything about the Hardware/Operating System/Applications side.

If you feel froggy, try taking on something like my work environment here at the State of Texas. 6000 concurrent connections, 24/7 support, millions of records, over 1 million lines of code. Daily each programmer has to use SQL, PL/SQL, HTML, JAVA, JavaScript, C++.

We have to support Tablet PC's, wireless access, high speed access, dial up access, encryption, and a million other things, just so our users can access a database. There is so much more to it all than just SQL.

Your statement is like saying "Fixing a cracked block is easy, it's just metal." Which in theory is correct, but for practical usage, is total BS.

How about I give you a hot steaming cup of:
Reply
Old Nov 16, 2005 | 08:19 AM
  #34  
Worm's Avatar
TECH Resident
iTrader: (2)
 
Joined: Jan 2004
Posts: 788
Likes: 0
From: Tulsa, OK
Default

Ok so lets look at this from a performance stance Can we OVERCLOCK the database? Get some watercooling? Or is this just about code efficiency
J/K

What does corvetteforum.com use? They have some strange archiving that archives things very quickly and if you want to search the archives you have to click on a specific section of the forum.

Just throwing that out there. I'm sure you guys have exhausted all possible routes already.


PS. Ban him Travis!
Reply
Old Nov 16, 2005 | 09:25 AM
  #35  
Brains's Avatar
TECH Senior Member
iTrader: (7)
 
Joined: Jan 2002
Posts: 12,754
Likes: 0
From: Katy, TX
Default

CF does a lot of archiving, which moves things out of the main post and thread tables. Its kind of a pain in the butt to search because of it, and is the main reason we've been hesitant to follow suit. With me converting all the queries to be SQL92 compliant, it opens us up to run any database server that PHP offers support for (in one form or another, be it a library module or ODBC). There's no abstraction layer in the code however, so the conversion is MUCH more involved than simply changing MySQL-specific language/functions in the queries. I'm having to alter a *LOT* of the source because they coded directly against MySQL and its unique way of doing things. For instance, getting the last inserted auto_increment'ed column's value for a record -- MySQL has a function last_insert_id(), that will pull the last ID without having to specify which table you want the value from. Nobody else is that "lazy" about it, so the code should be changed to specify -- and there's a LOT of locations to do so.

Then there's performance tuning differences between database engines. One of the reasons why switching over to even InnoDB on MySQL doesn't pan out well, is the use of the ever-so-common SELECT COUNT(*). With the MyISAM storage engine, this isn't a costly call at all -- it executes instantaneously because with table locking the number of records is always the total number of rows in the table. With a storage engine that supports multi-level concurrency, you could have any number of records in flux -- inserts, deletes, etc. So, a COUNT(*) is very costly - especially on large tables. vBulletin makes heavy use of COUNT(*) as well, almost every page in fact. That will have to be rewritten as well.

The only "easy" solution I've come up with, and its one I may very well do first, is to segment the site. Basically turn the forums into a group of forums. vBulletin stores all the posts in one table, and all the threads in one table. That means we have over 3 million rows in the post table. It also means the whole thing is locked on updates, which is why the entire site freezes up when locks are held. By segmenting, I can reduce that to one pair of post/thread tables per group of forums, or possibly per forum. That would reduce the number of rows considerably, and severe lock times would only affect one or a small set of forums.
Reply
Old Nov 16, 2005 | 09:33 AM
  #36  
ACW's Avatar
ACW
TECH Veteran
 
Joined: Dec 2004
Posts: 4,012
Likes: 1
From: Beaumont, TX
Default

Originally Posted by SDC
Ok so lets look at this from a performance stance Can we OVERCLOCK the database? Get some watercooling? Or is this just about code efficiency
J/K

What does corvetteforum.com use? They have some strange archiving that archives things very quickly and if you want to search the archives you have to click on a specific section of the forum.

Just throwing that out there. I'm sure you guys have exhausted all possible routes already.


PS. Ban him Travis!
Yep, IIRC, what CorvetteForum does is move posts out of the active database (archive them) very quickly, as well as having much more limited search capabilities / indexing. LS1Tech doesn't want to do junk like that
Reply
Old Nov 16, 2005 | 10:19 AM
  #37  
technical's Avatar
TECH Addict
20 Year Member
 
Joined: Mar 2004
Posts: 2,336
Likes: 0
From: Fat Chance Hotel
Default

Originally Posted by Antagonist
There is no way a whole table would be locked when a record is edited or updated. You are mistake. sir.
You have apparently never used MySQL or SQL Sever (older versions) not to mention Access. Even with a page lock you can still lock the whole table if it's small enough.

Originally Posted by Antagonist
Please. Databases are not written in SQL . SQL = structured query language. Queries, get it? It doesnt matter what language is used to create the program using the database . You can execute SQL from WITHIN almost any language.

If you know what you are doing.
Yes but can you execute SQL against every DB...
Reply
Old Nov 16, 2005 | 10:21 AM
  #38  
technical's Avatar
TECH Addict
20 Year Member
 
Joined: Mar 2004
Posts: 2,336
Likes: 0
From: Fat Chance Hotel
Default

Originally Posted by Brains
There's no abstraction layer in the code however, so the conversion is MUCH more involved than simply changing MySQL-specific language/functions in the queries.
That is precisely the problem you *tend* to find with open source PHP applications. They run fast out of the box because of that but they don't scale well. Case in point... ls1tech.com
Reply
Old Nov 16, 2005 | 11:13 AM
  #39  
Worm's Avatar
TECH Resident
iTrader: (2)
 
Joined: Jan 2004
Posts: 788
Likes: 0
From: Tulsa, OK
Default

The problem with open sources is that most contributors dont have a platform where they can really stress test the code the way ls1tech stresses it.
Reply
Old Nov 16, 2005 | 11:35 AM
  #40  
technical's Avatar
TECH Addict
20 Year Member
 
Joined: Mar 2004
Posts: 2,336
Likes: 0
From: Fat Chance Hotel
Default

Some, but not all. Best case example is Apache. Many Java technologies fall into that category as well e.g. Struts.
Reply



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

story-0
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-1
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-2
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-3
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-4
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-5
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-6
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-7
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-8
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
story-9
Coachbuilt N2A Anteros Is an LS2-Powered C6 Corvette In Italian Clothes

Slideshow: A one-off sports car that looks like a vintage Italian exotic-but hides a C6 Corvette underneath-just sold for the price of a new mid-engine Corvette.

By Verdad Gallardo | 2026-03-23 18:53:41


VIEW MORE