satyaveerendra / djangosearch

Automatically exported from code.google.com/p/djangosearch
0 stars 0 forks source link

Add functionality to disable object-level updates/removes #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
During large imports of data running through models, having per-object save
update the search index is painfully slow.  Ideally I'd like to disable the
updates that save() and delete() call in favor of running a batch reindex
sometime after I've imported data.

I've attached a patch that allows for this functionality.  From the model
class, a user can set the indexer's 'do_updates' property to False, which
will cause update_object/remove_object to not run.  I'm not wild about the
'do_updates' name, so feel free to change it to something more clever.

Original issue reported on code.google.com by sed...@gmail.com on 13 Mar 2008 at 8:07

Attachments:

GoogleCodeExporter commented 8 years ago
I agree with the need, but I'm not sure about the solution. I'll have to think 
about it a bit.

Original comment by jkocherh...@gmail.com on 14 Mar 2008 at 10:12