Closed barmstrong closed 12 years ago
Thanks! Glad you're finding it useful. Being able to configure the queue is already on the list (Issue #3) along with things like Sidekiq support and making the job class configurable.
In the meantime you could monkey patch it with something like:
Sunspot::Queue::IndexJob.class_eval do
def self.queue
"low"
end
end
Sunspot::Queue::RemovalJob.class_eval do
def self.queue
"low"
end
end
Awesome, that is a good solution.
Btw, do you have <luceneAutoCommit>true</luceneAutoCommit>
set in solrconfig.xml? Or does it commit on each job.
Sorry, I mean:
<autoCommit>
<maxDocs>10000</maxDocs>
<maxTime>1000</maxTime>
</autoCommit>
Basically, did you have to turn autoCommit on? :)
Thanks for building this. Much cleaner than the random gist out there.
Only thing I noticed is it would be cool to be able to configure the queue name to one I already have (critical, high, low). But really no big deal (and if it was that big of a problem I would have submitted a pull request :)
Seriously though, thanks for the gem!