Skip to content

Commit

Permalink
IBX-8019: Added performance consideration notice to `LocationService:…
Browse files Browse the repository at this point in the history
…:loadLocationChildren` (#407)

For more details see https://issues.ibexa.co/browse/IBX-8019 and #407
  • Loading branch information
webhdx authored Jun 7, 2024
1 parent 98b7b50 commit c88c397
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eZ/Publish/API/Repository/LocationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ public function loadLocations(ContentInfo $contentInfo, ?Location $rootLocation
/**
* Loads children which are readable by the current user of a location object sorted by sortField and sortOrder.
*
* Use this method with caution. It performs heavy queries on the database.
* Consider using {@see \eZ\Publish\API\Repository\SearchService::findLocations()} with
* {@see \eZ\Publish\Core\QueryType\BuiltIn\ChildrenQueryType} as an alternative.
*
* @param \eZ\Publish\API\Repository\Values\Content\Location $location
* @param int $offset the start offset for paging
* @param int $limit the number of locations returned
Expand Down

0 comments on commit c88c397

Please sign in to comment.