Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to resolve 'The maximum number of statements allowed has been exceeded' #10

Closed
sunkararp opened this issue Dec 27, 2021 · 3 comments

Comments

@sunkararp
Copy link

I am getting below error; when tried to bulk ingest data.

System.Exception: SemanticError: The maximum number of statements allowed has been exceeded

@wey-gu
Copy link
Member

wey-gu commented Dec 28, 2021

That's the error from the nebula server-side your query string exceeded the allowed length.
What is your bulk ingest query like?

Plz note, we should use:

INSERT VERTEX  t3 (p1), t4(p2) VALUES "1": (111, "hello"), "2": (222, "world"), "3":(333, "foo"), "4":(333, "bar");

Rather than:

INSERT VERTEX  t3 (p1), t4(p2) VALUES "1": (111, "hello");
INSERT VERTEX  t3 (p1), t4(p2) VALUES "2": (222, "world");
INSERT VERTEX  t3 (p1), t4(p2) VALUES "3":(333, "foo");
INSERT VERTEX  t3 (p1), t4(p2) VALUES  "4":(333, "bar");

@sunkararp
Copy link
Author

@wey-gu thanks for the reply.

We did not see this error with Python library!!!

In any case use UPSERT; how does the above syntax change?

@shyboylpf
Copy link
Member

@sunkararp thanks for your question, there is a limit from nebula-server side, not from our client.
Please ref nebula document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants