FIXME to TODO.perf

This commit is contained in:
Michael Hoennig 2024-08-19 10:26:16 +02:00
parent 21f25ed888
commit 1da3064700

View File

@ -105,7 +105,7 @@ class HsManagedWebspaceBookingItemValidator extends HsBookingItemEntityValidator
}
private static Optional<HsHostingAssetRealEntity> fetchRelatedBookingItem(final HsBookingItem entity) {
// FIXME: cache the result
// TODO.perf: maybe we need to cache the result at least for a single valiationrun
return HsEntityValidator.localEntityManager.get().createQuery(
"SELECT asset FROM HsHostingAssetRealEntity asset WHERE asset.bookingItem.uuid=:bookingItemUuid",
HsHostingAssetRealEntity.class)