one more solution. set a sampling_ratio, say 10:
Person1.outgoing(:follows).outgoing(:tweeted).depth(2).filter("position.length()==
2;") .prune("position.returnedNodesCount() > 100 * sampling_ratio")
then do a sort based on timestamp.
the goal is not to get the perfect result but *good enough* ones
depends on your experience.

On Thu, Nov 3, 2011 at 4:48 PM, maxdemarzi <maxdema...@gmail.com> wrote:
> Came up with another possibility:
>
> G) Store the Latest 100 tweeted relationship ids with dates as a property of
> the User Node, and a custom Breadth First Traversal that evaluates the list
> of every follower's latest 100 tweets before deciding which relationships to
> follow.
>
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/Activity-Streams-and-Twitter-Sample-App-tp3477669p3477693.html
> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Best wishes,

Linan Wang
Architect, Programmer, PhD
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to