Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome or Safari browser. Firefox 10 (to be released soon) will also handle it.

DBの自動再接続の話

@tsucchi

自己紹介

DB の自動再接続とは

DB の自動再接続時の主な問題

背景(1)

背景(2)

トランザクション

$db->txn_begin();
$db->insert('people', { ... });
... #ここで接続が切れたとする
$db->insert('item', { ... }); #この insert が再接続で有効になったら困る
$db->txn_commit();

prefork 型のサーバへの対応

結論

あるいは

結論

おしまい

Use a spacebar or arrow keys to navigate