Neo4j:它是内存中的图形数据库吗? [英] Neo4j: is it a in-memory graph database?

查看:130
本文介绍了Neo4j:它是内存中的图形数据库吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是Neo4j的旧版本,即1.8.x. 嵌入式和REST模式.但我从未听说过它可以将数据存储在内存中.最近,我浏览了Neo4j 页面,其中说有3种不同的访问neo4j的方式:

I have worked with bit older version of Neo4j i.e. 1.8.x. both embedded and REST mode. but I never heard that it store data in-memory. Recently I've been through Neo4j page which says 3 different type of access to neo4j viz:

  1. neo4j服务器,即REST模式
  2. 嵌入式模式
  3. 内存中

Neo4J如何处理内存中的数据?何时实施?是从旧版本(即1.8.x)开始的吗?或只是添加了较新的版本?配置中需要进行的其他任何更改,例如Spring数据neo4j吗?

How Neo4J works with data in-memory ? and when it was implemented ? was it there from older version i.e. 1.8.x ? or just added in newer version ? any additional changes required in configuration such as Spring data neo4j ?

我的发现
我听说过内存数据库,它们可以处理内存中的大部分任务,即RAM.例如 VoltDB Redis . (以优化性能).

My findings
I've heard about in-memory database that they handle most of the task in-memory i.e. RAM. for e.g. VoltDB and Redis. (for optimized performance).

推荐答案

Neo4j具有一个简化的变体,称为ImpermanentGraphDatabase.此仅用于测试.例如.当您开发启用图形的应用程序时,单元测试可能会使用它. 对于具有大量数据的现实生活场景,建议不要使用ImpermanentGraphDatabase.

Neo4j features a stripped down variant called ImpermanentGraphDatabase. This one is intended to be used for testing only. E.g. when you develop a graph enabled application your unit tests might use it. It is not recommended to use ImpermanentGraphDatabase for real life scenarios with large amounts of data.

要使用ImpermanentGraphDatabase,通常从

To use ImpermanentGraphDatabase you typically start with TestGraphDatabaseFactory, this one resides in the neo4j-kernel jar with classifier tests, see in the reference manual as well.

无论您是在嵌入式还是服务器模式下使用Neo4j,多层缓存都可以用来使您的查询尽可能快,有关详细信息,请参见

Regardless if you're using Neo4j in embedded or server mode, multiple layers of caches get used to make your queries as fast as possible, for details look in the reference manual as well.

总而言之:Neo4j是一个符合ACID的事务性图形数据库,您可以通过缓存获得所提供的RAM数量.但是我不会认为这是内存数据库.

To sum up: Neo4j is a transactional, ACID compliant graph database benefitting from your provided amount of RAM by caching. But I won't consider this being a in-memory database.

这篇关于Neo4j:它是内存中的图形数据库吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