RMySQL,获取错误 - RS-DBI 驱动程序警告:(获取行时出错)

RMySQL, fetch errors - RS-DBI driver warning: (error while fetching rows)(RMySQL,获取错误 - RS-DBI 驱动程序警告:(获取行时出错))
本文介绍了RMySQL,获取错误 - RS-DBI 驱动程序警告:(获取行时出错)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 RMySQL 从数据表中获取一些行(表很大,所以我不能在这里发布它,但基本上包含一堆数字......总共 10 列和大约 12,000 行).运行 fetch(con, n=-1) 时出现以下错误:RS-DBI 驱动警告:(获取行时出错) 并且服务器仅返回 1713 行.

I am using RMySQL to fetch some rows from a data table (the table is large so I cannot post it here but basically contains a bunch of numbers.. a total of 10 columns and about 12,000 rows). I get the following error when I run fetch(con, n=-1): RS-DBI driver warning: (error while fetching rows) and the server returns only 1713 rows.

如果我摆脱了一些正在获取的列,那么这似乎可以正常工作.有谁知道这可能与什么有关?我什至不知道从哪里开始调试.这可能是服务器端设置吗?我的 R 会话有足够的内存(20 gigs).

If I get rid of some of the columns being fetched then this seems to work fine. Does anyone know what this can be related to? I don't even know where to start debugging. Could this be a server-side setting? My R session has more than enough memory (20 gigs).

推荐答案

每一列是一个数字,还是一个数字列表?也就是每列有多少字节?

Is each column a number, or a list of numbers? That is, how many bytes are in each column?

我以前遇到过这个问题,当我遇到它时,这是因为我试图太快地提取太多数据.我发现在这些情况下,有时可以使用较小的 n 值进行多次调用.再说一次,我遇到问题的数据库中的行很大

I've run into this problem before, and when I've hit it, it was because I was trying to pull too much data too fast. I've found that in those cases, making multiple calls with smaller values of n can sometimes work. Then again, the rows in the databases I've had trouble with have been huge

这篇关于RMySQL,获取错误 - RS-DBI 驱动程序警告:(获取行时出错)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Execute complex raw SQL query in EF6(在EF6中执行复杂的原始SQL查询)
Hibernate reactive No Vert.x context active in aws rds(AWS RDS中的休眠反应性非Vert.x上下文处于活动状态)
Bulk insert with mysql2 and NodeJs throws 500(使用mysql2和NodeJS的大容量插入抛出500)
Flask + PyMySQL giving error no attribute #39;settimeout#39;(FlASK+PyMySQL给出错误,没有属性#39;setTimeout#39;)
auto_increment column for a group of rows?(一组行的AUTO_INCREMENT列?)
Sort by ID DESC(按ID代码排序)