Skip to content

Recommended way to handle large dataframes? #1342

Answered by mturoci
codeananda asked this question in Q&A
Discussion options

You must be logged in to vote

Is the recommended way to do this

Kind of. If you want to keep a separate df for each browser (client), then yes, but if the dataset is large, you can easily end up using too much memory and crashing the app eventually (in case of insufficient RAM). If you need a single df for all the users, you can use q.app - once per app.

Then in the rest of the app, I can use q.client.df whenever I want to work with it?

Yes, q.client will be always in your control and available.

Are there any instances when this will be reloaded? For example, what happens if I call something with trigger=True?

It will be reloaded only if you specify it within your code. trigger=True simply submits data to server…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@codeananda
Comment options

Answer selected by codeananda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants