I build a Data model with
Nodes with labes: User, Post, Comment, Page, Group
Relationships: FOLLOW(User->User/Page), WRITE(User->Post/Comment), LIKE(User->Post/Comment), AT(between Post and Comment), HAS(between Post and Group), BELONG_TO(User->Group)
Diagram: (User)-[FOLLOW]->(User)-[Write]->(Post)<-[AT]-(Comment)<-[WRITE]-(User)-[BELONG_TO]->(Group)-[HAS]->(Post)<-[LIKE]-(User)-[FOLLOW]->(PAGE)-[WRITE]->(Post)
I want to build a api get newsfeed with CYPHER query get Post order using pagerank. I tried with
apoc.algo.pageRank()
apoc.algo.pageRankWithConfig()
Question: Anytime call api get newsfeed (server neo4j become slowly with this query include this algorithm) or get score for Post nodes then save score as property node (build a small graph for a user). How to use pagerank and need call it when?