surrealdb / surrealist

Surrealist is the ultimate way to visually manage your SurrealDB database
https://surrealist.app/
MIT License
1.03k stars 73 forks source link

Sending a lot of queries to built in server while console is open causes console/UI to lock up #274

Closed waffle-lord closed 1 month ago

waffle-lord commented 1 month ago

Describe the bug If the console window is open while sending a large amount of queries (1000 in my case) the console and UI will lock up.

This doesn't seem to happen if the console window is closed

To Reproduce Steps to reproduce the behavior:

  1. Start the local server with the play button
  2. Add some data, doesn't matter
  3. Open the console window log thing
  4. Send 1000 queries
  5. The console will take a very long time to catch up / become responsive again. If you close the console, the UI is unresponsive

Expected behavior The console doesn't lock up / UI doesn't freeze

Environment: Platform: Desktop OS: Windows_NT Architecture: x86_64 WebView: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0 Version: 2.0.6 Flags: featureFlags: false, models_view: true, apidocs_view: true, themes: false, newsfeed: true

Here is a gif that shows 2 runs. The first is with the console window closed (which seems to work fine). The second is with it open, which shows to lock ups

https://i.postimg.cc/wBJWqHYh/surreal-behavior.gif