diff --git a/CHANGELOG.md b/CHANGELOG.md index b91d1dcac52b8b1d4596570507fce17d75d77dce..c8b974ae5ae05b07da2e56de557e55f9b78c3645 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed ### -* The default behavior of the query FIND SomeName [...] (as well as COUNT and SELECT) is being made configurable and changes +* The default behavior of the query `FIND SomeName [...]` (as well as COUNT and SELECT) is being + made configurable and changes: * `FIND SomeName` will be interpreted as `FIND <FIND_QUERY_DEFAULT_ROLE> SomeName` from now on where `FIND_QUERY_DEFAULT_ROLE` is a newly introduced server property. @@ -21,7 +22,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 `FIND <FIND_QUERY_DEFAULT_ROLE>`. * Of course, administrators can choose to retain the old behavior by setting `FIND_QUERY_DEFAULT_ROLE=ENTITY`. -* CQL now treats `WITH` and `WITH A` equivalently. This is for [#192](https://gitlab.com/caosdb/caosdb-server/-/issues/192). +* CQL now treats `WITH` and `WITH A` equivalently. Issue: [#192](https://gitlab.com/caosdb/caosdb-server/-/issues/192) +* The InsertFilesInDir FlagJob now creates File entities without a name. The previous behavior + caused severe performance problems for very large numbers of files. Issue: [#197](https://gitlab.com/caosdb/caosdb-server/-/issues/197) ### Deprecated ### diff --git a/src/main/java/org/caosdb/server/jobs/core/InsertFilesInDir.java b/src/main/java/org/caosdb/server/jobs/core/InsertFilesInDir.java index 51c68cdc7857144002ae4d3f2280d5a6d6526052..d8bba14590e731593a4c72a9fe289ff684b18294 100644 --- a/src/main/java/org/caosdb/server/jobs/core/InsertFilesInDir.java +++ b/src/main/java/org/caosdb/server/jobs/core/InsertFilesInDir.java @@ -276,9 +276,9 @@ public class InsertFilesInDir extends FlagJob { */ private EntityInterface createInsertFileEntity(String name) { if (getTransaction() instanceof WriteTransactionInterface) { - return new InsertEntity(name, Role.File); + return new InsertEntity((String) null, Role.File); } - EntityInterface result = new RetrieveEntity(name); + EntityInterface result = new RetrieveEntity((String) null); result.setRole(Role.File); return result; }