Exploit.cz
  • 🍕 Recepty.eu
  • 🛠️ Lidl Tools
  • 👑 Curriculum vitae 👑
  • LinkedIn Profile
  • Github Profile

console

A collection of 1 post
How to deal with large Doctrine datasets - Symfony console command - OutOfMemoryError - PHP Fatal error:  Allowed memory size of * bytes exhausted
symfony

How to deal with large Doctrine datasets - Symfony console command - OutOfMemoryError - PHP Fatal error: Allowed memory size of * bytes exhausted

Imagine that you want to import your 5000+ items from database to ElasticSearch and you have restricted memory limits (e.g. 128MB). You will probably end up with PHP Fatal error:Allowed memory size of 134217728 bytes exhausted. What you have to do? You have to unconfigure logger, clear entity
Aug 10, 2020 — 1 min read
Exploit.cz © 2023
Powered by Ghost