Home  >  Q&A  >  body text

python - How to solve the problem when the browser is half stuck when exporting excel with more than 10,000 items?

Business requirements sometimes require tens of thousands of items to be exported.
Can I use python to process it?? It’s too stuck.
What if I use python to process it?

習慣沉默習慣沉默2707 days ago1988

reply all(13)I'll reply

  • 大家讲道理

    大家讲道理2017-06-14 10:51:44

    Use export to completely explode phpexcel. phpexcel is recognized to be slow in performance
    /q/101... I have answered this question. Please understand

    reply
    0
  • 高洛峰

    高洛峰2017-06-14 10:51:44

    Can be done using asynchronously.
    For example, when the user clicks export, a queue for exporting excel is added the day after tomorrow. This is the "Exporting" status that the user sees.
    When the queue is completed and the excel file is generated, the export is completed, and the user can download the excel

    The user submits the export task->Adds the export queue in the background->The export queue is executed->The user clicks to download the exported file

    reply
    0
  • typecho

    typecho2017-06-14 10:51:44

    10,000 items is not too much, but you cannot use PHPExcel because it is too slow and can easily burst the memory.
    I have written one https://github.com/qpwoeiru96... , which is specially used for simple Excel export. You can use it.

    reply
    0
  • Cancelreply