#3 new
Lukas Rieder

Only columns wich are being indexed should trigger the ActsAsXapianJob on update/save

Reported by Lukas Rieder | January 21st, 2009 @ 12:37 AM

Image you have a model where 'title' and 'body' are being indexed. And you have another column called 'counter'. The counter increments each time the page shows a model. This would trigger the update_index mark on the ActsAsXapianJob table every time when the model is being viewed.

Suggestion:

  • Update index only if the changed columns match the indexed columns
  • Handle the following edge case: You're indexing a virtual column, something like: def full_name "#{first_name} #{last_name}" end You should be able to specify update_triggers => [:first_name, :last_name]. If one of the update_triggers matches the changed columns an mark for index-update can be created.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Xapian full text search plugin for Ruby on Rails.

People watching this ticket

Pages