SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Downloaden Sie, um offline zu lesen
mroongaの未サポート機能
   (2011/11/29時点)



                  Kentoku SHIBA
     kentokushiba[at]gmail[dot]com
mroongaの未サポート機能
・UTF8以外の文字コード
・COLLATION
・condition pushdown
・点以外の空間情報
・0跨ぎの緯度経度
・MySQL 5.6から登場する正確な位置比較関数
・ストレージモードでのNULL
・トランザクション
・repair table
・parallel searching (Spider)
UTF8以外の文字コード
今は実質utf8のみ利用可能。
http://redmine.groonga.org/issues/1160

utf8mb4、cp932、eucjpmsを今年中か、来年早々に
対応予定。
COLLATION
今はNFKC使ってる。
MySQLのcollation使いたいという要望あり。
http://redmine.groonga.org/issues/1150

今年中か来年早々に、実装方式を検討して対応予定。
condition pushdown

 今は、MySQLが使うと判断したindexの条件しか
ストレージエンジン側で利用していないが、
condition pushdownをサポートするとそれ以外の
絞り込み条件も利用できるようになる。

 groongaはドリルダウンをサポートしているので、
絞り込み条件をストレージエンジンに持ち込めると
結構効果が期待できる。
点以外の空間情報
 今は、空間情報は点のみサポート。
 google mapに地点表示するような使い方なら、
今の機能(点のみのサポート)で大丈夫。

要件次第で実装時期検討。
0跨ぎの緯度経度
 日本の緯度経度では問題ないが、0度を跨ぐ緯度経度
での検索ができない。
 0度を跨ぐ場合は、条件を0度で分割して、or検索して
ください。

要件次第で実装時期検討。
MySQL 5.6から登場する正確な位置比較関数
今は「MBR~」という関数のみをサポートしている。

要件次第で実装時期検討。
ストレージモードでのNULL
 ラッパーモードではNULL値が利用できるが、ストレージ
モードではまだ利用できない。

要件次第で実装時期検討。
トランザクション
 ラッパーモードでInnoDBを利用すると、トランザクション
サポートしているかのような動作になるが、rollbackすると
mroongaのindexの更新だけが実行された状態になるので
注意。

 要件次第で実装時期検討だが、mroongaチーム内では
結構議論が進んでおり、動き出しは早いかも。
repair table
 今のところgroongaが壊れても、repair tableコマンドで修復できない。

  ラッパーモードの場合は、ラップしているストレージエンジンが無事なら、
同じ構造のテーブルを別に作成し、
insert into new_table select * from broken_table;
rename table broken_table to old_table,
 new_table to broken_table;
で復旧。

 ストレージモードの場合は、あらかじめレプリケーションなどで複製を
作っておき、壊れたところで、MySQLを停止した上で、
 複製のデータディレクトリの該当のデータディレクトリとmrnファイルを固め、
復旧先のデータディレクトリで解凍し、MySQL起動で復旧する。
(該当データベースにmroonga以外のテーブルがある場合は、
そのテーブルのファイルはコピーの対象外とする必要があるので注意)
repair table
(例:testデータベースの場合)
複製サーバにログイン
MySQL停止
cd data_dir
tar cvfz ./test.tgz ./test*
MySQL起動
./test.tgzを復旧先サーバのデータディレクトリにコピー
復旧先サーバにログイン
MySQL停止
cd data_dir
tar xvfz ./test.tgz
MySQL起動

Spiderの冗長化機能を使っており、PKがあるテーブルの場合は、
spider_copy_tables()で無停止復旧もできるよ。
parallel searching (Spider)
 現在のところ、Spiderでparallel searchingをサポート
していない。

 今年中か来年早々に対応予定。
Any Questions?


Thank you for taking
    your time!!



  Kentoku SHIBA (kentokushiba[at]gmail[dot]com)
  http://wild-growth.blogspot.com/
  http://spiderformysql.com

Weitere ähnliche Inhalte

Mehr von Kentoku

Spiderの最新動向 20131009
Spiderの最新動向 20131009Spiderの最新動向 20131009
Spiderの最新動向 20131009
Kentoku
 
Spiderの最新動向 20130419
Spiderの最新動向 20130419Spiderの最新動向 20130419
Spiderの最新動向 20130419
Kentoku
 
