追記: rehash(auto-rehashも含む)すると、SQL文の補完(seleでタブ打鍵とか)が効かなくなるよと、はす向かいの人に教えてもらいました。
個人的には、SQLは「mysql> help
select」とかでオンラインヘルプがびょっと出るので、スキーマの補完ができるんならSQLの補完はとりあえずあきらめてもいいかなと思っています。
…
こんにちは。
巷を騒がせている Sun による MySQL の買収に関してちょっと個人的に注目した言葉を紹介しておきます。 But as I
pointed out, we heard some paradoxical things, too. CTO's at
startups and web companies disallow the usage of products that
aren't free and open source. They need and want access to source
code to enable optimization and rapid problem resolution
(although they're happy to pay for support if they see value).
Alternatively, more traditional CIO's disallow the usage of
products that aren't backed by commercial support relationships -
they're more comfortable relying on vendors like Sun to manage
global, mission critical infrastructure.
This puts products like MySQL in an interesting position. They're a part of every web company's infrastructure, to be sure. And though many of the more traditional companies use MySQL (from auto companies to financial institutions to banks and …
[さらに読む]
こんにちは。
巷を騒がせている Sun による MySQL の買収に関してちょっと個人的に注目した言葉を紹介しておきます。 But as I
pointed out, we heard some paradoxical things, too. CTO's at
startups and web companies disallow the usage of products that
aren't free and open source. They need and want access to source
code to enable optimization and rapid problem resolution
(although they're happy to pay for support if they see value).
Alternatively, more traditional CIO's disallow the usage of
products that aren't backed by commercial support relationships -
they're more comfortable relying on vendors like Sun to manage
global, mission critical infrastructure.
This puts products like MySQL in an interesting position. They're a part of every web company's infrastructure, to be sure. And though many of the more traditional companies use MySQL (from auto companies to financial institutions to banks and …
[さらに読む]
こんにちは。
巷を騒がせている Sun による MySQL の買収に関してちょっと個人的に注目した言葉を紹介しておきます。 But as I
pointed out, we heard some paradoxical things, too. CTO's at
startups and web companies disallow the usage of products that
aren't free and open source. They need and want access to source
code to enable optimization and rapid problem resolution
(although they're happy to pay for support if they see value).
Alternatively, more traditional CIO's disallow the usage of
products that aren't backed by commercial support relationships -
they're more comfortable relying on vendors like Sun to manage
global, mission critical infrastructure.
This puts products like MySQL in an interesting position. They're a part of every web company's infrastructure, to be sure. And though many of the more traditional companies use MySQL (from auto companies to financial institutions to banks and …
[さらに読む]
こんにちは、mixi開発部にてアプリケーション開発をしていますyouheiです。
今回は、MySQL-5.0.45のInnoDBで連番を管理するテーブルのパフォーマンス測定をしていたのですが、その際に少し変わったデッドロック問題に遭遇しましたので、そのあたりをネタとして書いてみたいと思います。
まずは、今回使用したデータベースのスキーマは下記のようなものです。
CREATE TABLE num (
id bigint unsigned NOT NULL default '0'
) Engine=InnoDB;
AUTO_INCREMENTは使用していません。
そこに1レコードだけ登録します。
INSERT INTO num (id) values (1);
そして実際連番を取得する際には、
UPDATE num SET id = LAST_INSERT_ID(id+1);
…
[さらに読む]MySQL 4.1.1以降なら、SHOW SLAVE STATUSでSeconds_Behind_Masterというのが見られるそうで、これが遅延秒数の指標として使えるっぽい。
Seconds_Behind_Master
This field is an indication of how “late” the slave is:
In essence, this field measures the time …
という関数があるのを知った。
すでにそこに動いているmysqldがあるのなら、これ使って複数サーバ/クライアント向けのロックサーバがすぐにできそう。
見本誌届きました。今回の連載『MySQL5 …
[さらに読む]