Enviar pesquisa
Carregar
Дмитрий Галинский "Sphinx - как база данных"
•
Transferir como PPT, PDF
•
1 gostou
•
635 visualizações
railsclub
Seguir
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 10
Baixar agora
Recomendados
NoSQL を Ruby で実践するための n 個の方法
NoSQL を Ruby で実践するための n 個の方法
Tomohiro Nishimura
Dropping ACID with MongoDB
Dropping ACID with MongoDB
kchodorow
01 ElasticSearch : Getting Started
01 ElasticSearch : Getting Started
OpenThink Labs
03. ElasticSearch : Data In, Data Out
03. ElasticSearch : Data In, Data Out
OpenThink Labs
MongoDB
MongoDB
Steve Klabnik
Doctype htm1
Doctype htm1
Eddy_TKJ
Conditionally add keys in JavaScript
Conditionally add keys in JavaScript
Ideas2IT Technologies
Undev webvybory
Undev webvybory
Eduard Snesarev
Recomendados
NoSQL を Ruby で実践するための n 個の方法
NoSQL を Ruby で実践するための n 個の方法
Tomohiro Nishimura
Dropping ACID with MongoDB
Dropping ACID with MongoDB
kchodorow
01 ElasticSearch : Getting Started
01 ElasticSearch : Getting Started
OpenThink Labs
03. ElasticSearch : Data In, Data Out
03. ElasticSearch : Data In, Data Out
OpenThink Labs
MongoDB
MongoDB
Steve Klabnik
Doctype htm1
Doctype htm1
Eddy_TKJ
Conditionally add keys in JavaScript
Conditionally add keys in JavaScript
Ideas2IT Technologies
Undev webvybory
Undev webvybory
Eduard Snesarev
Progress engine
Progress engine
Alexey Poimtsev
Алан Милц - семинар по финансовому потоку
Алан Милц - семинар по финансовому потоку
Andrew Artishchev
Кодабра, Фонд "Наше будущее"
Кодабра, Фонд "Наше будущее"
Dmitry Lohansky
Amplifr deck as it was june 2013
Amplifr deck as it was june 2013
Nate Gadgibalaev
Как построить Hr бренд
Как построить Hr бренд
Katerina Gavrilova
Rubinius: Ruby написанный на Ruby
Rubinius: Ruby написанный на Ruby
Ivan Samsonov
О ThinkWith.Me за 2 минуты
О ThinkWith.Me за 2 минуты
Олег Балбеков
Работа с унаследованным кодом. Есть ли жизнь после коммита.
Работа с унаследованным кодом. Есть ли жизнь после коммита.
Vadim Kruchkov
VoxImplant eCommerce Use Cases
VoxImplant eCommerce Use Cases
Alexey Aylarov
FFI Library: use C extensions in Ruby
FFI Library: use C extensions in Ruby
Sasha Koss
Nastachku slideshttp://www.slideshare.net/squadette/2012-45697461
Nastachku slideshttp://www.slideshare.net/squadette/2012-45697461
Alexey Mahotkin
Отладка кода в браузере
Отладка кода в браузере
Антон Шувалов
Beyond Ruby (RubyConf Argentina 2011)
Beyond Ruby (RubyConf Argentina 2011)
Konstantin Haase
About downloads
About downloads
Leonid Nikanorov
Devcamp nodejs-2010
Devcamp nodejs-2010
Antono Vasiljev
Education
Education
Valeriy Platonov
Вебинар "Культура DevOps: основы эффективного взаимодействия IT-команд"
Вебинар "Культура DevOps: основы эффективного взаимодействия IT-команд"
Svyatoslav Vereshchak
Billing In SaaS applications on Rails
Billing In SaaS applications on Rails
Igor Alexandrov
Chef
Chef
Kirill Mokevnin
Как мы строили аналитическую платформу на несколько миллиардов событии в месяц
Как мы строили аналитическую платформу на несколько миллиардов событии в месяц
Mikhail Tabunov
Sphinx как база данных
Sphinx как база данных
Александр Ежов
Fazendo mágica com ElasticSearch
Fazendo mágica com ElasticSearch
Pedro Franceschi
Mais conteúdo relacionado
Destaque
Progress engine
Progress engine
Alexey Poimtsev
Алан Милц - семинар по финансовому потоку
Алан Милц - семинар по финансовому потоку
Andrew Artishchev
Кодабра, Фонд "Наше будущее"
Кодабра, Фонд "Наше будущее"
Dmitry Lohansky
Amplifr deck as it was june 2013
Amplifr deck as it was june 2013
Nate Gadgibalaev
Как построить Hr бренд
Как построить Hr бренд
Katerina Gavrilova
Rubinius: Ruby написанный на Ruby
Rubinius: Ruby написанный на Ruby
Ivan Samsonov
О ThinkWith.Me за 2 минуты
О ThinkWith.Me за 2 минуты
Олег Балбеков
Работа с унаследованным кодом. Есть ли жизнь после коммита.
Работа с унаследованным кодом. Есть ли жизнь после коммита.
Vadim Kruchkov
VoxImplant eCommerce Use Cases
VoxImplant eCommerce Use Cases
Alexey Aylarov
FFI Library: use C extensions in Ruby
FFI Library: use C extensions in Ruby
Sasha Koss
Nastachku slideshttp://www.slideshare.net/squadette/2012-45697461
Nastachku slideshttp://www.slideshare.net/squadette/2012-45697461
Alexey Mahotkin
Отладка кода в браузере
Отладка кода в браузере
Антон Шувалов
Beyond Ruby (RubyConf Argentina 2011)
Beyond Ruby (RubyConf Argentina 2011)
Konstantin Haase
About downloads
About downloads
Leonid Nikanorov
Devcamp nodejs-2010
Devcamp nodejs-2010
Antono Vasiljev
Education
Education
Valeriy Platonov
Вебинар "Культура DevOps: основы эффективного взаимодействия IT-команд"
Вебинар "Культура DevOps: основы эффективного взаимодействия IT-команд"
Svyatoslav Vereshchak
Billing In SaaS applications on Rails
Billing In SaaS applications on Rails
Igor Alexandrov
Chef
Chef
Kirill Mokevnin
Как мы строили аналитическую платформу на несколько миллиардов событии в месяц
Как мы строили аналитическую платформу на несколько миллиардов событии в месяц
Mikhail Tabunov
Destaque
(20)
Progress engine
Progress engine
Алан Милц - семинар по финансовому потоку
Алан Милц - семинар по финансовому потоку
Кодабра, Фонд "Наше будущее"
Кодабра, Фонд "Наше будущее"
Amplifr deck as it was june 2013
Amplifr deck as it was june 2013
Как построить Hr бренд
Как построить Hr бренд
Rubinius: Ruby написанный на Ruby
Rubinius: Ruby написанный на Ruby
О ThinkWith.Me за 2 минуты
О ThinkWith.Me за 2 минуты
Работа с унаследованным кодом. Есть ли жизнь после коммита.
Работа с унаследованным кодом. Есть ли жизнь после коммита.
VoxImplant eCommerce Use Cases
VoxImplant eCommerce Use Cases
FFI Library: use C extensions in Ruby
FFI Library: use C extensions in Ruby
Nastachku slideshttp://www.slideshare.net/squadette/2012-45697461
Nastachku slideshttp://www.slideshare.net/squadette/2012-45697461
Отладка кода в браузере
Отладка кода в браузере
Beyond Ruby (RubyConf Argentina 2011)
Beyond Ruby (RubyConf Argentina 2011)
About downloads
About downloads
Devcamp nodejs-2010
Devcamp nodejs-2010
Education
Education
Вебинар "Культура DevOps: основы эффективного взаимодействия IT-команд"
Вебинар "Культура DevOps: основы эффективного взаимодействия IT-команд"
Billing In SaaS applications on Rails
Billing In SaaS applications on Rails
Chef
Chef
Как мы строили аналитическую платформу на несколько миллиардов событии в месяц
Как мы строили аналитическую платформу на несколько миллиардов событии в месяц
Semelhante a Дмитрий Галинский "Sphinx - как база данных"
Sphinx как база данных
Sphinx как база данных
Александр Ежов
Fazendo mágica com ElasticSearch
Fazendo mágica com ElasticSearch
Pedro Franceschi
Creating a Facebook Clone - Part XXXI - Transcript.pdf
Creating a Facebook Clone - Part XXXI - Transcript.pdf
ShaiAlmog1
Cool bonsai cool - an introduction to ElasticSearch
Cool bonsai cool - an introduction to ElasticSearch
clintongormley
MongoDb
MongoDb
Toby Hede
Terms of endearment - the ElasticSearch Query DSL explained
Terms of endearment - the ElasticSearch Query DSL explained
clintongormley
Benefits of using MongoDB: Reduce Complexity & Adapt to Changes
Benefits of using MongoDB: Reduce Complexity & Adapt to Changes
Alex Nguyen
Jquery presentation
Jquery presentation
guest5d87aa6
Mixing functional and object oriented approaches to programming in C#
Mixing functional and object oriented approaches to programming in C#
Mark Needham
Mixing Functional and Object Oriented Approaches to Programming in C#
Mixing Functional and Object Oriented Approaches to Programming in C#
Skills Matter
Schema design short
Schema design short
MongoDB
Django tech-talk
Django tech-talk
dtdannen
Schema design with MongoDB (Dwight Merriman)
Schema design with MongoDB (Dwight Merriman)
MongoSF
Elasticsearch first-steps
Elasticsearch first-steps
Matteo Moci
Elasticsearch
Elasticsearch
Ricardo Peres
Harnessing The Power of Search - Liferay DEVCON 2015, Darmstadt, Germany
Harnessing The Power of Search - Liferay DEVCON 2015, Darmstadt, Germany
André Ricardo Barreto de Oliveira
2011 Mongo FR - Indexing in MongoDB
2011 Mongo FR - Indexing in MongoDB
antoinegirbal
Rapid and Scalable Development with MongoDB, PyMongo, and Ming
Rapid and Scalable Development with MongoDB, PyMongo, and Ming
Rick Copeland
Plone For Developers - World Plone Day, 2009
Plone For Developers - World Plone Day, 2009
Core Software Group
Next-generation API Development with GraphQL and Prisma
Next-generation API Development with GraphQL and Prisma
Nikolas Burk
Semelhante a Дмитрий Галинский "Sphinx - как база данных"
(20)
Sphinx как база данных
Sphinx как база данных
Fazendo mágica com ElasticSearch
Fazendo mágica com ElasticSearch
Creating a Facebook Clone - Part XXXI - Transcript.pdf
Creating a Facebook Clone - Part XXXI - Transcript.pdf
Cool bonsai cool - an introduction to ElasticSearch
Cool bonsai cool - an introduction to ElasticSearch
MongoDb
MongoDb
Terms of endearment - the ElasticSearch Query DSL explained
Terms of endearment - the ElasticSearch Query DSL explained
Benefits of using MongoDB: Reduce Complexity & Adapt to Changes
Benefits of using MongoDB: Reduce Complexity & Adapt to Changes
Jquery presentation
Jquery presentation
Mixing functional and object oriented approaches to programming in C#
Mixing functional and object oriented approaches to programming in C#
Mixing Functional and Object Oriented Approaches to Programming in C#
Mixing Functional and Object Oriented Approaches to Programming in C#
Schema design short
Schema design short
Django tech-talk
Django tech-talk
Schema design with MongoDB (Dwight Merriman)
Schema design with MongoDB (Dwight Merriman)
Elasticsearch first-steps
Elasticsearch first-steps
Elasticsearch
Elasticsearch
Harnessing The Power of Search - Liferay DEVCON 2015, Darmstadt, Germany
Harnessing The Power of Search - Liferay DEVCON 2015, Darmstadt, Germany
2011 Mongo FR - Indexing in MongoDB
2011 Mongo FR - Indexing in MongoDB
Rapid and Scalable Development with MongoDB, PyMongo, and Ming
Rapid and Scalable Development with MongoDB, PyMongo, and Ming
Plone For Developers - World Plone Day, 2009
Plone For Developers - World Plone Day, 2009
Next-generation API Development with GraphQL and Prisma
Next-generation API Development with GraphQL and Prisma
Дмитрий Галинский "Sphinx - как база данных"
1.
2.
3.
4.
5.
Создание индекса define_index
do indexes name, :sortable => true indexes tags(:name), :as => :tags_name has id, :as => :post_id, :type => :integer has created_at, :as => :created_at, :type => :datetime, :sortable => true has author(:id), :as => :author_id, :type => :integer has author(:name), :as => :author_name, :sortable => true has tags(:id), :as => :tag_ids end
6.
Поиск Post.search(query, :with
=> {:author_id => 1}) Post.search(query, :with => {:author_id => [1,2,3]}) Post.search(query, :with => {:tag_ids => 1}) Post.search(query, :with => {:created_at => 1.day.ago..Time.now}) Post.search(query, :without => {:post_id => [1,2,3]}) Post.search(query, :without => {:comments_count => 0})
7.
Сортировка Post.search(query, :order
=> :created_at, :sort_mode => :asc) Post.search(query, :order => :author_name, :sort_mode => :desc) Post.search(query, :order => “created_at DESC, @relevance DESC”, :sort_mode => :extended)
8.
Групировка результата Post.search(query,
:group_by => :author_id, :group_function => :attr) Post.search(query, :group_by => :author_id, :group_function => :attr, :group_clause => “@count DESC”) Post.search(query, :group_by => :created_at, :group_function => :day, # :week, :month, :year :group_clause => “created_at DESC”) @posts.each_with_count do |post, count| ... end
9.
Delta index define_index
do ... set_property :delta => true # или set_property :delta => :datetime, :delta_column => :created_at, :threshold => DateTime.now.zone.to_i.hours + 1.hour ... end add_column :posts, :delta, :boolean add_index :posts, :delta
10.
Обновление дельты rake
ts:in RAILS_ENV=env или indexer --config <FILE> post_delta --rotate indexer --config <FILE> --merge post_core post_delta --rotate --merge-dst-range sphinx_deleted 0 0
Baixar agora