MySQL 5.1 の詳細解説 - MySQLカンファレンス2007


Table/Index パーティショニング

  • 全てのエンジンで使えるようにした
  • 5.1で実現

パーティショニング例

レンジパーティショニング

ハッシュパーティショニング

キーパティショニング

リストパーティショニング

サブパーティショニング

パーティショニングで90%短縮!


フルテキスト/プラグイン Enhancements

  • 2004年、Sennaがやってきた

XML Xpath サポート

  • 5.1で実験的に。
  • Address parts in XML document
  • Allows manipulation of
    • Strings
    • Booleans
    • Numbers
  • Models XML document as tree of nodes

XPath


RSSでのXPath


アーカイブエンジン Enhancements

  • I/Oのオペレーションが2倍になった
  • メモリの要求が少なくなった
  • AUTO INCREMENTをサポート
    • Unique key support
    • Non-unique key support

MySQL Cluster Disk-Based Data


Row-Based Replication

  • New replication option - statement-based replication retained
  • Handles all replication scenarios (daterministic, etc.)
  • Safest from of replication
  • Common to most other RDBMS's
  • Statement-based approach still available
  • Mixed mode available thet does statement and row-based replication

タスクスケジューラ

  • New object - "Event"
  • Create one-time or recurring tasks
  • Execute SQL, block of SQL, or stored procedure
  • Multiple threads used for task execution
  • Can kill running task
  • Only supported via row-based replication

イベント例




Alterの高速化、インデックスの追加削除の高速化

インポートの高速化

  • New option for mysqlimport utility
  • --use-threads option allows DBA to specify multiple threads
  • Particularly well-used by MySQL Cluster

データベースの管理性

  • SHOW PROCESSLIST command now system table
  • General and Slow Query Log now system tables
  • Can easily query tables to find all or just inefficient SQL
  • General/Slow Query Log use CSV engine and can be read by MS Excel

New Performance/Load Testing Utility

  • その名は "mysqlslap"
  • Simulates many concurrent connections to MySQL server
  • Repetitively runs designated SQL load
  • Can test multiple engines
  • Performs creation of test schema and population of data

MySQLSlap例

  • ab(apache bench)と同じルック&フィール


memcache Engine

HTTP Engine


質疑応答

  • EventでOptimizeするのあぶなくない?Optimazeは何か改善されたの?
  • オーバーヘッドについて