Mroonga 20121129
Mroonga 20121129Mroonga 20121129
Mroonga 20121129
Kentoku
 
Introducing mroonga 20111129
Introducing mroonga 20111129Introducing mroonga 20111129
Introducing mroonga 20111129
Kentoku
 
Spider DeNA Technology Seminar #2
Spider DeNA Technology Seminar #2Spider DeNA Technology Seminar #2
Spider DeNA Technology Seminar #2
Kentoku
 

Mehr von Kentoku (20)

MariaDB 10.3から利用できるSpider関連の性能向上機能・便利機能ほか
MariaDB 10.3から利用できるSpider関連の性能向上機能・便利機能ほかMariaDB 10.3から利用できるSpider関連の性能向上機能・便利機能ほか
MariaDB 10.3から利用できるSpider関連の性能向上機能・便利機能ほか
 
Spiderストレージエンジンの使い方と利用事例 他ストレージエンジンの紹介
Spiderストレージエンジンの使い方と利用事例 他ストレージエンジンの紹介Spiderストレージエンジンの使い方と利用事例 他ストレージエンジンの紹介
Spiderストレージエンジンの使い方と利用事例 他ストレージエンジンの紹介
 
Spider storage engine (dec212016)
Spider storage engine (dec212016)Spider storage engine (dec212016)
Spider storage engine (dec212016)
 
Spiderストレージエンジンのご紹介
Spiderストレージエンジンのご紹介Spiderストレージエンジンのご紹介
Spiderストレージエンジンのご紹介
 
Using spider for sharding in production
Using spider for sharding in productionUsing spider for sharding in production
Using spider for sharding in production
 
MariaDB ColumnStore 20160721
MariaDB ColumnStore 20160721MariaDB ColumnStore 20160721
MariaDB ColumnStore 20160721
 
Sharding with spider solutions 20160721
Sharding with spider solutions 20160721Sharding with spider solutions 20160721
Sharding with spider solutions 20160721
 
Mroonga 20141129
Mroonga 20141129Mroonga 20141129
Mroonga 20141129
 
MariaDB Spider Mroonga 20140218
MariaDB Spider Mroonga 20140218MariaDB Spider Mroonga 20140218
MariaDB Spider Mroonga 20140218
 
Mroonga 20131129
Mroonga 20131129Mroonga 20131129
Mroonga 20131129
 
Newest topic of spider 20131016 in Buenos Aires Argentina
Newest topic of spider 20131016 in Buenos Aires ArgentinaNewest topic of spider 20131016 in Buenos Aires Argentina
Newest topic of spider 20131016 in Buenos Aires Argentina
 
Spiderの最新動向 20131009
Spiderの最新動向 20131009Spiderの最新動向 20131009
Spiderの最新動向 20131009
 
Spiderの最新動向 20130419
Spiderの最新動向 20130419Spiderの最新動向 20130419
Spiderの最新動向 20130419
 
Mroonga 20121129
Mroonga 20121129Mroonga 20121129
Mroonga 20121129
 
Introducing mroonga 20111129
Introducing mroonga 20111129Introducing mroonga 20111129
Introducing mroonga 20111129
 
hs_spider_hs_something_20110906
hs_spider_hs_something_20110906hs_spider_hs_something_20110906
hs_spider_hs_something_20110906
 
Spider HA 20100922(DTT#7)
Spider HA 20100922(DTT#7)Spider HA 20100922(DTT#7)
Spider HA 20100922(DTT#7)
 
Charms of MySQL 20101206(DTT#7)
Charms of MySQL 20101206(DTT#7)Charms of MySQL 20101206(DTT#7)
Charms of MySQL 20101206(DTT#7)
 
Introducing Spider 20101206(DTT#7)
Introducing Spider 20101206(DTT#7)Introducing Spider 20101206(DTT#7)
Introducing Spider 20101206(DTT#7)
 
Spider DeNA Technology Seminar #2
Spider DeNA Technology Seminar #2Spider DeNA Technology Seminar #2
Spider DeNA Technology Seminar #2
 

Kürzlich hochgeladen

Kürzlich hochgeladen (7)

LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
 
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
 
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
 
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
 
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
 

Mroonga unsupported feature_20111129