spatie / sheets

Store & retrieve your static content in plain text files
https://spatie.be/open-source
MIT License
273 stars 21 forks source link

Use LazyCollection for FilesystemCollection::all() #49

Closed Gummibeer closed 3 years ago

Gummibeer commented 4 years ago

Depending on the collection size the all() method can "explode". If there's no need to have all at the same time in RAM but only running with an each() over all of them it would be better to have a LazyCollection. To prevent breaking changes and so on - how about a allLazy() or an argument all($lazy = false)?

spatie-bot commented 4 years ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.

spatie-bot commented 3 years ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.