pombreda / djapian

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

Update index after mass delete #111

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Need to update index after deleting a lot of of records from database.

manage.py index --rebuild works fine, but i need to гивфеу index from 
code.

for i in Object.objects.filter(...):
    Object.indexer.delete(i)

works fine too, but if we delete more than 1000 and more records it take
too many time.

Original issue reported on code.google.com by d.aki...@gmail.com on 21 Apr 2010 at 7:05

GoogleCodeExporter commented 9 years ago

Original comment by daevaorn on 22 Apr 2010 at 3:48

GoogleCodeExporter commented 9 years ago
AFAIK there is no support for bulk delete in Xapian, so we couldn't implement 
it efficiently in Djapian, sorry ;)

Original comment by esizi...@gmail.com on 21 Jun 2010 at 4:31

GoogleCodeExporter commented 9 years ago

Original comment by daevaorn on 21 Jun 2010 at 9:01