D
D
driverx182019-11-13 17:48:35
PHP
driverx18, 2019-11-13 17:48:35

AWS S3 - How to make pagination by page?

I want to do pagination by "pages". When we access S3, pass the page parameter to the server, then select 10,000 lines of the corresponding page, provided that there are 10,000 elements per page.
I use this:

$s3client->getPaginator('ListObjects', $arguments)->search('Contents[].Key');

but that's not what you need. Is it possible to somehow make pagination the way I described? For example, pass offset + limit.
Or should pagination be done by transferring data to temporary storages, and then pagination should be done from these storages (for example, Mongo)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2019-11-13
@driverx18

This is not possible in native ways. Only if you store a list of objects in your database

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question