mirror of
https://github.com/sismics/docs.git
synced 2025-12-13 17:56:20 +00:00
#24: High performance is not going to happen on HSQLDB
This commit is contained in:
@@ -183,7 +183,7 @@ public class DocumentDao {
|
||||
Map<String, Object> parameterMap = new HashMap<String, Object>();
|
||||
List<String> criteriaList = new ArrayList<String>();
|
||||
|
||||
StringBuilder sb = new StringBuilder("select distinct d.DOC_ID_C c0, d.DOC_TITLE_C c1, d.DOC_DESCRIPTION_C c2, d.DOC_CREATEDATE_D c3, d.DOC_LANGUAGE_C c4, ");
|
||||
StringBuilder sb = new StringBuilder("select d.DOC_ID_C c0, d.DOC_TITLE_C c1, d.DOC_DESCRIPTION_C c2, d.DOC_CREATEDATE_D c3, d.DOC_LANGUAGE_C c4, ");
|
||||
sb.append(" (select count(s.SHA_ID_C) from T_SHARE s, T_ACL ac where ac.ACL_SOURCEID_C = d.DOC_ID_C and ac.ACL_TARGETID_C = s.SHA_ID_C and ac.ACL_DELETEDATE_D is null and s.SHA_DELETEDATE_D is null) c5, ");
|
||||
sb.append(" (select count(f.FIL_ID_C) from T_FILE f where f.FIL_DELETEDATE_D is null and f.FIL_IDDOC_C = d.DOC_ID_C) c6 ");
|
||||
sb.append(" from T_DOCUMENT d ");
|
||||
|
||||
@@ -104,10 +104,10 @@ public class DirectoryUtil {
|
||||
*/
|
||||
private static File getDataSubDirectory(String subdirectory) {
|
||||
File baseDataDir = getBaseDataDirectory();
|
||||
File faviconDirectory = new File(baseDataDir.getPath() + File.separator + subdirectory);
|
||||
if (!faviconDirectory.isDirectory()) {
|
||||
faviconDirectory.mkdirs();
|
||||
File directory = new File(baseDataDir.getPath() + File.separator + subdirectory);
|
||||
if (!directory.isDirectory()) {
|
||||
directory.mkdirs();
|
||||
}
|
||||
return faviconDirectory;
|
||||
return directory;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ public final class EMF {
|
||||
properties.load(is);
|
||||
return properties;
|
||||
}
|
||||
} catch (IOException e) {
|
||||
} catch (IOException | IllegalArgumentException e) {
|
||||
log.error("Error reading hibernate.properties", e);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user