加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

xsql---Buffer too small for record data

发布时间:2020-12-12 13:13:59 所属栏目:MsSql教程 来源:网络整理
导读:?? The situation here is the inability of RSQL server to serializethe query’s response. The cause of the failure is that the size of the bufferRSQL uses for the serialization procedure is just not large enough to fit allthe data. In their
??

The situation here is the inability of RSQL server to serializethe query’s response. The cause of the failure is that the size of the bufferRSQL uses for the serialization procedure is just not large enough to fit allthe data. In their query,Fiberhome requires all instances ofclass?OltGlobalCfg. They have just one instance of this class (a kind ofsystem configuration structure) Analyzing the class we found that it’s huge.Moreover it has ?a complicated structure. The largestfield?onuApMacInfo is an array of structures. This structure of the classrequires even more buffer size,so RSQL failed to serialize the whole instanceof the class,but was able to return a partial request.?

?

To resolve this,our recommendation is to increase the buffersize. The size can be specified as one of SqlServer constructor parameters. Thedefault value is 64K,but we recommend specifying at least 256K. Here is theirRSQL initialization procedure (from db_common/src/sqlintf.cpp):

int start_sqlsvr(int isMst)

{

???????????????int iPort = SERVER_PORT + (isMst?0:1000);

???????????????

???????????????server = new SqlServer(&engine,iPort);

???????????????server->start();

???????????????return 0;

}

Please add another parameter to the constructor call,like thefollowing:

And,of course,re-build their application.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读