简体   繁体   English

在Microsoft Azure上neo4j的性能很差

[英]poor performance for neo4j on Microsoft Azure

I have deployed a neo4j DB on microsoft Azure , it takes so long (2-3 seconds) to make connection and a much longer time ( 5- 7 seconds!) on making a simple queries , like: 我已经在Microsoft Azure上部署了neo4j数据库,建立连接需要很长时间(2-3秒),而进行简单查询则需要更长的时间(5-7秒!),例如:

client.Cypher.Match("(recipe:Recipe)")
            .Where("recipe.name = {name} AND recipe.whoMadeItEmail = {mader}")
            .WithParams(parameters)
            .Return(recipe => recipe.As<Recipe>())
            .Results;

it's so frustrating , we're developing a web and two applications for startup and we're struggling with the this poor performance , I also keep getting this weird error that the cord is unplugged! 令人沮丧的是,我们正在开发一个Web和两个用于启动的应用程序,我们正为性能不佳而苦苦挣扎,而且我还不断收到电缆拔出的怪异错误! I run it on a ubuntu 12.04 neo4j version : 2.0.1 virtual machine : A4 (8 cores , 14GB memory) 我在ubuntu 12.04 neo4j版本上运行它:2.0.1虚拟机:A4(8核,14GB内存)

what's wrong !!! 怎么了 !!! ?

The Neo4j VM available through the Microsoft Azure image depot is out of date. 通过Microsoft Azure映像库可用的Neo4j VM已过时。 I advise deploying Neo4j to Microsoft Azure using Docker. 我建议使用Docker将Neo4j部署到Microsoft Azure。 You can find the latest available Docker image for Neo4j community here: https://registry.hub.docker.com/u/kbastani/docker-neo4j/ 您可以在此处找到Neo4j社区的最新可用Docker映像: https : //registry.hub.docker.com/u/kbastani/docker-neo4j/

Also, you can use Elastic Beanstalk through Amazon EC2 using SSDs for better performance. 另外,您可以通过使用SSD的Amazon EC2使用Elastic Beanstalk以获得更好的性能。

If you're set on Microsoft Azure's limited support for Docker, you can follow this guide: http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-docker-vm-extension/ 如果您设置了Microsoft Azure对Docker的有限支持,则可以遵循以下指南: http : //azure.microsoft.com/zh-cn/documentation/articles/virtual-machines-docker-vm-extension/

Did you 你是否

Create index on :Recipe(name) 在:Recipe(name)上创建索引

?

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

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