mesarth / JSONPath-Notebook

Execute JSONPath queries inside VS Code Notebooks
https://marketplace.visualstudio.com/items?itemName=tschranz.jsonpath-notebook
MIT License
2 stars 0 forks source link

Support lazy query execution #13

Open mesarth opened 5 months ago

mesarth commented 5 months ago

Implement https://jg-rp.github.io/json-p3/quick-start#lazy-queries

Research:

mesarth commented 4 months ago

Looked into this a bit.

We still have to use a seperate thread for query execution because the controller is apparently run on the UI thread (becomes unresponsive).

Regardless of that, it would have been nice to stream the result nodes to the cell output as soon as they become available. The main problem seems to be that our result is always a JSON array, which has to be added at once. Therefore we have to replace the complete result array after each iteration which is not performant.