SHARE
Follow this article on Twitter Facebook LinkedIn Bookmark and Share
Home >> Information Architecture

Review: Databases built for social networks

Review: Databases built for social networks

By:  Peter Wayner  On: 18 Feb 2010 For: InfoWorld (U.S.) 

Neo4j, Cassandra, and FluidDB represent a breed of databases that swiftly search social networking data. What you should know about each of them

Everyone loves social networks these days. Homeland security wants to track which terrorists know one another. Laundry companies want to know your friends so that they can get you to pass along the good word about the new starch. Content mongers, meanwhile, believe that they can link together similar movie, television, and music preferences among users so that people who love "Die Hard" can be automatically informed that they might want to check out "Die Hard 2: Die Harder."

 

At the heart of these problems and dozens of other ideas springing from the forehead of marketing directors everywhere are graph databases. (Computer scientists use the word "graph" to describe collections of objects and the links among them.) Using graph databases instead of traditional relational databases to store social-network-type data structures can yield faster answers to important questions -- such as what kind of donut your friend's friend's friend prefers, or whether someone from your "Labor Day" DVD was in a movie with someone who was in a movie with Kevin Bacon.

 

Pure graph databases aren't the only answer. Simple, schema-free relational databases are emerging that rival the capabilities of graph databases in swiftly cranking out quick answers to the aforementioned questions. They achieve this feat by not wasting time fretting over transactions, instead focusing on pre-computing answers.

 

Moreover, certain types of simple queries that might be required of a social network are better suited for the indexing and table balancing built into a relational database. For example, if you have links between people stored in an indexed table with the ID numbers in two columns, it's easy for a relational database to find everyone who is a friend of Bob or everyone who follows Chris. The graph structure doesn't really help with such queries.

 

I looked at three databases, both graph and relational, that are geared toward social networks: Neo4j, Cassandra, and FluidDB. All three are relatively young but hold promise in helping organizations connect the dots among their user base.

 

Neo4j

At first glance, there's not much to Neo4j, a graph database written in Java that can be linked with Ruby and Python. There are just nodes, attributes to nodes, and relationships between nodes. To find an answer, you create a traversal object that bounces around the nodes by following the relationships until it comes up with your answer.


Sign up for our Newsletters












Print |  Views: 2973   |   Rating:offoffoffoffoff  (0 votes)
Rate this article on a scale of
1 to 5 stars,5 being the best.




peter wayner Peter Wayner is a contributor to the International Data Group (IDG) News Service, which publishes global technology stories from bureaus around the world to more than 300 publications in more than 60 countries.

Related Content

Startups lead phone, social network convergence
Startups lead phone, social network convergenceMajor social networking sites are merely replicating their PC services onto handhelds, says Nokia. Meanwhile startups are taking a more mobile approach
AppDetective sleuths out vulnerabilities
AppDetective sleuths out vulnerabilitiesThere’s no such thing as a set-and-forget security configuration. You have to stay on top of your applications and databases to ensure that your policies are being enforced and that they’re still valid in the face of new vulnerabilities. Enter Application Security’s AppDetective 5.0, a very powerful audit tool capable of performing both authenticated audit tests and brute-force attacks against your apps and databases.
AppDetective scans for IBM DB2 market
AppDetective scans for IBM DB2 marketDatabase hackers beware: Application Security Inc. has released its AppDetective v.3.0 for IBM Corp.’s DB2 databases.
Relational databases are not all relative
there's no better way to launch a new blog than to declare someone or something irrelevant, dead, or at least dying. such is the success strategy of the database
Are database admins keeping up with the database?
at ibm corp.’s information on demand conference earlier this week, i had a conversation about the future of databases with anant jhingran, the company’s vice-president and chief technology officer for information management.  
blog comments powered by Disqus