2015-01-01から1年間の記事一覧

split the output of mysqldump --all-databases

TWIMC BEGIN { file = "header" } /^-- Current Database: / { match($0, /`[^`]+`/) close(file ".sql") file = substr($0, RSTART+1, RLENGTH-2) } { print > file ".sql" }

Re: The MySQL 5.7 Optimizer Challenge

This is just a translation of my former, explanation-less post in this Apr. It still reproduces with 5.7.7-rc. Straightforwardly I should report a bug, but I find this: http://www.tocker.ca/2015/07/15/the-mysql-5-7-optimizer-challenge.html…

高速に並列処理: xargs -P vs parallel -j vs split -n r/

gnu

最近になって、 GNU Coreutils の split(1) に --filter ってオプションがあり、入力を並列処理する方法の1つになることを知りました*1。並列処理をしたいときに使うものとして GNU Findutils の xargs(1) -P, --max-procs (おそらく GNU 拡張) と、そのまま…

論理削除とオプティマイザ (のつもりだったけどただのメモ)

タイトルまで書いたけど面倒になったんでやめた。 % seq 1000000 > aho.outmysql> create table aho (id int, col1 int default null, col2 int default null, primary key (id), key (col1)); mysql> load data local infile '/home/ichii386/aho.out' into…