简体   繁体   English

是否可以将数据从Numpy数组直接复制到MonetDB?

[英]Is it possible to directly copy data from Numpy array to MonetDB?

Since Numpy arrays map to C arrays and MonetDB is using C arrays as its storage model , is it possible to load data from in-memory Numpy arrays into MonetDB? 由于Numpy数组映射到C数组,并且MonetDB使用C数组作为其存储模型 ,是否有可能将数据从内存中的Numpy数组加载到MonetDB中? This would save a round-trip to disk, ie writing the data from the Numpy array to disk and bulk loading it from disk into MonetDB. 这样可以节省往返磁盘的时间,即将数据从Numpy阵列写入磁盘,然后将其从磁盘批量加载到MonetDB。 I'm aware of embedded Python in MonetDB but I'd rather have embedded MonetDB in Python. 我知道MonetDB中嵌入式Python,但我宁愿将Python中有嵌入式MonetDB。

The official MonetDBLite for Python implementation supports this. 适用于Python的官方MonetDBLite支持此功能。 See the examples for inserting data. 请参阅示例以插入数据。 https://www.monetdb.org/blog/monetdblite-for-python https://www.monetdb.org/blog/monetdblite-for-python

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM