I am currently using Ferret and the DRb server for search and can
forsee a potential problem which I am hoping some of you good folks
can help me with.
I currently have a view count field associated with a record, which is
incremented every time the view for the record is displayed.
This field is part of the search index such that we can search and
sort by the “most viewed” records.
The potential performance issue is that each time the page is viewed,
the counter is incremented, and this triggers the index to be rebuilt
for the associated record.
I have considered disabling the after_save callbacks method but feel
this is taking a hammer to the problem, as in most cases I do need the
index to be updated immediately after the record is updated.
I am assuming implementing a view count and using for search is not an
uncommon requirement… so hoping there is a good solution.