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

Bug: Out of memory after submitting long queries #491

Open
2 tasks done
Xkonti opened this issue Oct 2, 2024 · 1 comment
Open
2 tasks done

Bug: Out of memory after submitting long queries #491

Xkonti opened this issue Oct 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Xkonti
Copy link

Xkonti commented Oct 2, 2024

Describe the bug

For testing I'm pasting-in a 1.1 million lines long queries and execute then through Surrealist. After sending one or 2 queries like that, surrealist keeps soft-crashing with an out-of-memory message:

image

This continues to happen after a restart, possibly due to the queries still being in the query history (and trying to render the whole thing).

Steps to reproduce

Here's the code that generates said 165MB query: https://github.com/Xkonti/surreal-benchmarks/blob/main/benchmarks/select_simple.ts

Expected behaviour

No slowdowns of Surrealist, possibly showing a warning that the query won't be present in the query history due to it's size.

Surrealist Environment

Can't get to the settings because Surrealist keeps crashing, but I remember it's v3.0.4 on Windows 11

Contact Details

[email protected]

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Xkonti Xkonti added bug Something isn't working triage This issue is new labels Oct 2, 2024
@macjuul macjuul removed the triage This issue is new label Oct 3, 2024
@macjuul
Copy link
Contributor

macjuul commented Oct 3, 2024

Hey! I have been working on improvements to the query history drawer in this PR after watching one of your previous streams 😄 Hopefully that will improve memory usage as a result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants