Steve Souders: 10% of the problem is server performance, 90% of problem is browser activity after the main html is downloaded. He wrote the book and developed YSlow, so he should know.
JavaScripts are downloaded serially and block other activity. Most JavaScript functions aren’t used at OnLoad. We could split the JS and only load essential [...]
Posted August 16, 2008 by Casey
Categories: Technology. Tags: javascript, optimization, performance, Steve Souders, website. One Comment.
When doing a bulk insert/update/change to a MySQL table you can temporarily disable index updates like this:
ALTER TABLE $tbl_name DISABLE KEYS
…do stuff…
ALTER TABLE $tbl_name ENABLE KEYS
From the docs:
ALTER TABLE … DISABLE KEYS tells MySQL to stop updating non-unique indexes. ALTER TABLE … ENABLE KEYS then should be used to re-create missing indexes. MySQL does this [...]
Posted July 1, 2008 by Casey
Categories: Technology. Tags: ALTER TABLE, DISABLE KEYS, ENABLE KEYS, mysql, optimization. Be the first one.
The WordPress team has taken up the issue of performance optimization pretty seriously, and I look forward to the fruits of their efforts, but I’m also casting a critical eye on my own code. Thanks to caching and a hugely optimized query architecture, Scriblio is now performing better than ever, and I’m now looking at [...]
Posted January 23, 2008 by Casey
Categories: Technology. Tags: fixed, mysql, optimization, query, query optimization, wordpress. Be the first one.
After reporting weirdness last week I finally sat down with a completely clean and virgin install of WordPress 2.3.2 and traced what happens when you make a permalink request for a non-existent URL.
Here are two sets of URLs to use as examples and context:
These are valid URLs:
http://site.org/archives/101
http://site.org/page-name
These are _not_ valid URLs:
http://site.org/archivezorz/101
http://site.org/favicon.ico
Valid URLs get parsed, the [...]
Posted January 18, 2008 by Casey
Categories: Technology. Tags: 404, behavior, hacking, mysql, optimization, permalinks, wordpress. One Comment.
Yes, I’m still trying to squeeze more performance out of MySQL. And since small changes to a query can make a big difference in performance…
Here are two really easy things to be aware of:
Never do a COUNT(*) (or anything *, says Zach). Instead, replace the * with the name of the column you’re searching against [...]
Posted June 5, 2007 by Casey
Categories: Technology. Tags: mysql, optimization, performance, query optimization, tips. 2 Comments.
I’ve been working on MySQL optimization for a while, and though there’s still more to done on that front, I’ve gotten to the point where the the cumulative query times make up less than half of the page generation time.
So I’m optimizing code when the solution is obvious (and I hope to rope Zach into [...]
Posted May 31, 2007 by Casey
Categories: Technology. Tags: acceleration, apc, caching, intermediate code cache, optimization, php, scaling, web applications, zend. 5 Comments.
Ryan Boren wrote about using memcached with WordPress almost a year ago:
Memcached is a distributed memory object caching system. WordPress 2.0 can make use of memcached by dropping in a special backend for the WP object cache. The memcached backend replaces the default backend and directs all cache requests to one or more memcached daemons. [...]
Posted December 13, 2006 by Casey
Categories: Technology. Tags: caching, memcached, optimization, wordpress. One Comment.
I’ve been following WP2.1 development, but Aaron Brazell’s post in the development blog wrapped up a lot of questions all at once.
The short story is that 2.1 is going to bring some really good changes that will allow more flexibility and better optimization of WPopac. Of the four changes Brazell names, the last two, the [...]
Posted December 12, 2006 by Casey
Categories: Libraries & Networked Information, Technology. Tags: development, optimization, WordPress 2.1, wpopac. One Comment.
Update: bugfix release b2v6 available.
Some conversations with Chow Kah Soon, who’s site is full of diversions from work , finally convinced encouraged me to solve some small problems that were giving him big trouble. Chow Kah Soon is in the lucky, but rare, position of having over 20,000 unique daily visitors to his site, [...]
Posted April 5, 2006 by Casey
Categories: Technology. Tags: bstat, bsuite, Chow Kah Soon, documentation, KahSoon.com, mysql, optimization, update, wordpress. 4 Comments.
I have over 1000 posts here at MaisonBisson, but even so, the table with all those posts is under 3MB. Now I’ve got a project with 150,000 posts — yes, 150,000 posts! — and the table is about 500MB. An associated table, structured sort of like WP’s postsmeta, has over 1.5 million records and weighs [...]
Posted January 17, 2006 by Casey
Categories: Technology. Tags: big databases, database optimization, db, mysql, mysql optimization, mytop, optimization, server overload, server sizing. 2 Comments.