M
M
melnikov_m2016-06-28 17:58:18
Yii
melnikov_m, 2016-06-28 17:58:18

What is the equivalent of CDataProviderIterator in Yii2 to work with large amount of data?

yii1 has a CDataProviderIterator for working with large amounts of data ( yiiframework.ru/doc/cookbook/ru/model.data.provide... ). Is there an analogue in yii2 (I can’t find something ..). If not, what is the right way to build a job so as not to create your own bike?
I came across this article ( https://orlov.io/ru/articles/rabota-s-bolshimi-oby... where the point is that the author proposes to process data in a cycle of 500 records at a time. But something It tells me there are better options.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vyachin, 2016-06-28
@melnikov_m

rmcreative.ru/blog/post/yii2-batch

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question