简体   繁体   English

Python neo4j-rest-client在烧瓶视图中花费的时间太长

[英]Python neo4j-rest-client takes too long within a flask view

I am developing a web application using flask and neo4j. 我正在使用flask和neo4j开发Web应用程序。 I use noe4j-rest-client for the python side. 我将noe4j-rest-client用于python端。 When I query neo4j using python shell, it takes 78ms. 当我使用python shell查询neo4j时,它需要78毫秒。 But when I make request within a flask view it takes 0.8seconds. 但是,当我在烧瓶视图中发出请求时,它需要0.8秒。 I have profiled and I see that neo4j-rest-client/request.py is the responsible, because it takes 0.5 seconds. 我进行了分析,发现neo4j-rest-client / request.py是负责任的,因为它需要0.5秒。 What do you think ? 你怎么看 ?

好吧,如果这花费了太多时间,您可能想实现使用更快的解析器的REST客户端,或者加快neo4j-rest-client的速度并提交补丁?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM