FIXME to TODO.perf
This commit is contained in:
parent
21f25ed888
commit
1da3064700
@ -105,7 +105,7 @@ class HsManagedWebspaceBookingItemValidator extends HsBookingItemEntityValidator
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static Optional<HsHostingAssetRealEntity> fetchRelatedBookingItem(final HsBookingItem entity) {
|
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(
|
return HsEntityValidator.localEntityManager.get().createQuery(
|
||||||
"SELECT asset FROM HsHostingAssetRealEntity asset WHERE asset.bookingItem.uuid=:bookingItemUuid",
|
"SELECT asset FROM HsHostingAssetRealEntity asset WHERE asset.bookingItem.uuid=:bookingItemUuid",
|
||||||
HsHostingAssetRealEntity.class)
|
HsHostingAssetRealEntity.class)
|
||||||
|
Loading…
Reference in New Issue
Block a user