用olap4j通过xmla连ssas问题,请高手指教
dear all:
使用olap4j通过xmla连ssas,同一代码第一次查询耗时4秒,以后都是几十毫秒。
以下为初始化数据
connection = DriverManager.getConnection("jdbc:xmla:Server=http:///olap/msmdpump.dll;Catalog=AP_OLAP;");
olapConnection = connection.unwrap(OlapConnection.class);
System.out.println(olapConnection.getCatalog());
stmt = olapConnection.createStatement();
以下为循环调用执行查询
cellSet = stmt.executeOlapQuery(sql);//此处在首次执行时耗时比较长,以后会很快
请知道的烦请告诉下,是sql server的问题,xmla的问题,还是代码的问题。谢谢。