dongzhao5834 2015-03-11 18:42
浏览 75
已采纳

Sphinx查询语言与API - 效率和生产中的使用

Sphinx search allows using API client or MYSQL Client.

API is implemented for many languages but when you download source you may see that comment (for example in php and python client)

//                          WARNING
// We strongly recommend you to use SphinxQL instead of the API

Does it mean that SphinxQL is more efficient?

Are there any contraindication against using API apart from it's design? In my opinion this API is really hard to understand for new developers and is more difficult to use than query language.

But are there any advantages of using SpinxQL instead of API?

  • 写回答

1条回答 默认 最新

  • douhuan6065 2015-03-11 19:32
    关注

    The main advantage is, can do more via SphinxQL than via the now outdated API. And its usable anywhere that has a mysql client driver - doesn't need a port of the API client to the specific language. (and the client doesnt need to be updated as you updarte sphinx)

    Things like updating Real-Time (RT) indexes is only available via SphinxQL. UDFs care only installable via QL. There are plenty of smaller things too (specific functions, and options like GROUP-N)

    There is a handful of things that are slightly more efficient via the API (eg bulk UpdateAttributes, and setOverride) - but even then are POSSIBLE via SphinxQL.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?