Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Rroongaの全文検索性能
Search
naoa_y
May 31, 2014
Programming
43
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Rroongaの全文検索性能
61st Ruby/Rails勉強会@関西 LT 2014/05/31
naoa_y
May 31, 2014
Other Decks in Programming
See All in Programming
Railsバージョンを4倍にした話
optim
0
260
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
270
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
8.4k
sbt 2.0: takeoff
eed3si9n
0
150
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.2k
【加筆修正版】Laravel のアプリケーションをどこにデプロイするか #phpcon_ehime
akase244
0
150
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
170
コードレビューのボトルネックを"する側"と"される側"の両面から解消する
yub0n
2
1.6k
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
0
280
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
360
CodeRabbitの効果検証と過ごしてみた3ヶ月
armondando
0
230
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.1k
How STYLIGHT went responsive
nonsquared
100
6.3k
Side Projects
sachag
456
43k
Building the Perfect Custom Keyboard
takai
2
900
RailsConf 2023
tenderlove
30
1.6k
Un-Boring Meetings
codingconduct
0
450
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
990
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
460
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
560
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 ありがと うござい ました