The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. November 21, 2008, 02:42:12 AM

Login with username, password and session length


Pages: 1 2 [3]
  Print  
Author Topic: taming an enormous database  (Read 1785 times)
perkiset
Olde World Hacker
Administrator
Lifer
*****
Online Online

Posts: 5138


:sniffle: Humor was so much easier before.


View Profile
« Reply #30 on: November 17, 2007, 05:20:27 PM »

InnoDB, however, cuts into performance pretty hard. The largest reason for InnoDB is if you need transactions. If you are only doing relatively simple DB work, then the default handler is fine. And the table-locking issue only really becomes an issue if you have a high-thrash database where lots of processes are trying to update simultaneously. The lock/release cycle is actually really quick, but it does hold up all other process from writing. Lock/release does not affect reading the table, however, so if you have a high-read/low-write application, the defaults are *very* adequate.
Logged

If I can't be Mr. Root then I don't want to play.
chide
Rookie
**
Offline Offline

Posts: 20


View Profile WWW
« Reply #31 on: November 18, 2007, 10:00:54 AM »

That used to be the case.. InnoDB has gotten a LOT better though:
http://www.mysqlperformanceblog.com/2007/01/08/innodb-vs-myisam-vs-falcon-benchmarks-part-1/

Though YMMV, of course.
Logged
Indica
Rookie
**
Offline Offline

Posts: 49


View Profile
« Reply #32 on: November 19, 2007, 12:36:59 AM »

If you are only doing relatively simple DB work, then the default handler is fine. And the table-locking issue only really becomes an issue if you have a high-thrash database where lots of processes are trying to update simultaneously.

the majority of the queries are just selecting data and updating one field, nothing too complex. just a lot of select/updates.
Logged
chide
Rookie
**
Offline Offline

Posts: 20


View Profile WWW
« Reply #33 on: November 19, 2007, 12:47:24 AM »

Either way.. give it LOTS of cache.  (but not too much that the OS starts swapping it to disk) Smiley
Logged
Pages: 1 2 [3]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!