I am using p2neo for querying neo4j DB, some quires are taking more than a second to respond, is there any async library I can use with tornado framework to communicate with neo4j.
Asked
Active
Viewed 1,377 times
2
-
Just checking ... when running the same queries in the browser they respond with subsecond performance ? If not you might want us to take a look at the queries first ... – Tom Geudens Aug 07 '17 at 18:06
-
@TomGeudens I checked on the browser also, the query takes more or less same amount of time – user2478236 Aug 08 '17 at 07:32
-
2Fair enough. So it's not p2neo that is the issue really and we should take a look at the queries, agreed ? Sure, you can bombard the server with simultaneous queries but that will only go as far as you can throw cores at the problem (each query is single-threaded, async does not solve that). – Tom Geudens Aug 08 '17 at 07:44
-
it might be overkill to use aiohttp with Tornado, but take a look at aioneo4j (https://github.com/wikibusiness/aioneo4j) (no support to bolt) – kwarunek Aug 08 '17 at 19:55