lenra-io / server

GNU Affero General Public License v3.0
6 stars 0 forks source link

[Task] Implement mongo pagination method #512

Closed jonas-martinez closed 6 months ago

jonas-martinez commented 7 months ago

What should be done

We should implement the pagination aggregator of mongo to make some apps that use a lot of data faster. https://www.mongodb.com/docs/atlas/atlas-search/tutorial/divide-results-tutorial/#std-label-pagination-skip-limit-tutorial

Technical recommandation

?

Ecological concerns

?

Is this task linked with any other ?

taorepoara commented 7 months ago

The first and simplest way to do that is by managing some Mongo find options (like we did with the projections) like sort, skip and limit.