Sounding better all the time, thanks! I think I'm sold on giving it a shot.
util.map solves another problem I had, I thought I'd need something external for that. I'm more-or-less new to the java platform and planning to use scala or clojure, so I've got a lot of juicy work in front of me. On Wed, Jun 17, 2009 at 9:57 AM, Johan Svensson <[email protected]>wrote: > On Wed, Jun 17, 2009 at 5:22 AM, Dennis > Peterson<[email protected]> wrote: > > Sounds good...for your (b) I see that a traverser would easily do it, > > or I may do it client-side to show stubs for hidden comments. I'll > > also want (a), a global list of high-rated comments, which is why I'm > > thinking I'd maintain a list of the top 1000 or so. Comment ratings > > will degrade over time so nodes should drop out of this list. > > > > Yes, traverser for (b) and some type of list for (a). Have a look at > the SortedTree and Timeline utilities in index-util component, they > may help you to do (a). > > > I'll want to do something like give a user a sum of the points he's > > accrued across his comments...assuming worst case of a couple thousand > > comments, would I likely be better off updating his sum whenever a > > comment of his is rated, or simply traversing his comments and summing > > them up when I need to? > > > > I think traversing will work well when you only have a couple of > thousands of comments. > > > In the event that I'm very lucky and need more than 200 > > transactions/s, would it work better to do updates in batches every > > few seconds? (Of course I guess then I'd need to temporarily save the > > update instructions somewhere outside the system.) > > > > Yes. Having a single thread running a transaction that batches work > together will speed things up. > > > Getting ahead of myself a bit: anything noteworthy about ram > requirements? > > > > There is some information about it on the wiki > (http://wiki.neo4j.org/content/FAQ). Amount of RAM needed depends on > how much data you have. > > > On 6/16/09, Johan Svensson <[email protected]> wrote: > >> ... > >> > >> Does getting the highest rated comments mean: > >> > >> a) of all the latest comments since time X, give me the ones that had > >> the highest rating > >> > >> or > >> > >> b) for this topic / thread, only show comments with rating higher then X > _______________________________________________ > Neo mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user > _______________________________________________ Neo mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

