Support for xlsx export #25
Labels
backend
Tasks related to backend
frontend
Tasks related to frontend
non-essential
Tasks that are not required, but would be nice to have
Currently the backend supports only .csv file export. That is because, as it turns out, it is not possible to split .xlsx files into chunks, which then can be sent to the user using generator and streams.
If such method of splitting exists, a librarly called
XlsxWriter
could be used to write into a file without eating up entire memory for very large files, as per documentation:https://xlsxwriter.readthedocs.io/working_with_memory.html (especially the part about
constant-memory
mode)https://flask.palletsprojects.com/en/2.3.x/patterns/streaming/
It is not something that is a must, as .csv files can be imported into Excel just fine, but it is worth considering for the future.
As for the detailed reason why this is impossible to achieve, I'll copy and paste ChatGPT's answer, because why not:
The text was updated successfully, but these errors were encountered: