开源之夏第三届火热来袭,高校学生参与赢万元奖金!>>>
select * from API_DATA where USER_ID = '20170221175511' and DATA_TYPE = 'ST.SWV' and CUSTOMER_ID = 1 and API_RESULT = 0 order by ORIG_ID desc limit 1;
上面是执行的sql。
直接在服务器执行的话,只需要
1 row selected (0.192 seconds)
用squirrel执行,则是
Query 1 of 1, Rows read: 1, Elapsed time (seconds) - Total: 0.326, SQL query: 0.239, Reading results: 0.087 耗时很接近
最后使用mybatis,则耗时最长:[ SELECT DB USE TIME: 772 ] 接近一秒
而且有个问题,不知道是哪一方缓存的影响,频繁请求情况下,第一次请求时间是最长的;而隔四五秒请求一次,则每次耗时基本超过一秒,甚至更长。
回答
求大神指点
mybatis+phoenix+hbase
怎么实现的????
大佬,这个问题解决了么,有思路么
发表评论