Closed legout closed 1 year ago
Really love how you put this together.
Took me a while to spot the issue. You are converting the data to csv on each render. We anticipated this, so data can be a callable to generate the data only when requested. I.e.:
solara.FileDownload(
data=lambda: df.to_csv(index=False),
filename="result.csv",
label="Download query result",
)
Does that make sense?
Thanks. Makes sense. 😊
Hello,
i´ve tested duckdb with solara and found, that executing queries in a solara app is much slower (5-10x) than running the same query in a jupyter notebook.
Here is some code for reproduction: