Datasource datasource = workspace.getDatasources().open(dsInfo);
和
DatasourceConnectionInfo dsInfo = DataSouceConnInfoUtil.ByMySDE(bsmPath); Datasource datasource=new Datasource(dsInfo.getEngineType());
哪种更好,或者说哪个性能更好,在经常访问数据源的情况下?