Popular in terms of viewing or selling?
Why don't you keep a counter in the DB?
Cheers, Sazima
On Jan 11, 10:00 pm, Mohammad Abed rails-mailing-l...@andreas-s.net
wrote:
I have a site which is basically a catalog of product about 30,000.00
products. What do you think is the best (in terms of
Mohammad Abed wrote:
I'm thinking of creating a model called 'product_view' which has
product_id view_counter, and updating this table in product#show.
This sounds like a fine plan, but does it provide any advantage over
simply adding a view_count attribute to your product model?
In either
You could just keep it in memory if accuracy isn't very important.
On Sun, Jan 11, 2009 at 7:00 PM, Mohammad Abed
rails-mailing-l...@andreas-s.net wrote:
I have a site which is basically a catalog of product about 30,000.00
products. What do you think is the best (in terms of performance)
I think I might look into this
http://playtype.net/past/2008/2/6/starling_and_asynchrous_tasks_in_ruby_on_rails/
On Jan 11, 7:39 pm, James Englert englert.ja...@gmail.com wrote:
You could just keep it in memory if accuracy isn't very important.
On Sun, Jan 11, 2009 at 7:00 PM, Mohammad
4 matches
Mail list logo