T
TanStack2y ago
other-emerald

Can I import a CSV File or do I need to convert it completely to dict?

I want to import a CSV file into a table, and the CSV might be several GB large so converting to dict may take a while. I think virtualized would be good to use too? Using Tauri with Next.js if that's helpful.
2 Replies
correct-apricot
correct-apricot2y ago
Table expects the data to be provided as rows of objects. The keys of the object are known as accessors, which is what the column definitions need to get the data. Virtualization could be recommended here, since your data is quite extensive.
other-emerald
other-emeraldOP2y ago
Thank you! I think virtualization works well here too and maybe the conversion from csv data to dict based on what the user sees (so that the entire file doesn’t need to be converted at once beforehand).

Did you find this page helpful?