Archive

With all the abstraction layers between code & database, and now with my recent CakePHP adventures: The need for writing SQL statements deminishes. But over the years I've developed my own way of formatting them. And before I'll have to wave queries goodbye forever ;) I just want to put it out there.

This is a Javascript version of the PHP function: timezone_identifiers_list.

This is a Javascript version of the PHP function: date_default_timezone_get.

This is a Javascript version of the PHP function: date_default_timezone_set.

This is a Javascript version of the PHP function: gmdate.

This is a Javascript version of the PHP function: localtime.

This is a Javascript version of the PHP function: strftime.

This is a Javascript version of the PHP function: getenv.

This is a Javascript version of the PHP function: putenv.

This is a Javascript version of the PHP function: setlocale.

Sorry folks, this article was based on flawed benchmark results, I will soon post an update!

Sometimes MySQL needs to work hard. I've been working on an import script that fires a lot of INSERTs. Normally our database server handles 1,000 inserts / sec. That wasn't enough. So I went looking for methods to improve the speed of MySQL inserts and was finally able to increase this number to 28,000 inserts per second. Checkout my late night benchmarking adventures.