'Programming' Archive

The Performance Power of MySQL Index

I’m at the point in the development cycle where performance is the worth working on, for two reasons; everything else that’s going in is in, it’s too slow.

After one too many out-of-memory errors and far too many times wondering if I should have purchased a larger server to begin with, I sent an SOS message to McClain.

I’ll paraphrase his response, “You don’t have any indexes in your database. Get some.”

I took McClain’s advice and drew up a migration to add indexes for any table with a *_id in it, and a couple heavily-used non _id columns.
add_index :publishings, %w(item_id feed_id)
remove_index :publishings, %w(item_id feed_id)

The results in my feed parsing engine are stunning.
Before indexes: 50-60 seconds / feed
After indexes: 10-12 seconds / feed

REST-less with link_to

Passing Sessions and Referers in Rails Functional Tests

MySQL on OS X Reinstall Reminders

Framing Rails Tests: Tests are Requirements

The Power of Vendor/Gems

Regrets: Not Getting a CS Degree

How to Decode TinyURLs with Ruby

How to Automatically Link URLs in Rails

Rails: Cookies, Frozen Gems, and TextDrive

SSHKeychain.socket Error on Rake Remote:Setup

How To Set Up Subversion, svnX, for TextDrive on OS X

Introducing the HijackingWP Script

Using Names in Rails Routes Instead of IDs

Anyone Know How to Read the Treo PhoneCallDB.pdb?

Locally Running Multiple Rails Apps on OS X

What’s Your Favorite Open Source Project?

Setting up a Web Development Environment in Tiger

Your Attention.xml Please

Learning Ruby – Day 14