Level 104
Since you are getting the entire 8MB in the Response, your only option is to write that data to a file on your side, and then read the file lazily to perform whatever operations you need on that data.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Is there any benefit to using Lazy Collection on 8mb dataset that is retuned at once from an external api and that I need to iterate over?
Please or to participate in this conversation.