Yeah, currently there's no way to have settings just for the delta index. TS's DSL doesn't allow for it… I'm open to suggestions on how it could, but this would very likely be something that I add to TS 3, not earlier versions.
You could just set the sql_range_step to be quite large generally? May not have too much of an impact for full indexing (indeed, in some situations can speed things up).
Cheers
--
Pat
> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/w4FxEspJkoUJ.
> To post to this group, send email to thinkin...@googlegroups.com.
> To unsubscribe from this group, send email to thinking-sphi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
# app/indices/article_index.rb
# Whatever you normally use with :delta is the argument here.
processor = ThinkingSphinx::Deltas.processor_for(true)
options = {:with => :active_record, :delta_processor => processor, :delta? => false}
ThinkingSphinx::Index.define_for :article, options do
# core index definition
indexes title, body
has created_at, user_id
end
ThinkingSphinx::Index.define_for :article, options.merge(:delta? => true) do
# delta index definition
indexes title, body
has created_at, user_id
set_property :sql_range_step => 10_000_000
end
What are your thoughts on this?
--
Pat
> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/M9dpgxcEZY4J.