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) way to
> keep track of the most popular products,a part from the idea of writing
> web-server log parser.
>
> I'm thinking of creating a model called 'product_view' which has
> product_id & view_counter, and updating this table in product#show.
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to