search
HomeDatabaseMysql TutorialNeo4j2.0发布,带有一个全新的浏览器与模式

本文来源于我在InfoQ中文站翻译的文章,原文地址是:http://www.infoq.com/cn/news/2014/01/neo4j-2 近日,Neo Technology发布了Neo4j 2.0 GA版,带有一个全新的图浏览器、结点标签、一个可选的模式以及改进的Cypher。 Neo4j 2.0最值得关注的改进就是全新的浏

本文来源于我在InfoQ中文站翻译的文章,原文地址是:http://www.infoq.com/cn/news/2014/01/neo4j-2

近日,Neo Technology发布了Neo4j 2.0 GA版,带有一个全新的图浏览器、结点标签、一个可选的模式以及改进的Cypher。

Neo4j 2.0最值得关注的改进就是全新的浏览器UI,用户可以通过图或是表格形式来查看和编辑数据。下面是一个示例电影数据库的截图,展示了一个演员与他所参演的一些影片(灰色)以及与其他演员之间(红色)的关系:

image

结点现在可以拥有标签了,可以通过标签将结点标记为属于某个组。一个结点可以有多个标签。

Neo4j 2.0还增加了对模式的支持,不过这是可选的,看起来有点向关系型数据库回归的意味。增加模式主要是为了包含一些元信息,从而改进查询的执行。

Cypher查询语言也得到了改进,这主要是通过OPTIONAL MATCH与MERGE子句、字面结点模式以及返回字面map与collection的能力而实现的。

我们有幸采访到了Spring Integration的领导与Neo Technology的开发者Michael Hunger,从而了解Neo4j 2.0的兼容性问题、模式的使用以及未来的路线图。

InfoQ:Neo4j 2.0与之前的版本存在哪些兼容性问题?

MH:Neo4j 2.0有着突破性的变化,增强了数据模型,增加了标签的概念以及可选的模式信息。

此外,查询语言Cypher从1.9开始经历了相当大的革新,对于嵌入式API来说,读事务也成为必须的了,此外,该版本还删除了很多之前被标记为不建议使用的内容。

具体请参考:

http://www.neo4j.org/release-notes#2.0.0

http://docs.neo4j.org/chunked/2.0.0/deployment-upgrading.html#deployment-upgrading-two-zero

InfoQ:新引入的模式是如何加快查询速度的?

MH:可选的模式信息(标签)支持索引和唯一约束,他们会自动用在查询中,将过滤条件转换为索引查找。此外,将标签作为查询的一部分还会让数据库在查找非索引信息时只扫描整个数据库的子集。第三,标签信息是内联在结点记录中的,因此测试现有结点的标签信息是非常简单的,并不需要进一步查找属性或是关系。

InfoQ:如果数据库发生变化了该怎么办?还需要手工更新模式么?

HM:当数据发生变化时,索引与约束信息会与数据保持同步。

比如说,要是增加新的标签,那么你就需要提供新的索引/约束定义。不过通过新标签增强的现有数据则会自动被索引。

InfoQ:Neo4j未来的路线图是怎样的?

MH:

持续改进用户体验性能(读、写、查询语言)增加了对结点、关系的(人为)限制更好的导入/导出功能BI/集成操作上的改进一些大数据/图计算化的安装体验改进的远程/驱动

查看英文原文:Neo4j 2.0 Comes with a New Browser and a Schema

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
How Do I Drop or Modify an Existing View in MySQL?How Do I Drop or Modify an Existing View in MySQL?May 16, 2025 am 12:11 AM

TodropaviewinMySQL,use"DROPVIEWIFEXISTSview_name;"andtomodifyaview,use"CREATEORREPLACEVIEWview_nameASSELECT...".Whendroppingaview,considerdependenciesanduse"SHOWCREATEVIEWview_name;"tounderstanditsstructure.Whenmodifying

MySQL Views: Which design patterns can I use with it?MySQL Views: Which design patterns can I use with it?May 16, 2025 am 12:10 AM

MySQLViewscaneffectivelyutilizedesignpatternslikeAdapter,Decorator,Factory,andObserver.1)AdapterPatternadaptsdatafromdifferenttablesintoaunifiedview.2)DecoratorPatternenhancesdatawithcalculatedfields.3)FactoryPatterncreatesviewsthatproducedifferentda

What Are the Advantages of Using Views in MySQL?What Are the Advantages of Using Views in MySQL?May 16, 2025 am 12:09 AM

ViewsinMySQLarebeneficialforsimplifyingcomplexqueries,enhancingsecurity,ensuringdataconsistency,andoptimizingperformance.1)Theysimplifycomplexqueriesbyencapsulatingthemintoreusableviews.2)Viewsenhancesecuritybycontrollingdataaccess.3)Theyensuredataco

How Can I Create a Simple View in MySQL?How Can I Create a Simple View in MySQL?May 16, 2025 am 12:08 AM

TocreateasimpleviewinMySQL,usetheCREATEVIEWstatement.1)DefinetheviewwithCREATEVIEWview_nameAS.2)SpecifytheSELECTstatementtoretrievedesireddata.3)Usetheviewlikeatableforqueries.Viewssimplifydataaccessandenhancesecurity,butconsiderperformance,updatabil

MySQL Create User Statement: Examples and Common ErrorsMySQL Create User Statement: Examples and Common ErrorsMay 16, 2025 am 12:04 AM

TocreateusersinMySQL,usetheCREATEUSERstatement.1)Foralocaluser:CREATEUSER'localuser'@'localhost'IDENTIFIEDBY'securepassword';2)Foraremoteuser:CREATEUSER'remoteuser'@'%'IDENTIFIEDBY'strongpassword';3)Forauserwithaspecifichost:CREATEUSER'specificuser'@

What Are the Limitations of Using Views in MySQL?What Are the Limitations of Using Views in MySQL?May 14, 2025 am 12:10 AM

MySQLviewshavelimitations:1)Theydon'tsupportallSQLoperations,restrictingdatamanipulationthroughviewswithjoinsorsubqueries.2)Theycanimpactperformance,especiallywithcomplexqueriesorlargedatasets.3)Viewsdon'tstoredata,potentiallyleadingtooutdatedinforma

Securing Your MySQL Database: Adding Users and Granting PrivilegesSecuring Your MySQL Database: Adding Users and Granting PrivilegesMay 14, 2025 am 12:09 AM

ProperusermanagementinMySQLiscrucialforenhancingsecurityandensuringefficientdatabaseoperation.1)UseCREATEUSERtoaddusers,specifyingconnectionsourcewith@'localhost'or@'%'.2)GrantspecificprivilegeswithGRANT,usingleastprivilegeprincipletominimizerisks.3)

What Factors Influence the Number of Triggers I Can Use in MySQL?What Factors Influence the Number of Triggers I Can Use in MySQL?May 14, 2025 am 12:08 AM

MySQLdoesn'timposeahardlimitontriggers,butpracticalfactorsdeterminetheireffectiveuse:1)Serverconfigurationimpactstriggermanagement;2)Complextriggersincreasesystemload;3)Largertablesslowtriggerperformance;4)Highconcurrencycancausetriggercontention;5)M

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!