Use the Graphbinary Serialization Protocol - Amazon Neptune

Use the Graphbinary Serialization Protocol

The GraphBinary serialization protocol introduced in client version 3.4.0 is faster than older protocols and improves serialization performance. Because this protocol is not enabled by default (as of client version 3.4.2), it should be enabled manually while building a cluster. For example:

final Cluster cluster = Cluster.build("Neptune endpoint") .port(8182) .serializer(Serializers.GRAPHBINARY_V1D0) .create();

This serializer does materialize properties even in its string submission version.