dump - 使用 marshmallow.fields 和性能转储用户数据
问题描述
我使用 schema.dump(data, many=True) 转储数据并使用 user_Schema 内的 marshmallo.fields 来序列化数据。
我看到性能很慢可能需要 10 秒才能转储 10k 记录。有没有办法可以提高性能。
解决方案
推荐阅读
- s4sdk - 如何在 VDM 中获取本地化字段的文本?
- linux - 如何在 EC2 实例(ubuntu)上安装 RabbitMQ?
- java - 在启动 Web 应用程序 Spring 时从数据库加载后初始化属性
- java - Maven 命令“mvn clean jetty:run”和其他 mvn 命令在 Eclipse 中不起作用
- c# - C# 在导入数据表时跳过 csv 列
- xamarin.forms - 当模型值改变时更新一个可观察的集合
- python - 计算/可视化 Tensorflow Keras Dense 模型层相对连接权重 wrt 输出类
- linux - 我无法克服的 yaml 烦人问题
- java - JFrame在打开时陷入了一些奇怪的内部死锁
- node.js - bash,nohup sh 文件启动节点并且节点在注销时挂起?