Answer the question
In order to leave comments, you need to log in
How to do pagination in Nosql(Memcached) Yii2?
There is a yii2 project in which data is stored in nosql, namely in memcache, the listing is displayed like this:
1. First, absolutely all records from memcash are selected, if there are 100,000 records, then all are selected
using ArrayDataProvider and then we display pagination there, you can it is possible to make the correct fetch before ArrayDataProvider? to make the required number of samples, let's say 0-20, 20-40, etc., so that the site does not slow down and works quickly?
ps If you advise another way to store data, nosql is ready to listen, now I'm learning mongodb
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question