xsql---Buffer too small for record data
??
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. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- sqlserver换版本之后的操蛋事情备忘
- sql – 如何避免数据库中的读锁?
- SqlServer中decimal(numeric )、float 和 real 数据类型的区
- sql-server – 为什么在Fact表中将NULL值映射为0?
- 获取SqlServer数据库数据,转成JSON对象
- sql-server – 虽然Windows处于空闲状态,但KVM top在Window
- 数据库 – Hibernate saveOrUpdate vs update vs save / pe
- sql – rowversion / timestamp会显着影响性能吗?
- sql server判断数据库、表、列、视图是否存在
- MAC下修改mysql默认字符集为utf8的方法