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

cqlsh is slow for large input #42

Open
soyacz opened this issue Jul 26, 2023 · 3 comments
Open

cqlsh is slow for large input #42

soyacz opened this issue Jul 26, 2023 · 3 comments

Comments

@soyacz
Copy link

soyacz commented Jul 26, 2023

When trying to insert UDF written in WASM according to scylla docs (with rust helper) cqlsh takes 2h to insert it (I tried to use it by providing input from file, as query is >1MB in size, cli also does not work well, but this is another story as I don't expect it to work smoothly).

It shouldn't take that long, especially when inserting using Python driver takes a lot less time.

@nyh
Copy link

nyh commented Jul 26, 2023

What do you mean "insert UDF"? Do you mean a CREATE FUNCTION?
How could that take 2 hours?

Can you provide an example that reproduces this?

If the Python driver does it quickly and cqlsh doesn't, it sounds like it might be a cqlsh bug, but I'll have to see an example to try to understand this.

@soyacz
Copy link
Author

soyacz commented Jul 26, 2023

Example UDF script taken from our examples, created like in our documentation attached.
udf_commas.cql.tar.gz

@avikivity
Copy link
Member

Please provide a clear reproducer.

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