sylvainsf / sunspot_mongomapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clean_index_orphans does not actually clean index orphans

JKring opened this issue · comments

It looks like the index_orphans method is returning an array of arbitrary and repetitive ids (50, 50, 50, 50, etc).

Also

self.all.collect { |c| c.id }

won't scale past a couple thousand documents.