We have a graph where many vertices have tens of thousands of edges. When trying to execute the following query to find the edge between two vertices:
g.v(node_a).as('v1').bothE(label).as('e').bothV.retain([g.v(node_b)]).as('v2').select(['e', 'v1', 'v2'])
We are getting the exception:
org.apache.thrift.transport.TTransportException: Frame size (16395455) larger than max length (16384000)!
(I can share a full stack trace but this seems like a relatively common error)
From everything I've read around the topic on the forum and elsewhere the easy option is to just increase the "storage.cassandra.thrift.frame-size" setting. However, I was wondering if there was a better way to achieve the above query that would avoid the exception and wouldn't require increasing that setting? As our dataset continues to grow we would presumably have to keep increasing it and I don't know what the repercussions of this would be.
Thanks for any help.