DEV Community

Discussion on: Deciding a database architecture for a Social Networking use-case?

Collapse
 
eli profile image
Eli Bierman

Another more low-level option could be a key-value store like LevelDB.

You would have to figure out how to represent the relationships between users yourself, but there's no query language to learn and lookups are super fast.

Here's a cool LevelDB wrapper for Node that I've been meaning to try out:

github.com/level/level

Collapse
 
presto412 profile image
Priyansh Jain

A key value store wouldn't make sense for me to add the "friends of friends" functionality, since effectively it will be parsing through the entire list. I can still try to get an optimised method by using hashing to locate items I guess. Thanks for the suggestion.