I am developing a Rails application. I have a large dataset of static titles (about 3.5M) that I am searching a lot through. For now the dataset stored in my PostgreSQL db and I am searching using postgres' index and text_pattern_ops
. This works pretty fast, but I am worried it might not scale, as my searches count supposed to increase rapidly.
I thought of storing my dataset in memory as an array and use bloom filtes/aho-coarsick to search, but not sure how or if it's a good approach.
Basically, I am searching for a fast and scalable way to search in large dataset with Ruby on Rails.
We use ElasticSearch, which integrates well with ruby on rails. http://www.elasticsearch.org/blog/unleash-the-clients-ruby-python-php-perl/#ruby
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.