epimorphics / qonsole

A simple console for running SPARQL queries and displaying results
Other
16 stars 2 forks source link

Large result sets break the browser #22

Open bwmcbride opened 6 years ago

bwmcbride commented 6 years ago

When a query returns a large result set the browser can break - presumably runs out of memory.

Is it possible to limit the amount of returned data accepted to prevent this?

paperclipmonkey commented 6 years ago

Superagent now supports limiting the response size. We could limit this in JS to be, for example, 50mb. https://github.com/visionmedia/superagent/commit/946e28dab08f2ab334753bf36a2fbc5110d17789

paperclipmonkey commented 6 years ago

Additionally possible to truncate the results based on an arbitrary results limit. while i < 500 for example