grafana/grafana — pull request #900 by mikhailov (2014-10-05 22:26:13+00:00)
Title: Speed search result parsing

Reuse ElasticSearch hits length via hits.total and cache it rahter than calculation length every iteration. It impacts performance on large data set.