- Newest
- Most votes
- Most comments
Hello - it would be very helpful to see an example query that is failing. In general, the way Gremlin steps are processed uses space on the worker thread's stack. That stack space can run out for very long queries. It is possible that is what you are running into but it could be something else. If you are not needing to do "upsert" checks (using coalesce
), an alternative is to inject a list of maps into the query. Each map contains all of the information for a vertex or an edge. There are several ways a query can be built to take advantage of the "map injection" pattern. There is some discussion of it here. For large creates, using a map can be quite effective and avoids any possibility of hitting the issue with Gremlin queries becoming very long.
We can discuss further by e-mail or PM if you are able to share a sample query but it may also be best to open a support case so that someone can investigate the exact cause of the exception/
Relevant content
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 months ago
- What happens to Amazon RDS and Amazon Redshift queries that are running during a maintenance window?AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 2 years ago
I was not able to find a way to send you a PM. Is there any way to get in contact without posting details public?
Are you able to open a support case?
We contacted our service provider to create an support case. Nevertheless, I also edited my question to attach the queries via pastebin.
Thanks for sharing the queries. I think it is quite likely that you are running into the issue discussed at the link I shared. The support team will be able to look at that once the support case arrives. Especially, if you don't need the coalesce(), the map injection pattern is most likely a very good alternative approach to take over using a large number of Gremlin steps. I have used it to create many thousands of vertices and properties in a single query.