hi. I am using php and gridFS.
We want to upload more than 100.000 files from a folder. But mongodb stops, maybe because of memory??? I used a loop with storeFile() or put().
Is there a better way like bulk or stream to avoid this???
hi. I am using php and gridFS.
We want to upload more than 100.000 files from a folder. But mongodb stops, maybe because of memory??? I used a loop with storeFile() or put().
Is there a better way like bulk or stream to avoid this???
Welcome to the MongoDB community @Infos_and_Facts!
Please provide some more details:
php -v
) and the MongoDB PHP driver?A common error for long running web tasks is exceeding PHP’s max_execution_time
(30 seconds by default) or a timeout in the web server configuration. If you are logging or displaying errors in your PHP code, execution timeouts should result in a fatal error message similar to: “Fatal error: Maximum execution time of 30 seconds exceeded …”.
Regards,
Stennie