class AddIndexesToListings < ActiveRecord::Migration
def change
execute <<-SQL
create index on listings using gin(to_tsvector('english', title));
create index on listings using gin(to_tsvector('english', description));
SQL
end
end
Tuesday, August 28, 2012
Add index on PostgreSQL table column for in-built full text search in Rails
Applicable for PG 8.4 and above.
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2012
(42)
-
▼
August
(9)
- Add index on PostgreSQL table column for in-built ...
- Upgrade Heroku db to new PostgreSQL Dev addon
- Restarting crashed workers in Heroku
- Configure PostgreSQL full-text search using pg_sea...
- Run delayed jobs on Heroku with queue names
- Transfer domain from a Heroku Zerigo account to an...
- Share methods between controller and views in Rails
- Passing array of elements as multiple arguments in...
- Multiple heroku apps on different subdomains manag...
-
▼
August
(9)
No comments:
Post a Comment