Re: Finding supernodes with insufficient frame size


Robert Dale <rob...@...>
 


This should give you the counts, highest first, by vertex id:

g.V().group().by(id()).by(outE().count()).order(local).by(values,decr)



Robert Dale

On Wed, Jun 14, 2017 at 11:32 AM, Adam Holley <holl...@...> wrote:
Using cassandra as the backend, I was trying to count edges {g.E().count} and of course ran into the framesize problem because I had a supernode.  I found that I could identify which node was the supernode with:

g.V().toList().each{it.println(it);g.V(it).outE().count()}

This will print out the supernode vertex right before the framesize exception.  Then I can gradually increase the framesize until g.V(supernodeID) doesn't cause an exception.

Is there a better way to find supernodes without just increasing framesize to a large number, finding the supernode, and then working backward by decreasing the framesize?
As I'm not as familiar with Cassandra, once I know the supernode ID, is there a way to use CQL to determine the appropriate framesize without just gradually increasing or decreasing in the config?

--
You received this message because you are subscribed to the Google Groups "JanusGraph users list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgraph-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Join janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.