The Artima Developer Community
Sponsored Link

PHP Buzz Forum
Using InnoDB with Serendipity

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jackson Miller

Posts: 222
Nickname: jaxn
Registered: Oct, 2004

Jackson Miller is a software developer in Nashvillle, TN currently working at CentreSource.com
Using InnoDB with Serendipity Posted: Jun 28, 2005 9:31 AM
Reply to this message Reply

This post originated from an RSS feed registered with PHP Buzz by Jackson Miller.
Original Post: Using InnoDB with Serendipity
Feed Title: Jaxn.org
Feed URL: http://jaxn.org
Feed Description: PHP thoughts on architecture and application design. Includes development information about Core Enterprise PHP.
Latest PHP Buzz Posts
Latest PHP Buzz Posts by Jackson Miller
Latest Posts From Jaxn.org

Advertisement
I have switched the Serendipity install on jaxn.org to InnoDB tables from MyISAM tables. Using InnoDB tables has it's pros and cons in this situation, but for me it is the best thing to do.

By using InnoDB tables I give up a few things. The biggest downside to using InnoDB tables is that I may break future upgrades that have to alter tables (most notable if it has to do with Fulltext indexes). The other main downside is that without the support of Fulltext indexes, the search plugin will not work. I may switch to Google search or I may write a search plugin that does not use Fulltext indexes (I am temporarily disabling search).

However, there are some serious cons to using MyISAM tables which I feel affect more users and are solvable by moving to InnoDB tables. The biggest of which is table locking. MyISAM tables are locked when doing an insert or update whereas InnoDB tables implement row-level locking for inserts and updates. Since I update regularly this is a little problem, but when I am under attack from a TrackBack spammer, then the site is unusable. Since all pages access the comments table, a steady stream of comments keeps the table locked and the site slows to a crawl. There are days when I have hundreds of TrackBacks that get accepted from a spammer (awaiting moderation so no users see them); there are probably hundreds more that get blocked. Using InnoDB tables will keep the site swimming along even during an attack.

Update: When Serendipity's search function fails it really fails ugly. I am disabling search for the time being.

Read: Using InnoDB with Serendipity

Topic: Zend Platform (Buran Beta) Previous Topic   Next Topic Topic: phpWebSite

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use