Replies: 1 comment
-
If we see in above samples, using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Usecase: Add attribute of type array as properties to a vertex.
We have a usecase, where one of the attributes is of type
array
for an entity. Internally, we iterate over each entry in that array, and add it as a property to the vertex.Code Flow:
Observation:
One observation is that, as the size of the array increases to as big as
10k entries
,AbstractVertex::property()
happens to be the bottleneck.Since internally a lock is created on the vertex, and a property is added, and the lock is released. We have observed that this whole process is literally time-consuming, and latency just spikes to mins ( considering
10k entries
for an attribute in a single request)Questions:
Example Models:
Sample Data
Beta Was this translation helpful? Give feedback.
All reactions