Neo4j

15
Neo4j Adam Foust

description

Neo4j. Adam Foust. Road Map. Introduction to Neo4j NoSQL databases Graph databases How Neo4j works Comparison. Introducing Neo4j. Introduced in 2010 Open source Java-based NoSQL Graph Database. NoSQL databases. Four classes of NoSQL databases Key-value store Amazon’s Simple DB - PowerPoint PPT Presentation

Transcript of Neo4j

PowerPoint Presentation

Neo4jAdam Foust

Road MapIntroduction to Neo4jNoSQL databases Graph databasesHow Neo4j worksComparison

Introducing Neo4jIntroduced in 2010 Open sourceJava-based NoSQL Graph Database

NoSQL databasesFour classes of NoSQL databasesKey-value storeAmazons Simple DBColumn-family or big table databasesGoogles Big Table Apache Cassandra databaseDocument-orientedMongoDBGraph DatabasesNeo4j

Graph DatabaseNeo4j is a graph databaseDatabase full of linked nodesStores data as nodes and relationships

Graph Database (cont.)Nodes represent entitiesEdges represent relationshipsConnections between data are exploredFaster for associative data setsIntuitive Optimal for searching social network data

How Neo4j WorksStoring ObjectsDomain objects take a nodeJo4neo framework

public class Person {//used by jo4neotransient Nodeid node;//simple property@neo String firstName;//helps you store a java.util.Date to neo4j@neo Date date;// jo4neo will index for you@neo(index=true) String email;// many to many relation@neo Collection roles; /* normal class oriented* programming stuff goes here*/}

How Neo4j Works (cont.)Dealing with complexitySimple domains can be complexMutual Friend example

Case StudyA side by side comparison of a relational database and Neo4jArtificially generated graph dataset with natural statistics1 million vertices and 4 million edges

Case Study ResultsFirst 250 vertices used as roots

Result ConclusionNeo4j proved to take less than half the time of the SQL database. Neo4j is optimal

ConclusionIntroduced Neo4jDiscussed NoSQL databasesWent over graph databasesHow Neo4j worksCase study

Questions?

References "Ayende @ Rahien." That No SQL Thing: Column (Family) Databases -. N.p., n.d. Web. 13 Mar. 2013. .WebsiteLinkTagsEditDelete "Graph Database." Wikipedia. Wikimedia Foundation, 03 June 2013. Web. 13 Mar. 2013. .WebsiteLinkTagsEditDelete Krill, Paul. "Neo Technology Execs: How Neo4j Beat Oracle Database." InfoWorld. N.p., n.d. Web. 13 Mar. 2013. .WebsiteLinkTagsEditDelete "MySQL vs. Neo4j on a Large-Scale Graph Traversal." Javalobby. N.p., 12 May 2011. Web. 13 Mar. 2013. .WebsiteLinkTagsEditDelete "Neo4j Blog." : The Top 10 Ways to Get to Know Neo4j. N.p., n.d. Web. 13 Mar. 2013. .WebsiteLinkTagsEditDelete "Processing MongoDB for and Open-Data Portal, MongoDB Emerges as NoSQL Leader." Magazine for Software Developers Programmers and Designers Software Developers Journal. N.p., n.d. Web. 13 Mar. 2013. .

Applause