クエリログを吐かせたくないけど実行されているクエリを追いたいとき - MySQL Casual Advent Calendar 2010 続きを読む
複数台のMySQLを対象に作業するときは、オペミスしないためにも「mysql>」というプロンプトをカスタマイズして、ホスト名等を表示させるべきです。 続きを読む
2010年10月14日木曜日 Q4Mのデータファイルとcompactionの関係 Q4Mを運用していると、時折.Q4Mファイルがコンパクションされず肥大することがあります。 (コンパクションが実施されたかどうかはログに出るので、それを見て確認できます) 基本的にコンパクション... 続きを読む
2010-09-27 大人のためのInnoDBテーブルとの正しい付き合い方。 InnoDB関連でよくある質問のひとつに「テーブルのメンテナンスは何をすればいいんですか?」というものがある。InnoDBはMySQL 5.5でデフォルトストレージエンジンとなるため、InnoDBのテーブルメ... 続きを読む
Write-heavy workloads can reach a situation where InnoDB runs out of usable space in its redo log files. When that happens, InnoDB does a lot of disk writes to create space and you can see a drop in server throughput for a few seconds. From I... 続きを読む
It is great to be able to build small utilities on top of an excellent RDBMS. Thank you MySQL. This is a small but complex utility to perform online schema change for MySQL. We call it OSC and the source is here. Some ALTER TABLE statements ... 続きを読む
DB 処理における Fixture テストの勧め 自己紹介 Toru Yamaguchi <zigorou@cpan.org> id:ZIGOROu (@zigorou) 株式会社ディー・エヌ・エー ソーシャルメディア事業本部プラットフォーム統括部システムグループエンジニア Japan Perl Association 理事 今回のお題... 続きを読む
MySQL Performance: InnoDB IO Capacity & Flushing This article was initially inspired by Vadim's post on mysqlperformanceblog.com comparing MySQL 5.5.4 and XtraDB under TPCC-like workload. Vadim's post has opened an interesting discussion abou... 続きを読む
slow query logとかをTest::mysqldで出す 以前ここで書いたTest::mysqldの仕組み、すこーしずつ毎回変えながら使ってる。今は継承はしてないが、まぁやってることはだいたい一緒。 で、テーブルのインデックスとか使ってるクエリとかを確認したいなーと思って、... 続きを読む
MySQLでテーブルへのカラム追加、インデックス追加やテーブルの再編成などを行うと、その間テーブルに共有ロックがかかってしまいます。そのためこれらのメンテナンス処理は、通常利用者の少ない深夜早朝帯にサービスを止めて実施する必要があります。本日はそ... 続きを読む
2010-06-01 「エキスパートのためのMySQL[運用+管理]トラブルシューティングガイド」発刊のおしらせ。 来たる6月12日、我が入魂の書籍が発刊される運びとなった。執筆を開始したのはすでに一年以上前であり、本ブログでも何度か「執筆中です!」といいながらな... 続きを読む
I wrote about FlashCache there, and since that I run couple benchmarks, to see what performance benefits we can expect. For initial tries I took sysbench oltp tests ( read-only and read-write) and case when data fully fits into L2 cache. I ma... 続きを読む
出ました。今回は機能追加が1件、バグ修正が55件あります。バグ修正のうちセキュリティに関するものが1件、パーティショニングに関するものが5件、レプリケーションに関するものが7件となっています。MySQL 5.1.38から本体に付属するようになったInnoDB Plugin... 続きを読む
2010-04-20 まるで魔法のようなストレージエンジン??VP for MySQLによる驚愕のテーブル操作テクニック。 先日、SPIDERストレージエンジンについて2度に渡り本ブログで紹介した(その1:Not Only NoSQL!! 驚異的なまでにWRITE性能をスケールさせるSPIDERスト... 続きを読む
1 奥野 幹也 シニアテクニカルサポートエンジニア MySQL サポートサービス本部 サン・マイクロシステムズ株式会社 実践! MySQL パフォーマンス チューニング 1 Sun Confidential: Internal Only 2 本日のお題 • MySQL Enterprise Monitor の活用 > MEM2.1: ... 続きを読む
Perl, Test, MySQLやってみたかったからついやってみた。 #!/usr/bin/perl use strict; use warnings; use Data::Dump qw(dump); use DBI; use Test::More; use Test::Exception; use Test::mysqld; use Test::TCP; sub setup_master { # http://dev.mysql.com/... 続きを読む
Sunday, March 28, 2010 Fast reads or fast scans? MyISAM is frequently described and marketed as providing fast reads when it really provides fast index and table scans. This is a more narrow use case as fast reads implies great performance fo... 続きを読む
IntroductionReplication state on the slave is stored in two files: relay-log.info and master.info. The slave SQL thread commits transactions to a storage engine and then updates these files to indicate the next event from the relay log to be ... 続きを読む
2010-03-09 InnoDBでCOUNT()を扱う際の注意事項あれこれ。 InnoDBを使うとき、MyISAMと比較して度々やり玉に挙げられるポイントとして「COUNT()が遅い」というものがある。確かにInnoDBにおいて行数を弾き出すのにはテーブルスキャンが必要なのだが、そもそもMy... 続きを読む
I’m running in this misconception second time in a week or so, so it is time to blog about it. How blobs are stored in Innodb ? This depends on 3 factors. Blob size; Full row size and Innodb row format. But before we look into how BLOBs are ... 続きを読む