Hello,

I have a question regarding the implementation of serializers. This
question holds true for Gryo as well as Graphson.

What is the motivation for adding properties associated with the Vertex in
the serialized result sent back to the client? I understand that a
DetachedVertex is defined by the vertex along with the properties, but in
cases when the client is only interested in projecting out the vertex with
Id and Label, the additional computation & serialization of properties is
unnecessary.

Do you think it would be an idea worth considering to create a leaner
version of detached vertex which consists of only the Id of the vertex?
This leaner implementation should be the output to queries which project
out a vertex such as g.V(1).

Serializer code reference: https://github.com/apache/tinkerpop/blob/
4062898a0d15de030b656283a038eaa7c0b128d0/gremlin-core/src/
main/java/org/apache/tinkerpop/gremlin/structure/
io/gryo/GryoSerializersV3d0.java#L132

Regards,
Divij

Reply via email to