views:

54

answers:

1
Class Product < ActiveRecord::Base
  has_friendly_id :name, :use_slug => true
end

What is the most efficient method to store the slugs within the 'products' table. I have complex find queries, and the joins with the 'slugs' table give me performance bottlenecks.

A: 

Friendly_id now has built-in slug caching.

Norman Clarke