あけましておめでとうございます。今年もよろしくお願いいたします。
新年最初から注意喚起ですが、2011年12月31日をもってMySQL
5.0のプロダクトライフサイクルが終了しました。今後MySQL
5.0に対して新たなバグ修正やセキュリティ修正は提供されませんので、現在MySQL
5.0を利用している方はバージョンアップを計画されることをおすすめいたします。
オ …
The latest from the MySQL community
Ideas, releases, practical guides, and perspectives from the people building with MySQL.
Connector/Netはバージョンが多くあるので以前に以下のような記事を書きました。
どのMySQL Connector/Netを使いましょうか?
これに対してMySQLでのJDBCドライバ実装のConnector/Jの現在メンテナンスされているバージョンは 次の一覧のように少ないため、まよわずConnector/J 5.1.xを使ってください。
DD MON YEAR 5.0.x 5.1.x ------------------------------------------ 22 DEC 2005 5.0.0 ----- 11 JUL 2006 5.0.1 ----- 11 JUL 2006 5.0.2 ----- 26 JUL 2006 5.0.3Be ----- 20 OCT 2006 5.0.4 ----- 02 MAR 2007 5.0.5 ----- 11 APR 2007 ----- 5.1.0 Al 15 MAY 2007 5.0.6 22 JUN 2007 ----- 5.1.1 Al 29 JUN 2007 ----- 5.1.2 Be 20 JUL 2007 5.0.7 10 SEP 2007 ----- 5.1.3 RC 09 OCT 2007 5.0.8 5.1.5 GA 07 MAR 2008 ----- 5.1.6 GA 21 OCT 2008 ----- 5.1.7 GA 16 JUL 2009 ----- 5.1.8 GA 21 SEP 2009 …[さらに読む]
Twitter's new tweet store:
When you tweet it's stored in an internal system called T-bird, which is built on top of Gizzard. Secondary indexes are stored in a separate system called T-flock, which is also Gizzard based.
Unique IDs for each tweet are generated by Snowflake, which can be more evenly sharded across a cluster. FlockDB is used for ID to ID mapping, storing the relationships between IDs (uses Gizzard).
Gizzard is Twitter's distributed data storage framework built on top of MySQL (InnoDB).
InnoDB was chosen because it doesn't corrupt data. Gizzard us just a datastore. Data is fed in and you get it back out again.
To get higher performance on individual nodes a lot of features like binary logs and replication are turned off. Gizzard handles sharding, replicating N copes of the data, and job scheduling.
Gizzard is used as a building block for other storage systems at Twitter. …
[さらに読む]The InnoDB Plugin introduces the idea of a named file format and a configuration parameter to enable the use of features that require use of that format. The new file format is the “Barracuda” format, and the file format supported by prior releases of InnoDB is called file format “Antelope”. Compressed tables and the new row format that stores long columns “off-page” require the use of the “Barracuda” file format or newer. Future versions of InnoDB may introduce a series of file formats, identified with the names of animals, in ascending alphabetical order.
Beginning with this release, every InnoDB per-table tablespace
file is labeled with a file format identifier. This does not
apply to the system tablespace (the ibdata files)
but only the files of separate tablespaces (the
*.ibd files where tables and indexes are stored in
their own tablespace). As noted below, however, the system
tablespace is …
2011年8月のkazeburoさんのエントリに対する解説記事です。結論から言うとkazeburoさんの案に賛成なのですが、本日はどうしてそうなったのかというところを確認していきたいと思います。本記事はMySQL Casual Advent Calendar 2011の17日目のエントリです。16日目はakira1908jpさんでした。 当時の内容を覚えていない方は、先にkazeburoさんのエントリをご一読ください。また、テストケースがGitHubに公開されていますのでカジュアルに再現試験をすることも可能です。 Covering Index と self-join と MySQL - blog.nomadscafe.jp kazeburo’s gist: 1150842 - Gist …
[さらに読む]
2011年8月のkazeburoさんのエントリに対する解説記事です。結論から言うとkazeburoさんの案に賛成なのですが、本日はどうしてそうなったのかというところを確認していきたいと思います。本記事はMySQL Casual Advent Calendar
2011の17日目のエントリです。16日目はakira1908jpさんでした。
当時の内容を覚えていない方は、先にkazeburoさんのエントリをご一読ください。また、テストケースがGitHubに公開されていますのでカジュアルに再現試験をすることも可能です。
- …
英語を勉強したいが技術も勉強したい。それは技術者にとって悩ましい悩みではいだろうか。そんな悩める技術者諸君にとって喜ばしい知らせがある。MySQLの勉強も英語のリスニングも同時にできる、そうOurSQL Database Community Podcastならね。
OurSQL: The MySQL Database Community Podcast
だいたい1回30分前後でMySQLについて様々なトピックについてのディスカッションが行われている。既にエピソード69までたまっているのでまさに聞き放題だ!Webページ上で直接聴くこともできるし、お気に入りのミュージックプレイヤーで聴くなら下記のPodcast FeedのURLを登録すれば良い。筆者はAmarokで聴いている。
http://technocation.org/audio/feed
Enjoy!!
http://www.bearcave.com/software/antlr/antlr_examples.html
http://www.antlr2.org/doc/sor.html
http://www.antlr.org/
レプリケーションはMySQLで最もよく使われる機能のひとつだ。レプリケーションは基本的に非同期でデータの複製を行う仕組みになっているのだが、非同期故にどうしても逃れられない問題がある。そのひとつが今回のテーマ、遅延である。というと、MySQLのレプリケーションはすぐに遅延が生じてしまうように感じてしまうかも知れないが、そのようなことはない。ほとんどの場合は即座にスレーブの更新が行われる。
なぜ遅延は発生するのか、どのように遅延が起きていることを調べるのか、どのように回避するのかということを本エントリでは解説したい。うまく遅延と付き合って、MySQLのレプリケーションをより快適に運用してもらえればと思う。
…
[さらに読む]これはMySQL Casual Advent Calendar 2011 - MySQL Casualの8日目の記事です!
UDFでFizzBuzz
id:sugyanさんがストアドプロシージャでFizzBuzzをやっていたのでMySQLのUDF(user-defined function)でもやってみました。
kamipo/mysql_fizzbuzz ? GitHub
git clone git://github.com/kamipo/mysql_fizzbuzz.git cd mysql_fizzbuzz g++ -shared -fPIC -Wall -g mysql_fizzbuzz.cc -o mysql_fizzbuzz.so cp mysql_fizzbuzz.so …[さらに読む]