From f9949084ade57a7a7c97d8a0933cb20005ca0ea0 Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Thu, 29 Oct 2015 15:18:05 +0100 Subject: [PATCH] Fix slowdown in rendering caused by #119 --- graphite_api/render/datalib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphite_api/render/datalib.py b/graphite_api/render/datalib.py index b61e3ca..fe07605 100644 --- a/graphite_api/render/datalib.py +++ b/graphite_api/render/datalib.py @@ -140,7 +140,7 @@ def fetchData(requestContext, pathExprs): # Group nodes that support multiple fetches for pathExpr in pathExprs: - for node in app.store.find(pathExpr): + for node in app.store.find(pathExpr, startTime, endTime): if not node.is_leaf: continue path_to_exprs[node.path].append(pathExpr)