php - Graphdb like model approach on mongodb and scaling -
php - Graphdb like model approach on mongodb and scaling -
im doing project php , mongodb. there requirement user needs shown feed in social network system.
to create happen im keeping mongo document each object (users,pages,etc) has unique id, each document called node similar node in graph db. nodes in "nodes" collection in mongo db. relationship stored connection flow(direction) , referring id's (to nodes) in collection called "rels".
when making queries aggregate on "rels" collections , load respective nodes.
my question how kind of model impact when comes scaling ? because there uncountable amount of documents made on "rels" collection. 10000's . im pretty new scaling in mongo. approach wrong ? thanks.
to drive nail through wall dont need sledgehammer. mongodb not suitable these kind of scenarios. utilize case where-in have nodes , relationships between them can best justified using graph database neo4j. scaling aspect yet reason take neo4j on mongodb connections/relationships can complex time number of nodes grow.
php mongodb scalability graph-databases
Comments
Post a Comment