You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the loop, I see that the values are static where $container->getObjectCount() shows the number of all objects in the unprefixed container, while count($container->objects) shows the number of all objects in the prefixed container.
The reason for the loop is because get() maximum returns 10000 objects per call, so for prefixes which have more than 10000 objects the call must be repeated with marker as last retrieved object.
My question is:
Is my understanding about the methods correct?
Is the above code correct? i.e. doing what I intend to do as explained above? If not, what's the correct one?
Regards,
Mario
The text was updated successfully, but these errors were encountered:
The following code is expected to return all objects under the given prefix as
$container->objects
However, the code runs indefinitely. And when I add:
in the loop, I see that the values are static where
$container->getObjectCount()
shows the number of all objects in the unprefixed container, whilecount($container->objects)
shows the number of all objects in the prefixed container.The reason for the loop is because
get()
maximum returns 10000 objects per call, so for prefixes which have more than 10000 objects the call must be repeated with marker as last retrieved object.My question is:
Regards,
Mario
The text was updated successfully, but these errors were encountered: