1985 件中 1481 - 1490 件を表示
« 前の 10 件 | 次の 10 件 »
Displaying posts with tag: MySQL (reset)
mysql5.1 disable index gap locking

With MySQL V5.0 or before, use the my.cnf option innodb_locks_unsafe_for_binlog to minimize next-key locking.This is safe only if you do not use binlogging for replication,OR, if your application is not prone to 'phantom row' problems

Beginning with MySQL-5.1.xx, if you use row-based replication, you can safely reduce next-key locking by setting innodb_locks_unsafe_for_binlog use TRANSACTION ISOLATION LEVEL READ COMMITTED.

the detail refer URL as following:

http://dev.mysql.com/doc/refman/5.1/en/innodb-parameters.html#sysvar_innodb_locks_unsafe_for_binlog

Isolation (database systems)

From Wikipedia, the free encyclopedia.

In database systems, isolation is a property that defines how/when the changes made by one operation become visible to other concurrent operations. Isolation is one of the ACID (Atomicity, Consistency, Isolation, Durability) properties.

Isolation levels

Of the four ACID properties in a DBMS (Database Management System), the isolation property is the one most often relaxed. When attempting to maintain the highest level of isolation, a DBMS usually acquires locks on data or implements …

[さらに読む]
MHA for MySQLとオープンソースとDeNAの話

 実に久しぶりの投稿ですが、最近リクルートのセミナーで、私が少し前に公開した「Master High Availability Manager and tools for MySQL (MHA)」と、オープンソース界隈の技術者として、DeNAでどのような活躍の可能性があるかといった話をしてきました。

MHA for MySQLとDeNAのオープンソースの話 View more presentations from Yoshinori Matsunobu

 ust配信とかはしていなかったので残念ながらデモ動画は残ってませんが。。

 何点か今の時点での私の考えをまとめると、以下のような感じです。

[さらに読む]
mysql5.1 Physical Row Structure

The physical row structure for an InnoDB table depends on the row format specified when the table was created. For MySQL 5.1, InnoDB uses the COMPACT format by default, but the REDUNDANT format is available to retain compatibility with older versions of MySQL. To check the row format of an InnoDB table, use SHOW TABLE STATUS.

The compact row format decreases row storage space by about 20% at the cost of increasing CPU use for some operations. If your workload is a typical one that is limited by cache hit rates and disk speed, compact format is likely to be faster. If the workload is a rare case that is limited by CPU speed, compact format might be slower.

Rows in InnoDB tables that use REDUNDANT row format have the following characteristics:

Each index record contains a six-byte header. The header is used to link together consecutive records, and also in row-level locking.

Records in the …

[さらに読む]
VPストレージエンジンのドキュメント発見


 昨日、突然MySQLのVPストレージエンジンに目覚めて、少し触ってみていました。
http://d.hatena.ne.jp/sakaik/20110915/vp1
http://d.hatena.ne.jp/sakaik/20110915/vp2


 ドキュメントが見あたらずに、手探りで遊んでいたのですが、なんとちゃんとありました!


VPのバイナリをダウンロードをしたのが、http://spiderformysql.com/download_spider.html

[さらに読む]
VPストレージエンジンをいじめる

 テーブルが複数になった場合に気になるのがその整合性。子テーブル側のデータを直接いじって、
VPストレージエンジンがどのような挙動をするか、確認してみました。
とりあえず今回は、子テーブル2つに分割されたものを例にしていますが基本的には3つ以上でも同様かと思います。


重複カラムが別々の値を持っている場合

 カラム c02 はテーブル a1, a2 両方にあるので、片方の c02カラムの値だけを変更してみました。
以下は a1 の c02 を "NEWCOL2" に変更したもの。

mysql> UPDATE a1 SET c02="NEWCOL2" WHERE id=10;

mysql> SELECT * FROM aall; SELECT * FROM a1; SELECT * FROM …
[さらに読む]
VPストレージエンジンを試す

 突然、MySQL用のVPストレージエンジンが気になったので試してみました。
VP(Vartical Partitioning)とは、文字通りテーブルの縦分割のことで、カラムがいっぱいあるテーブルをバッサリと縦に切って(もちろんPRIMARY KEYのカラムは両方に持ちますよ)別々のテーブルに分けて管理するというもの。

[さらに読む]
Realize oracle to_char,to_number(UDF) on mysql5.1

很多时候,我们都想代码简单化,但是数据库的不同,这样的想法无法成行,最近在设计一个新项目的时候,想使得应用程序通用,既能够跑在oracle上,也能够跑在mysql上,因此将oracle的一些basic的函数在mysql上也实现了一把,本来想使用procedure实现,但这样的基础函数被应用频繁调用,使用procedure性能肯定是问题,因此改用mysql UDF,目前已经实现的函数有to_char,to_number.
源码可以从下面的URL获取:
http://forge.mysql.com/tools/tool.php?id=338
目前是beta版,大家在使用的过程中有bug,可以email给我。

下面是UDF与cast函数的性能测试结果比较:

mysql> select count(to_number(name)) from test_udf;
+------------------------+
| count(to_number(name)) |

[さらに読む]
「MySQL は HandlerSocket と Spider がビールの会」

「tokyo Linux Study 03」(9月6日開催)に、handlersocketの作者のDeNAの樋口さんと登壇させていただくことになりました。
http://atnd.org/events/18877

今回はhandlersocketの話がメインとなりまして、私からはSpiderとhandlersocketの連携等、いつもとは違ったSpiderをご紹介させて頂く予定です。

みなさまの、奮ってのご参加をお待ちしております。

What's new in MYSQL5.6

you can get following information from recording:
















Recording:
http://event.on24.com/view/presentation/flash/EventConsoleMVC.html?titlecolor=000000&eventid=332439&sessionid=1&username=&partnerref=&format=fhaudio&mobile=false&flashsupportedmobiledevice=false&helpcenter=false&key=922073B7AF1A91454265E725E320332A&text_language_id=en&playerwidth=1000&playerheight=650&eventuserid=53187285&contenttype=A&mediametricsessionid=44374847&mediametricid=735572&usercd=53187285&mode=launch#

Article:

http://dev.mysql.com/tech-resources/articles/mysql56-labs-july2011.html

[さらに読む]
1985 件中 1481 - 1490 件を表示
« 前の 10 件 | 次の 10 件 »