首页 > 解决方案 > 使用 marshmallow.fields 和性能转储用户数据

问题描述

我使用 schema.dump(data, many=True) 转储数据并使用 user_Schema 内的 marshmallo.fields 来序列化数据。

我看到性能很慢可能需要 10 秒才能转储 10k 记录。有没有办法可以提高性能。

标签: dumpmarshmallow

解决方案


推荐阅读