Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Rroongaの全文検索性能
Search
naoa_y
May 31, 2014
Programming
1
38
Rroongaの全文検索性能
61st Ruby/Rails勉強会@関西 LT 2014/05/31
naoa_y
May 31, 2014
Tweet
Share
Other Decks in Programming
See All in Programming
The Ralph Wiggum Loop: First Principles of Autonomous Development
sembayui
0
3.7k
JPUG勉強会 OSSデータベースの内部構造を理解しよう
oga5
2
250
今更考える「単一責任原則」 / Thinking about the Single Responsibility Principle
tooppoo
3
1.5k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
280
go directiveを最新にしすぎないで欲しい話──あるいは、Go 1.26からgo mod initで作られるgo directiveの値が変わる話 / Go 1.26 リリースパーティ
arthur1
2
490
encoding/json/v2のUnmarshalはこう変わった:内部実装で見る設計改善
kurakura0916
0
350
15年目のiOSアプリを1から作り直す技術
teakun
1
610
Event Storming
hschwentner
3
1.3k
AI活用のコスパを最大化する方法
ochtum
0
120
AI駆動開発の本音 〜Claude Code並列開発で見えたエンジニアの新しい役割〜
hisuzuya
4
480
メタプログラミングで実現する「コードを仕様にする」仕組み/nikkei-tech-talk43
nikkei_engineer_recruiting
0
160
Rubyと楽しいをつくる / Creating joy with Ruby
chobishiba
0
210
Featured
See All Featured
Statistics for Hackers
jakevdp
799
230k
Test your architecture with Archunit
thirion
1
2.2k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
230
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.4k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
280
So, you think you're a good person
axbom
PRO
2
1.9k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
980
Building the Perfect Custom Keyboard
takai
2
710
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
63
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
64
53k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Transcript
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 Rroongaの全⽂ 検索性能 Naoya(@naoa̲y) 61st�Ruby/Rails勉強会@関⻄�LT 2014/05/31
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 自⼰紹介 Naoya�(@naoa̲y) 大学は情報系 ✓ 新卒で3年半ほど⾦融系のユーザSI でインフラSE ✓ 現在は3年半ほどITと無縁の仕事
✓ Ruby歴は実働数⽇ほど ✓ ✓
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 国産の全⽂検索 エンジン Groongaって 知ってますか?
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 Groongaって? C⾔語で書かれた⾼速な全⽂検 索ライブラリ/サーバ MySQLのストレージエンジンとし て実装されたMroonga ✓ Rubyらしい記法でRubyから全⽂検 索できるRroonga
✓ ✓
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 個⼈でMroonga でそこそこ大規模 な全⽂検索Web サービスを作りま した。
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 Groongaは少 ないハードウェ ア資産でもかな り⾼速な全⽂検 索ができる!
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 デスクトップ向 けの全⽂検索ア プリをRubyで 作りたい!
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 Rroongaって? Rroongaのほかにサーバがな くともローカルのみで⾼速な全 ⽂検索機能が実現可能 ✓ アプリに組み込みやすい。イメ ージとしてはSQLiteみたいな もの
✓
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 Rroongaの利用例 るりまサーチ Rubyのリファレンスマニュアルを 検索できるWebアプリ�http:// docs.ruby-lang.org/ja/search/ ✓ ✓ Milkode
ソースコード検索エンジン、検索ア プリ�http:// milkode.ongaeshi.me/�(るびま 0045号に記事掲載) ✓ ✓
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 実際のところ Rroongaっ てどのくらい 速いの?
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 Rubyだし ⾔うほどじ ゃ・・・?
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 試してみ よう!
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 検証環境 MacBook�Air CPU�1.4GHzデュアルコアIntel� Core�i5 ✓ Memory�4GB ✓ SSD�128GB
✓ ✓
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 検証⽅法 ⽇本語Wikipediaのカテゴリ上 位100件を検索 ✓ カテゴリ上位100件で⽇本語 Wikipediaのタイトルと本⽂を 全⽂検索 ✓
検証プログラム�http:// github.com/naoa/rroonga- wikipedia-bench ✓
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 検証1 ⽇本語Wikipedia�1万件�XML� 168MB SQLite3 Rroonga カテゴリ 2314� msec
47�msec 本⽂ 103� msec 6�msec
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 検証2 ⽇本語Wikipedia�5万件�XML� 512MB SQLite3 Rroonga カテゴリ 9339� msec
88�msec 本⽂ 341� msec 30�msec
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 検証3 ⽇本語Wikipedia�183万件(全件)� XML�17GB Rroonga カテゴリ 1601�msec 本⽂ 56�msec
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 検証4 ⽇本語Wikipedia�366万件(全件 *2)�XML�33GB Rroonga カテゴリ 3087�msec 本⽂ 113�msec
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 検証5 ... ✓
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 MacBook� Airのディスク が逼迫したの でここまで!
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 Mroongaでの経験 則から⾔うとこの数 倍ぐらいなら⾼速に 全⽂検索できると思 います。(⽇本語で Bigramの場合。)
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 Mroongaを使った全 ⽂検索のWebサービ スでは、最大で 400GB超、1000万 レコード超でもサーバ 1台でそこそこ⾼速に 検索できています。
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 Rroongaで は、⾼速な全⽂ 検索のほかに位 置情報検索機能 もあります。
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 先⽇、Heroku でRroongaが 使えるビルドパ ックがリリース されています。
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 Rroongaを 使ってみた くなりまし たよね?
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 おわりに 2014/6/27(⾦)19:00から神 ⼾でGroongaに関する勉強会 をします。 ✓ Groongaに興味が沸いた⽅は 是非参加してください! ✓
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 おわりに Rroonga,Rabbit等の作者、 Ruby/Groongaコミッタの須 藤さん(@ktou)が東京から来て くれます! ✓ 2014/6/28(土)に大阪で Groongaに関するイベントが
できればと考えています。 ✓ 会場提供等に協⼒していだける ⽅がいたら嬉しいです。 ✓
Rroongaの全⽂検索性能 Powered�by�Rabbit�2.1.2 ありがと うござい ました