2010-10-28 140 views
1

已有一篇關於設置cron作業的索引:Use a Cron Job to Automate Sphinx Index Refresh from Rails Rake Task這是一個更好的方式來與思維獅身人面像索引?

作者與通過Thinking Sphinx調用索引器的方法相同。但在評論,還有共享的第二種方法,它聲稱通過直接從獅身人面像調用索引以緩解服務器負載更好:

Call the sphinx indexer directly, also eases the load (you don’t need to fire up rails), eg: 

/usr/local/bin/indexer –config /data/releases/site/current/config/production.sphinx.conf –all –rotate 

想如果這是實際工作中更好的選擇...

回答

1

我在我的cron作業中使用直接索引器方法,並認爲這是一種更好的技術。

有沒有必要加載完整的鐵軌堆棧只是爲了掏出到另一個進程。

相關問題