groongaストレージエンジン(mroonga)のバージョン 0.7(beta)をリリースしました。
groongaストレージエンジンは、全文検索用のストレージエンジンです。
http://mroonga.github.com/
今回の主な変更は以下です。
・ラッパーモードを追加しました。
ラッパーモードは、任意のストレージエンジンに全文検索機能を付加する利用方法で、InnoDBなどと組み合わせて利用することが可能です。
ラッパーモードはこれまでのモード(ストレージモード)とは、特性が異なる部分があるため、利用の際には以下のドキュメントをご確認ください。
http://mroonga.github.com/userguide/wrapper.html
…
The latest from the MySQL community
Ideas, releases, practical guides, and perspectives from the people building with MySQL.
when we set sync_binlog=1,the mysql writing speed will drop
down,why?
following is root cause:
sync_binlog=1 is sometimes required for critical applications. If
the sync_binlog
is not set to 1, there is a risk of corruption of the binary log
if the
server crashes. But, in many filesystems/OS, sync_binlog=1 is
currently way
too slow (sometimes 2-4 times slower than set to 0).
the cause of the performance problem that one of the big
causes is architecture of writing to binlog, "extending file
per
each commit"
Currently binlog file is not pre-allocated, but extending per
each transaction
commit. In contrast, InnoDB log file is pre-allocated and file
size is not
changed. In other words, binlog adopts appending architecture,
InnoDB log
adopts overwriting architecture.
For most of operating systems/file systems (including Solaris ufs
and Linux …
1)install libunwind
CPPFLAGS="-I /usr/local/libunwind/include"
LDFLAGS="-L/usr/local/libunwind/lib"
export CPPFLAGS
export LDFLAGS
./configure --prefix=/usr/local/google-malloc --enable-shared
--enable-static --enable-frame-pointers
make && make install
2)add the export comand to mysqld_safe file and restart
mysql service.
export
LD_PRELOAD=/usr/local/google-malloc/lib/libtcmalloc.so
3)give the tcmalloc and malloc test report.
News Facts
Enabling more efficient and lower cost deployments of
virtualized MySQL environments, Oracle today announced
the first Oracle VM Template for MySQL Enterprise Edition.The new Oracle VM
Template for MySQL helps eliminate manual configuration efforts
and risks by providing a pre-installed, pre-configured and
certified software stack that includesOracle VM Server for x86, Oracle Linux with the …
|
WEB+DB PRESS Vol.63 WEB+DB PRESS Vol.63の他のレビューをみる» 評価: |
JUGEMテーマ: …
MySQLはGPLv2で頒布されているフリー(自由な)ソフトウェアだ。誰でも自由に改造、改善、機能追加して、GPLv2のもと再頒布することが出来る。
そうは言っても改造なんて敷居が高くて出来ないよ・・・という人に朗報なのが本書「MySQL 5.1 Plugin Development」だ!MySQLはストレージエンジンによってデータを管理するレイヤーが独立しているのはよく知られているが、MySQL 5.1ではさらに一歩進んで、ストレージエンジンを含む様々なプラグインを作成できるようになった。プラグインAPIを使ってMySQLを拡張すれば、無造作に改造してしまうよりもずっと楽にMySQLをハック*1することが出来るだろう。
MySQL 5.1で利用可能なプラグインPlugin APIは、MySQL 5.1で新たに追加された機能である。これにより、共有ライブラリ形式
为了满足业务增长和服务能力的增长,我们需要必要的sharding操作,通过水平或者垂直的切割将系统分别放置于不同的物理机器上,从而达到很好的扩展性,也为业务的发展提供技术保证,那么看似简单的sharding,在应用层次需要做那些工作呢?
在详细描述之前,我们需要定义以下两件事:
(1)定义sharding的方式,设定我们需要sharding模式是通过SQL方式访问数据库。
(2)定义SQL访问时sharding的精细度,即需要SQL解析的模式还是简单的数据源绑定模式,不同的实现方式其实现复杂度也完全不一样。
接下来我们开始详细讲解数据源绑定模式和SQL解析模式的具体实现方法。
…
很多时候大家都希望用一套通用的方法解决业务数据的查询问题,这样的思路没有错误,都是希望通过简单的方法实现数据架构,但如果通用方法没有考虑业务数据分布的特性时,那我们就会遇到一些无法胜任的大数据量查询,而这样的数据架构往往无法给予解决。此时看到前端设计师疼苦的表情时,就知道我们再一次“强奸”了他们的设计,或许我们能够说服前端进行一些修改而满足我们的架构,但当我们这样的架构无法满足客户的需求时,这样的架构可能无法面临失败的结局。
作为一名数据架构师,我们早期就应该考虑到业务数据分布的特殊性,如果没有考虑到,将会是致命的。那么我们该如何发现并能够早期解决这样的问题呢?下面我们以具体的案例来介绍说明。
案例一:select * from user where email like …
MySQLでテーブルへのカラム追加やテーブルの再編成を行うには、ALTER TABLE文を使用します。MySQLのALTER TABLE文は、変更後の定義にもとづく作業用テーブルを作成し、変更前のテーブルから作業用テーブルへデータをコピーして、最後に二つのテーブルを入れ替えるという仕組みになっています。テーブルへのインデックス追加についても、現在のところ大半のケースで内部的にALTER TABLE文が実行されています。 ALTER …
[さらに読む]