vesoft-inc / nebula-studio

NebulaGraph Web GUI Tools
Apache License 2.0
196 stars 62 forks source link

Show UI error when too much data is loaded in the UI #768

Open johnny-smitherson opened 6 months ago

johnny-smitherson commented 6 months ago

Is your feature request related to a problem? Please describe.

When working with large networks (e.g. movie recommendation sample space) it's easy to write requests that load too much data on the client. When that happens, the UI hangs and a helpful error message only shows up in the browser logs: Uncaught (in promise) DOMException: The quota has been exceeded..

Captuaaaaare

It would be great to have the web app detect this and show warning/error when too much data is loaded, instead of crashing.

This is unrelated from the NGQL 4MB request/response limit - that case properly shows an error message from the database.

Steps to reproduce

Describe the solution you'd like

I believe these changes would help us write better queries, by finding out sooner that we are asking for too much data.

Describe alternatives you've considered

-

Additional context