我试图将大约350MB的二进制数据存储到Peewee.blobfield,但它显示了MemoryError。我对较小的文件没有问题,例如250MB。如何存储350MB?
这就是我尝试存储数据的方式:
subproducts.create(cfg_id = config_id,
C = C,
mf = mf_data.getBuffer()
type(mf_data)为
这就是我的模型的样子:
类子产物(碱基模型):
cfg = peewee.foreignkeyfield(configmodel,rection_name ='cfg')
c = peewee.textfield()
mf = peewee.blobfield()
元类:
索引=((
(('cfg','c'),true),
)
当您使用32位Python时,问题发生在问题时,但是在64位Python的帮助下解决了问题。