Quantcast
Channel: Morgan Tocker
Browsing latest articles
Browse All 50 View Live

SQL comments - commenting out code for earlier versions

In MySQL, it's possible to comment out portions of code that you only want to work in specific MySQL versions:i.e.CREATE DATABASE /*!32312 IF NOT EXISTS*/ `a` /*!40100 DEFAULT CHARACTER SET latin1...

View Article



How fast (or slow) is MySQL Stored Procedure language?

I had a long flight from Sydney to Edinburgh this weekend, and wanted to answer a common training question - how fast/slow is the stored proc language in MySQL. To do this, I started by stealing an...

View Article

Optimizer Edge cases

I love teaching EXPLAIN in training classes with the world.sql sample database. One of my favorite edge cases to try and explain to students is:SELECT Name FROM Country WHERE continent = 'Asia' AND...

View Article

Montreal on Rails

I spoke at Montreal on Rails on Tuesday night. I think I had 5 slides, but spoke for about 45 minutes (so there's no point in uploading them). For those that missed it (or couldn't take notes fast...

View Article

Today is my last day at Sun

After almost 3 years working in Support then Training, it's time to move on. I haven't blogged much in a while, but it's something I plan to work on more now I sit on the other side.

View Article


Dead-simple server monitoring solutions

Dear Lazyweb. So, here's my thoughts:* Create a basic php/rails/insert your application language choice page.* Have it do a simple SELECT 1+1 from MySQL.* Print the results to screen.Are there any...

View Article

There's nothing point one about 5.1

MySQL 5.1 is GA. Yay!A lot of new features have been added, and the numbering convention of just adding a .1 doesn't really explain that. If I had of numbered it, I probably would have called it...

View Article

Eating your own dog food.

I'm pretty happy to hear that the MySQL Website, and the MySQL Bugs system are powered by 5.1. I think this is a real step forward from when 5.0 was released.I just want to know when the...

View Article


On Synergy: Culture conflicts between Sun and MySQL

Working at Sun was my first acquisition experience. I guess it was what I expected; managers hyping it up about being a "perfect match", and how much the two companies had in common. It was kind of...

View Article


Why you don't want to work in a travel job for Sun

I left Sun over a month ago. Despite my manager approving my expense report, the accounting team has refused it. Now I'm supposed to pay a $6,000 Amex bill while I wait for them to figure out what they...

View Article

IO scheduling in the 2.6 kernel

I was surprised by even the gap I saw on Vadim's post on the improvements of using the Noop IO scheduler. I've been changing my thoughts on what to set the scheduler to lately, and it's all leaning to...

View Article

Heading to India

I'm about to leave for India for a few weeks - so if you're looking for me in Montreal - I won't be there. What brings me there? this..

View Article

My take on the Sun Database Group visa issues

Seeing this post make the news today really interested me - since I had the (dis)pleasure of being personally involved. In the Australian spirit of 'giving word to the underdog', let me provide some...

View Article


MySQL Consulting Companies

Has anyone else noticed that almost all of the consulting companies that support MySQL (and blog) start with a 'P'? (Percona, Pythian, Proven Scaling). I think OpenQuery needs a name change to keep up...

View Article

I wish I had more levels of verbosity in logging

I've been working as a Ruby on Rails developer the last couple of months. It's interesting to see how my impression of MySQL changes when I'm on the other side - and using a development environment I...

View Article


New Amazon EC2 Features - Reserved Instances

So you can now reserve EC2 instances - which brings the cost down to about 6.7cents/hour averaged over a year.It's a great idea. I wonder if the next step will be to allow more customized instance...

View Article

Who is going to make MySQL easier to use?

This may appear a bit of a rant - but it's really intended as more of an observation from having trained people how to use MySQL, and noticing that everyone seems to make the same beginner mistakes. If...

View Article


Very Simple Introduction to Using XtraBackup on Max OS X

I've started using Xtrabackup to backup MySQL on my MacBook. Here's an example of a quick backup and restore:1. Download the latest .tar.gz from Percona:$ cd /tmp$ wget...

View Article

EC2 feature request: small instances that are 64-bit.

I know it probably doesn't make sense to use 64-bit for instances with only 1300MB memory, but that's what I'm asking. The sooner we can just all use 64-bit, the easier it will be for management.

View Article

Efficient way to copy large amounts of data?

Dear Lazyweb,Yesterday I tried to Rsync a MySQL data directory from serverA to serverB on the same network. I thought that if out of a few hunded gigabytes maybe 2% changed, this should work, right?...

View Article

Hidden gems in 5.1

I think 5.1 gets some bad press for not being a compelling upgrade. It's not the big features that make the difference, but the subtle ones. I wanted to highlight some of the these that may make your...

View Article


My MySQL Conference Submission 2010: Workarounds

I just submitted an abstract for the MySQL Conference 2010. What do I want to talk about? Workarounds.Domas likes to do tricks with GDB. Sheeri likes symlinking log files to /dev/null when not in use....

View Article


On Testing MySQL Knowledge

I can't read posts like this one without at least a little chuckle. Is the number one question you should be asking people how to start and stop MySQL on Windows? How does that really demonstrate how...

View Article

Atomic operations between keys

I've been hanging out with the cool kids lately, and learning new technologies. One common problem I notice people have, is safely emulating atomic operations between keys without transactions. i.e. in...

View Article

New Blog - www.tocker.ca

I've started a new blog at http://www.tocker.ca/,

View Article

Browsing latest articles
Browse All 50 View Live




Latest Images