MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / query

Method query

tests/flow/test_timeout.py:297–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

295 redis_graph.query("UNWIND range(1, 1000) AS x CREATE (:N {v:x})")
296
297 def query():
298 g = Graph(self.env.getConnection(), GRAPH_ID)
299
300 for i in range(1, 1000):
301 g.query(f"MATCH (n:N) WHERE n.v > {i} RETURN count(1)", timeout=1000)
302
303 loop = asyncio.get_event_loop()
304 tasks = []

Calls 1

GraphClass · 0.85

Tested by

no test coverage detected