Archive for the ‘Database’ Category

MySQL replication in PHP - on the same machine

Wednesday, September 14th, 2011

I just realized I needed to replicate some data from one database to another, but only certain tables.... Read More

MySQL / InnoDB performance optimization

Wednesday, September 14th, 2011

I’ve recently gotten some help and done some research into optimizing a MySQL database. The following applies if you have a powerful box at your disposal, I have 32GB RAM and 32 cores. If you are very limited hardware wise then not much of the following will apply.... Read More

Clojure and MySQL

Sunday, February 13th, 2011

It’s time to start saving the data we downloaded in the prior part in a MySQL database.... Read More

Generating extended MySQL inserts in PHP

Thursday, November 4th, 2010

Today I just realized I didn’t have any PHP code to generate extended MySQL inserts at my disposal. For heavy inserts I’ve been using BEGIN and COMMIT with lines terminated with ;. ... Read More

Remote MySQL database backup with local Linux shell

Wednesday, July 14th, 2010

There is a lot of talk about a lot of automation tools these days. Truth is though that you can cover a lot by simply using a normal shell script and some common Linux tools.... Read More

Clojure and Cassandra with clj-cassandra

Sunday, May 9th, 2010

I’ve just finished playing with Robert Luo’s clj-cassandra for today and it’s time to recap what’s happened so far.... Read More

Memcached in PHP on Dapper

Monday, February 8th, 2010

What is Memcached and what is it good for?... Read More

MySQL tips and tricks

Tuesday, May 26th, 2009

Update: This stuff has its own MySQL page now where we continue :) ... Read More

CRUD with PHP Doctrine

Sunday, August 24th, 2008

This piece is building on the prior tutorial, we now have Retrieve, Update and Delete in addition to the Create stuff. The prior tutorial has also been updated since the fromArrayExt method needed some adjustments to manage updating.... Read More

PHP Doctrine introduction for dummies

Tuesday, August 5th, 2008

It was long overdue but finally I’ve taken a look at Doctrine. And I’m blown away, bye bye Zend DB.... Read More