简体   繁体   English

在MonetDBLite中使用“ INSERT INTO test VALUES”加载大表

[英]Loading huge tables with `INSERT INTO test VALUES` in MonetDBLite

In my use case I'm generating data at runtime, and the cost of serializing such data into a CSV file and then loading to MonetDBLite using COPY will be potentially greater than using something like INSERT INTO tablename VALUES . 在我的用例中,我在运行时生成数据,将这些数据序列化为CSV文件然后使用COPY加载到MonetDBLite的开销可能比使用INSERT INTO tablename VALUES类的开销更大。 Given that MonetDBLite does not use DBConnections as in ODBC/iODBC, does that mean that I do not need to clear the memory using explicit COMMIT statements, or do I still need to run COMMIT after loading some GB of data into a table in order not to occupy all the available primary memory? 鉴于MonetDBLite不像在O​​DBC / iODBC中那样使用DBConnections,这是否意味着我不需要使用显式的COMMIT语句清除内存,或者在将某些GB的数据加载到表中后仍然需要运行COMMIT而不是占用所有可用的主内存? Thanks in advance. 提前致谢。

Which MonetDBLite are you using? 您正在使用哪个MonetDBLite? You can use from-memory appends for very fast data loading in this case I think. 我认为在这种情况下,您可以使用“从内存”追加来非常快速地加载数据。 For R/Python, we can directly append from data frames, for C the process is a little less convenient. 对于R / Python,我们可以直接从数据帧中追加数据;对于C,处理过程则较不方便。

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

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