mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Adding limits to optimize traffic between Sphinxsearch and plugin
This commit is contained in:
parent
862e559c26
commit
f8909aa41c
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ else:
|
||||||
|
|
||||||
client = sphinxsearch.SphinxClient()
|
client = sphinxsearch.SphinxClient()
|
||||||
client.SetServer(server, port)
|
client.SetServer(server, port)
|
||||||
|
client.SetLimits(0, 1, 0, 0)
|
||||||
result = client.Query("", indexName)
|
result = client.Query("", indexName)
|
||||||
docCount = result["total_found"]
|
docCount = result["total_found"]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue