ScottLogic / kdb-boothroyd

a prototype re-implementation of KDB Studio using JavaScript and Electron
Apache License 2.0
5 stars 2 forks source link

Raw view with large result set crashes #22

Closed OiNutter closed 3 years ago

OiNutter commented 3 years ago

If you use the following script

dts:2015.01.01+1000000?31;
tms:1000000?24:00:00.000000000;

syms:1000000?`aapl`goog`ibm;
vols:10*1+1000000?1000;

pxs:90.0+(1000000?2001)%100;

trades:([] dt:dts; tm:tms; sym:syms; vol:vols; px:pxs);
trades:`dt`tm xasc trades;
trades:update px:6*px from trades where sym=`goog;
trades:update px:2*px from trades where sym=`ibm;

100#trades

And then try to view the whole of the trades table, either by clicking it's entry on the left hand side, or sending a trades query, when you try and view the Raw view the app will crash.

Should we perhaps truncate the result set being stringified?

OiNutter commented 3 years ago

@ColinEberhardt @ihull what are your thoughts?