Sphinx更新性能

发布于 2024-12-14 02:27:23 字数 221 浏览 0 评论 0原文

Sphinx 2.0.1 带来了调用 UPDATE 并更新索引中单个项目的能力。

有谁知道当非常频繁地调用时(频率高达每秒数百次),这会给 sphinx 带来什么类型的性能?这样做的原因是保留趋势项目分数的实时索引,每次用户执行操作时该索引都会更新。显然,当有大量用户时,该值可以非常频繁地更新。

编辑:

我应该提到我没有使用SphinxSE。

Sphinx 2.0.1 brings with it the ability to call UPDATE and update an individual item in an index.

Does anyone know what type of performance this brings to sphinx when called VERY frequently (as frequently as several hundred times a second)? The reason for this would be to keep a real time index of trending item scores which get updated every time a user performs an action. Obviously when there are lots of users this value can be update quite frequently.

EDIT:

I should mention that I am not using SphinxSE.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

紙鸢 2024-12-21 02:27:23

您正在谈论 sphinx rt 索引...更新速度很快,但请记住,这种类型的索引不支持enable_star。这意味着您无法执行像 appl* 这样的搜索。

You are talking about sphinx rt indices... Updates are fast, but remember, this type of indices do not support enable_star. This means you can't perform searches like appl*.

囍笑 2024-12-21 02:27:23

这些属性存储在内存中。所以更新应该非常快。

但我从来没有对它进行过基准测试。所以尝试对它进行基准测试!

...尽管说实话,我仍然很想对其进行“批处理”。将操作写入日志“文件”,然后批量处理该日志。也许每 10 秒一次。同一记录上的所有操作都可以作为一个更新语句运行。

Such attributes are stored in memory. So updates should be really fast.

But I've never benchmarked it. So try benchmarking it!

... although to be honest I would still be tempted to 'batch process' it. Write the actions to a log "file", and then process that log in batches. Maybe every 10 seconds. All actions on the same record can be run as one update statement.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文