The efficiency of the Content Library finder depends on whether you use absolute paths or wildcards, and the scale of your content library.
Absolute Path Search Logic
When searching for an exact path (no wildcards), the finder performs the following steps:
- Find library ID for library with name using server-side find API
- Get library with library ID
- Find item ID for item with name using server-side find API
- Get item with item ID
This requires more round-trips (e.g., 4 round-trips for Public/Photon2) but is much more efficient for systems with a large number of content library objects.
Wildcard Search Logic
When using wildcards, the finder performs the following steps:
- Get all of the libraries and filter the pattern on the client-side
- Get all of the items for the library and filter the pattern on the client-side
While this requires fewer round-trips (e.g., 2 round-trips for Public*/Photon2*), it involves dumping objects to the client, which is less efficient at scale.