1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Django WeasyPrint high memory usage with large datasets

Discussão em 'Python' iniciado por Stack, Setembro 18, 2025.

  1. Stack

    Stack Membro Participativo

    I am using WeasyPrint in Django to generate a PDF. However, when processing around 11,000 records, it consumes all available resources allocated to the Kubernetes pod. As a result, the pod restarts, and I never receive the generated PDF via email.

    Are there:

    1. Any lightweight PDF libraries that can handle generating PDFs for thousands of records more efficiently?
    2. Any optimization techniques in WeasyPrint (or in general) to reduce resource usage and generate the PDF successfully?

    Continue reading...

Compartilhe esta Página