K
K
Khurshed Abdujalil2017-04-06 07:33:33
Yii
Khurshed Abdujalil, 2017-04-06 07:33:33

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

1 answer(s)
A
Arman, 2017-04-06
@Arik

nosql - it's kind of different, do you just have a key-value store? To make it work faster, maybe you shouldn’t put everything under one key? So break 'key-page-1', 'key-page-2', 'key-page-N',

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question