I just found out that sql_query_killlist works perfectly with sphinx
0.9.9 + thinking-sphinx 0.9.9, but it does not work at all with sphinx
0.9.9 + thinking-sphinx 1.3.12. This proves that sql_query_killlist
works as far as sphinx 0.9.9 is concerned, which means something might
be wrong with thinking sphinx 1.3.12. I couldn't figure it out yet.
Any help will be appreciated.
I also noticed that when doing full index, thinking-sphinx 1.3.12 is
much faster, but searching is much slower , than thinking-sphinx
0.9.9. Is it possible to improve the searching performance for
thinking-sphinx 1.3.12?
Thank you very much.
Best wishes,
Canvas
On Dec 16, 2:31 pm, Canvas <canvasw...@gmail.com> wrote:
> Hi Pat,
>
> I customized thinking-sphinx. Threshold is not in use at all in my
> case.
>
> I created a table sphinx_delta_index_start_points. The table holds one
> and only one row. The db migrate is as following:
>
> class CreateTableSphinxDeltaIndexStartPoints < ActiveRecord::Migration
> def self.up
> create_table :sphinx_delta_index_start_points do |t|
> t.datetime :delta_index_start_at, :null => false
> end
> end
>
> def self.down
> drop_table :sphinx_delta_index_start_points
> end
> end
>
> Every time a full index or merge index is executed, the start-time
> will be updated in the only row in the table above. And the three key
> item in configuration file for delta index will be as following. #
> {...@model.quoted_table_name} is used to represent whatever table name
> your model represents in your application.
>
> sql_query = SELECT ... FROM "#...@model.quoted_table_name}" WHERE #
> {...@model.quoted_table_name}.id >= $start AND #
> {...@model.quoted_table_name}.id <= $end AND #
> {...@model.quoted_table_name}.`updated_at` >= ( SELECT MIN
> (delta_index_start_at) FROM sphinx_delta_index_start_points ) GROUP BY
> #...@model.quoted_table_name}.id ORDER BY NULL
>
> sql_query_range = SELECT IFNULL(MIN(`id`), 1), IFNULL(MAX(`id`), 1)
> FROM #...@model.quoted_table_name} WHERE updated_at >= ( SELECT MIN
> (delta_index_start_at) FROM sphinx_delta_index_start_points ).
>
> sql_query_killlist = "SELECT id FROM #...@model.quoted_table_name}
> ...
>
> read more »
I still can not figure out why sql_query_killlist does not work in
thinking-sphinx 1.3.12. Any advice is appreciated. I am now using
rails 2.3.4, sphinx 0.9.9 final release, thinking-sphinx 1.3.12.
It's quite interesting that sql_quwery_killlist works quite well with
rails 2.0.2, sphinx 0.9.9 final release and thinking-sphinx 0.9.9
(Ed's fork).
I am stuck here now. Any advice will be appreciated.
Best wishes,
Canvas
> ...
>
> read more »
I just tried rails 2.3.4 + thinking-sphinx 0.9.9 (Ed's fork) + sphinx
0.9.9 final release. Everything works fine. Indexing is fast,
searching is fast, and sql_query_killlist works.. It's really weird
that thinking-sphinx
1.3.12 is slow in searching and sql_query_killlist does not work in my
case.
Best wishes,
Canvas
> ...
>
> read more »
Sorry for the delay in getting back to you...
When you're using 1.3.12 (and I recommend switching to 1.3.14 anyway), does the kill list appear in the config file? Is it that the setting is there and not having any effect, or that it's not getting into the conf file?
As for the speed changes, that's interesting to know... there's been a *lot* of changes since Ed's fork appeared, so I guess that means there's plenty of potential reasons why that's now the case. I'll try to investigate when I have some time.
--
Pat
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
I just came back from a long vocation. Sorry for the long delay.
sqlquery_killlist does appear in development.sphinx.conf after I run
"rake thinking_sphinx:configure". So the problem I have now is that
the configuration is there but has no effect.
Best wishes,
Canvas
> ...
>
> read more »
If you want to construct a demo rails app which can reproduce the issue, that'd be great, then I can have a look on my machine.
--
Pat
I am confused too. It doesn't make much sense to me the way it is now.
I will construct a sample app in the weekend for you to reproduce the
issue.
Best wishes,
Canvas
> ...
>
> read more »
I extracted out the plugin into a simple rails app, and I used text
command in script/console to to add and modify data by a model, built
index (full index or delta index) and then tested sphinx search in
script/console. It turned out that sql_query_killlist works fine with
thinking_sphinx 1.3.12, rails 2.3.5, sphinx 0.9.9. And it makes sense.
But for some reason my real app is still having the problem, something
must be wrong with my app. I'll let you know when I figure out the
real problem. And sorry for the incorrect information provided before.
Best wishes,
Canvas
On Jan 5, 10:44 am, Canvas <canvasw...@gmail.com> wrote:
> Hi Pat,
>
> > >>> searching is fast, andsql_query_killlistworks.. It's really weird
> > >>> that thinking-sphinx
> > >>> 1.3.12 is slow in searching andsql_query_killlistdoes not work in my
> > >>> case.
>
> > >>> Best wishes,
>
> > >>> Canvas
>
> > >>> On Dec 17, 11:48 am, Canvas <canvasw...@gmail.com> wrote:
> > >>>> Hi Pat,
>
> > >>>> I still can not figure out whysql_query_killlistdoes not work in
> > >>>> thinking-sphinx 1.3.12. Any advice is appreciated. I am now using
> > >>>> rails 2.3.4, sphinx 0.9.9 final release, thinking-sphinx 1.3.12.
>
> > >>>> It's quite interesting that sql_quwery_killlist works quite well with
> > >>>> rails 2.0.2, sphinx 0.9.9 final release and thinking-sphinx 0.9.9
> > >>>> (Ed's fork).
>
> > >>>> I am stuck here now. Any advice will be appreciated.
>
> > >>>> Best wishes,
>
> > >>>> Canvas
>
> > >>>> On Dec 16, 5:29 pm, Canvas <canvasw...@gmail.com> wrote:
>
> > >>>>> Hi Pat,
>
> > >>>>> I just found out thatsql_query_killlistworks perfectly with sphinx
> > >>>>>>sql_query_killlist= "SELECT id FROM #...@model.quoted_table_name}
> > >>>>>>>>>> rc2, which includes a new featuresql_query_killlistto deal with this
> ...
>
> read more »- Hide quoted text -