Java 在使用 idea时,list长度只有1000个;
数据库中查询可以看出 长度是 1013
使用的编辑器
控制台输出的sql语句
2021-06-09 10:37:00 INFO [http-nio-8080-EXEC-10][SqlExecutor.java:390] -
SELECT
CODESET_CODE AS "codesetCode",
ITEM_CODE AS "itemCode",
ITEM_CNAME AS "itemCname",
ITEM_ENAME AS "itemEname",
REMARK AS "remark",
ITEM_STATUS AS "itemStatus",
SORT_ID AS "sortId",
STATUS AS "status",
PROJECT_NAME AS "projectName",
SUB_CODESET_CODE AS "subCodesetCode",
REC_CREATOR AS "recCreator",
REC_CREATE_TIME AS "recCreateTime",
REC_REVISOR AS "recRevisor",
REC_REVISE_TIME AS "recReviseTime",
ARCHIVE_FLAG AS "archiveFlag"
FROM
TEDCM01
WHERE
1 = 1
AND CODESET_CODE = 'bgxm.lzcgct.tllx'
AND ITEM_CODE = '9'
AND PROJECT_NAME = 'JHY'
ORDER BY
CODESET_CODE ASC,
ITEM_CODE ASC
可以看出,sql查询的值,长度是1013,但是list确只有 1000个长度;和同事讨论过,有两个猜想:
一个是 内存限制(后来多次换其他表查询,list长度依然是1000条限制,排除内存限制);
一个是长度限制,但是list的长度不止1000条的限制。
后来推论出,是idea的限制,只能暂存1000条;但是在网上有没有找到这个论证;暂时记录下来,希望有大神能够指点一下!