|
版本: |
BeX5V3.5 |
小版本号: |
|
|
|
数据库: |
MySQL |
服务器操作系统: |
|
应用服务器: |
|
客户端操作系统: |
|
浏览器: |
|
|
|
使用的mysql数据库
使用的bizData加载数据
控制台打印出来的的ksql是:
2017-04-18 12:13:58 [SQL Time]sql 执行时间:6005ms, exec KSQL: SELECT RU_YSTradeSummery.* FROM RU_YSTradeSummery RU_YSTradeSummery LIMIT 0, 20
sql语句是(这条sql语句执行时间非常长):
--> sql:SELECT RU_YSTradeSummery.fID AS RU_YSTradeSummery, RU_YSTradeSummery.F1PSNTIME AS f1PsnTime, RU_YSTradeSummery.FACCOUNT AS fAccount, RU_YSTradeSummery.FCHENGJIAOBIANHAO AS fChengJiaoBianHao, RU_YSTradeSummery.FCHENGJIAOJIAGE AS fChengJiaoJiaGe, RU_YSTradeSummery.FCHENGJIAOLIUHAO AS fChengJiaoLiuHao, RU_YSTradeSummery.FCHENGJIAOTIME AS fChengJiaoTime, RU_YSTradeSummery.FCOSTCURRENCY AS fCostCurrency, RU_YSTradeSummery.FCOUNTSUM AS fCountSum, RU_YSTradeSummery.FCURRENCYTYPE AS fCurrencyType, RU_YSTradeSummery.FCUSTOMERCOST AS fCustomerCost, RU_YSTradeSummery.FHEYUEBIANHAO AS fHeYueBianHao, RU_YSTradeSummery.FJIESUANBIANHAO AS fJieSuanBianHao, RU_YSTradeSummery.FJIESUANRIQI AS fJieSuanRiQi, RU_YSTradeSummery.FKAIPING AS fKaiPing, RU_YSTradeSummery.FLASTCOST AS fLastCost, RU_YSTradeSummery.FLIUSHUIHAO AS fLiuShuiHao, RU_YSTradeSummery.FMAIMAI AS fMaiMai, RU_YSTradeSummery.FMARKET AS fMarket, RU_YSTradeSummery.FNETCOST AS fNetCost, RU_YSTradeSummery.FPRODUCT AS fProduct, RU_YSTradeSummery.FPRODUCTTYPE AS fProductType, RU_YSTradeSummery.FRIGHTMONEY AS fRightMoney, RU_YSTradeSummery.FSHOUGONGSHOUXUFEIBIAOZHI AS fSHouGongShouXuFeiBiaoZhi, RU_YSTradeSummery.FSETTLEGROUP AS fSettleGroup, RU_YSTradeSummery.FSHANGSHOUBIANHAO AS fShangShouBianHao, RU_YSTradeSummery.FSHANGSHOUCHENGJIAOLIUHAO AS fShangShouChengJiaoLiuHao, RU_YSTradeSummery.FSHANGSHOUCHENGJIAOTIME AS fShangShouchengJiaoTime, RU_YSTradeSummery.FTRADEMONEY AS fTradeMoney, RU_YSTradeSummery.FWEITUOHEYUEBIANHAO AS fWeiTuoHeYueBianHao, RU_YSTradeSummery.FWEITUOLAIYUAN AS fWeiTuoLaiYuan, RU_YSTradeSummery.FWEITUOLEIXING AS fWeiTuoLeiXing, RU_YSTradeSummery.FWEITUOPINGZHONGBIANHAO AS fWeiTuoPingZhongBianHao, RU_YSTradeSummery.FXITONGHAO AS fXiTongHao, RU_YSTradeSummery.VERSION AS version FROM RU_YSTradeSummery RU_YSTradeSummery
--> binds:[]
查询时间超级长,后来在这条sql语句后面加上 limit 0,20 后,执行只需要几十毫秒
我的问题是在mysql数据库链接中,ksql转sql语句后,为什么把limit搞丢了??????害得mysql去把所有的数据都查出来耗费不必要的时间
|
|