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
45
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
Transcript
28 slides
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 ありがと うござい ました
Other Decks in Programming
See All in Programming
Proxmox x Talos Linux x Terraform で実現するなんかいい感じの Kubernetes クラスタ / A Sleek Kubernetes Cluster Powered by Proxmox, Talos Linux, and Terraform
nnaka2992
0
250
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
16
9.3k
高橋メソッドでCVE解説シリーズ 〜CVE-2026-112816〜
hakkadaikon
0
270
学びを記事・スライド・Xへ高速展開する― AI-assisted Learning Loopで回すコンテンツ生成術
ochtum
0
210
Growing PicoRuby's Ecosystem on ESP32
yuuu
2
140
SODA - FACT BOOK(JP)
sodainc
1
40k
あなたはMCPの機能を、まだ知らない。
4geru
1
630
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
6
1.5k
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
340
Vue.jsで作る空間解析アプリとCapacitorプラグインのData Bridge
hal_spidernight
1
180
Debian JP Projectのサーバー構成
uwabami
1
130
RaspberryPi 5で軽くはじめるk3sとtailscaleを用いたホームサーバー構築 (1)
nasum
0
400
Featured
See All Featured
SEO for Brand Visibility & Recognition
aleyda
0
4.9k
First, design no harm
axbom
PRO
2
1.4k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
520
Design in an AI World
tapps
1
390
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
750
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
1
310
Google's AI Overviews - The New Search
badams
0
1.7k
Amusing Abliteration
ianozsvald
1
390
Balancing Empowerment & Direction
lara
6
1.4k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Docker and Python
trallard
47
4.3k