2029 件中 1531 - 1540 件を表示
« 前の 10 件 | 次の 10 件 »
Displaying posts with tag: MySQL (reset)
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

[さらに読む]
Merge java hashcode function to mysql5.1(UDF)


很多应用程序基于java的hashcode方法,因此应用使用java的hashcode算法,但是在数据库层需要做一些与应用层次相同的hash操作,例如数据迁移操作,但是目前mysql没有提供很好的hashcode的方法,因此将java的hashcode算法整合到mysql5.1中去,作为mysql的hashcode函数使用,mysql的UDF函数代码可以从下面的URL获取源代码(在使用的过程中遇到问题,请给我留言):
http://forge.mysql.com/tools/tool.php?id=335

由于java的hashcode出来的值是一个有符号的数字,因此插入数据库的时候,需要重写下java的hashcode函数,java的源代码如下:
/**
* overload
* @param input
* @return
*/
public static long hashcode(String input) {

long MAX_VALUE = 0xffffffffL;
int …

[さらに読む]
『MySQL徹底入門第3版』が来週出ます

MySQL徹底入門 第3版 ?5.5新機能対応?

 『MySQL徹底入門第2版』が出版されてから5年半。 …

[さらに読む]
Non-cryptographic hash function(UDF function) for mysql5.1

Some times, we want to use a hash funtion which is non-cryptographic,only create a number value,but mysql can't provide it, so I merge the "One At A Time hashing function" into mysql5.1,it  was originally created by Bob Jenkins.you can get my mysql hash function code from follow url:
http://forge.mysql.com/tools/tool.php?id=334

if you want use it in java and mysql,I modify the c code to java as following:

public static long hash32(String input) {            try {                  long hashend = 0L;                  int hash = …

[さらに読む]
SSD as a cheaper RAM

For RAID 10:can get 8* (Dell 1TB 7.2K SATA Hard Drive for PowerEdge R710,239$) for 8*239$=1912, which is ~1.86$ per GBFor SSD :can get 40GB card for 89$, which is ~2.2$ per GBFor memory: can get 4GB card for 33$,which is ~8.25$ per GB
















(this picture cross-post from http://www.anandtech.com/show/4244/intel-ssd-320-review)
The performance test report as following:


[さらに読む]
Compare MYSQL5.1 MYISAM and INNODB performance

Use the synbench to test mysql5.1 MYISAM and INNODB performance.get following result:

oltp-table-size=1000000
num-threads=16
max-requests=500

For insert:

MYISAM:

Creating table 'test_isam'...
Creating 1000000 records in table 'test_isam'...
real    0m12.516s
user    0m0.602s
sys     0m0.041s


INODB:

Creating table 'test_inno'...
Creating 1000000 records in table 'test_inno'...
real    0m16.746s
user    0m0.611s
sys     0m0.043s


For Query:













The …

[さらに読む]
InnoDB行ロック待ちの秒数をセッション単位で指定する[MySQL 5.1, MySQL 5.5の場合]

JUGEMテーマ:コンピュータ

InnoDBの行ロック待ち時間は秒単位でinnodb_lock_wait_timeoutシステム変数に指定した時間待つ仕様になっていました。(デフォルトは50秒)

ただMySQLではこの変数はグローバルでしか設定できず、一部のクエリのためだけにグローバル設定を変更するのはインパクトが大きく、特定の接続(セッション)やクエリ単位で設定できないかという機能要求があげられていました。

innodb_lock_wait_timeout is not dynamic, not per session

[さらに読む]
2029 件中 1531 - 1540 件を表示
« 前の 10 件 | 次の 10 件 »