Problem with external storage and descriptors #16695
Unanswered
djbodya
asked this question in
Q&A / Support
Replies: 1 comment 1 reply
-
I understand what was my mistake. Thats why if I retrive the raw data from file in a cycle and will not save, delete or destruct variable it will close all of this descriptors only when garbage colletor will work. Why pimcore does not close file right after reading the data? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using mounted network disk to store assets in out pimcore. We are using standart league/flysystem.
When I try to iterate over big amount of assets about 100k in one script it fails.
`foreach ($assetIds as $id) {
$asset = Asset::getById($id);
}
`
Script fails after some time on $asset->getData(). It happens because of not closed descriptors.
When I try to get data using fopen fread fclose - everyrhing woks fine.
Can you help me? How i must to clear data to close descriptors?
Beta Was this translation helpful? Give feedback.
All reactions