Bam: MySQL error 28, and suddenly my queries came to a stop.
Error 28 is about disk space, usually the disk space for temp tables. The first thing to do is figure out what filesystem(s) the tables are on. SHOW VARIABLES LIKE “%dir%” will return a number of results, but the ones that matter are tmpdir [...]
Posted May 1, 2007 by Casey
Categories: Technology. Tags: disk space, error, error 28, mysql, mysql optimization, query optimization, table size, temp table. One Comment.
Peter Gulutzan, author of SQL Performance Tuning, writes in The Full-Text Stuff That We Didn’t Put In The Manual about the particulars of word boundaries, index structure, boolean searching, exact phrase searching, and stopwords, as well as offering a few articles for further reading (Ian Gilfillan’s “Using Fulltext Index in MySQL”, Sergei Golubchik’s “MySQL Fulltext [...]
Posted September 17, 2006 by Casey
Categories: Blink, Technology. Tags: full text, full text index, keyword searching, mysql, mysql indexing, Peter Gulutzan, stopwords. 2 Comments.
memcached, a “highly effective caching daemon, …designed to decrease database load in dynamic web applications,” and the related PHP functions
pspell PHP functions related to aspell and this pspell overview from Zend
http_build_query, duh?
current connected mysql threads * unix load average = system busy; reduce operations when $system_busy > $x
development, memcached, mysql, [...]
Posted August 30, 2006 by Casey
Categories: Technology. Tags: development, memcached, mysql, php, pspell. Be the first one.
I got itchy about magic quotes the other day because it’s the cause (through a fairly long cascade of errors) of some performance problems and runaways I’ve been seeing lately (pictured above).
But I deserve most of the blame for allowing a query like this to run at all:
SELECT type, data, count(*) AS hits
FROM wpopac_WPopac_bibs_atsk
WHERE data [...]
Posted August 23, 2006 by Casey
Categories: Libraries & Networked Information, Technology. Tags: bug, bugs, mysql, patch, performance, queries, query, query failures, wpopac. Be the first one.
My Sun T2000 is here, and with Cliff’s help it’s now patched, configured, and online. (Aside: what’s a Sun Happy Meal?)
I’ll second Jon’s assessment that Sun really should put some reasonable cable adapters in the box, as the the bundle of adapters necessary to make a null modem connection to the box is ridiculously out [...]
Posted June 11, 2006 by Casey
Categories: Technology. Tags: amp, amps, apache, Blastwave.org, lamp, mysql, php, solaris, Solaris 10, sun, Sun Microsystems, t2000. Be the first one.
A Solaris sysadmin I’m not. But now that I’ve finally got the Sun T2000 server I begged for a while back, I’ve got to ramp it up right quick.
The first task is to get a, um, LAMP environment up and running (SAMP?…oh, Sun wants us to call it AMPS). A bit of Googling turned up [...]
Posted June 7, 2006 by Casey
Categories: Technology. Tags: amp, amps, apache, lamp, mysql, open source, oss, php, solaris, sun, t2000. 4 Comments.
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.
Zach suggested it last week, but it’s only now that I’ve gotten around to setting up MySQL’s slow query log.
It’s easy enough, you’ve just got to put a couple lines like this in your my.cnf (which is in /etc on my server):
log-slow-queries = /var/log/mysql/mysql-slow.log
long_query_time = 10
This should get most people running, but this story in [...]
Posted February 13, 2006 by Casey
Categories: Technology. Tags: high performance mysql, mysql, mysql optimization, performance optimization, query optimization, slow queries, slow query log. One Comment.
A couple notes from the past few days of tweaks and fixes:
Hyper-threading has a huge effect on LAMP performance.
From now on, I’ll have bad dreams about running MySQL without Query Caching in the way that I used to have nightmares about going to school wearing only my underwear. The difference is that big.
WordPress rocks, but [...]
Posted February 7, 2006 by Casey
Categories: Technology. Tags: hyperthreading, lamp, mysql, mysql optimization, performance optimization, php, server optimization, server performance. 3 Comments.
I picked Plesk over CPanel as my server control panel because it was cheaper, looked better, and seemed to have all the features I wanted. What I didn’t know was that it came with PHP4 and MySQL3 at times when each was a major version ahead of that. When the good folks at my hosting [...]
Posted January 26, 2006 by Casey
Categories: Technology. Tags: cpanel, hosted server, hosting provider, mysql, plesk, upgrade. 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.
Or, er, my server will be crushed. I guess I should admit that my stuff could do with some optimization, maybe. Perhaps what I really need is something faster than Celeron with 512MB RAM. Maybe.
tags: 512mb ram, apache, break point, breaking point, celeron, crushed, load average, mysql, php, server, top, web server
Posted November 2, 2005 by Casey
Categories: Technology. Tags: 512mb ram, apache, break point, breaking point, celeron, crushed, load average, mysql, php, server, top, web server. 5 Comments.
I wrote bsuite_speedcache to reduce the number of database queries I was executing per page load. By implementing it on some of the content in my sidebar, I dropped 35 queries for each cache hit. That might not seem like much, but it should average about 525 queries per minute that that my host server [...]
Posted October 3, 2005 by Casey
Categories: Technology. Tags: bsuite, bsuite_speedcache, cache, cache hit, codex, database, database caching, database optimization, database performance, database queries, mysql, mysql caching, mysql optimization, mysql performance, mysql queries, wordpress, wordpress optimization, wordpress performance, wordpress performance optimization, wordpress plugin. 4 Comments.
Here’s an interesting GeoPlace.com article on open source GIS tools, including GIS extensions to PosgreSQL and MySQL. Via The Map Room.
tags: geo world, geocode, geocoding, geographic information system, geography, geolocation, gis, gis development, gis guide, gis tools, map room, mapping, mysql, open source, open source gis, open source tools
Posted September 27, 2005 by Casey
Categories: Blink, Technology. Tags: geo world, geocode, geocoding, geographic information system, geography, geolocation, gis, gis development, gis guide, gis tools, map room, mapping, mysql, open source, open source gis, open source tools. Be the first one.
I’m going out on a limb to say MySQL’s full-text indexing and searching features are underused. They appeared in MySQL 3.23.23 (most people are using 4.x, and 5 is in development), but it’s been news to most of the people I know.
Here’s the deal, the MATCH() function can search a full-text index for a string [...]
Posted September 6, 2005 by Casey
Categories: Technology. Tags: boolean search, boolean searches, boolean searching, database, db, docs, documentation, full text, full text index, full text search, full text searching, fulltext, fulltext search, keywords, match(), mysql, rank, relevance, relevance rank, relevance ranked, relevance ranking, search, search full text. 8 Comments.