我正在开发一个颤振应用程序,我使用标准的SQLite数据库存储来自传感器的信息。我得到了错误:
E/SQLiteQuery(11895): exception: Row too big to fit into CursorWindow requiredPos=0, totalRows=3; query: SELECT sessionId, deviceId, startDate, endDate, ... , timestamp FROM sessions
E/flutter (11895): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: DatabaseException(Row too big to fit into CursorWindow requiredPos=0, totalRows=3) sql 'SELECT sessionId, deviceId, startDate, endDate, ..., timestamp FROM sessions'}当我试图读取保存在具有大内容的表“会话”中的数据时。
5传感器,每100毫秒一次,每100毫秒一次,每次30分钟,但> 30 000数值数据(最高可达10 to )。
如何避免这种“大到大”的错误?
发布于 2022-02-05 03:54:14
错误消息Row too big to fit into CursorWindow requiredPos=0, totalRows=3; query: SELECT sessionId, deviceId, startDate, endDate, ... , timestamp FROM sessions指出您试图在CursorWindow上安装行。上次我记得CursorWindow (缓冲区)有2Mb可用。
避免此问题的一种方法是减少查询中使用的列。您还可能希望跟踪要提取的存储数据,以避免超过CursorWindow限制。
https://stackoverflow.com/questions/58309592
复制相似问题