datagovua / edrpou-api

API читання ЄДР
http://edr.data-gov-ua.org/
Other
16 stars 1 forks source link

Faster pagination #11

Open Vanuan opened 8 years ago

Vanuan commented 8 years ago

http://www.postgresql.org/docs/8.3/static/queries-limit.html

The rows skipped by an OFFSET clause still have to be computed inside the server; therefore a large OFFSET might be inefficient.

http://chrisdone.com/posts/postgresql-pagination http://blog.clearbit.com/postgres-offsets/ http://stackoverflow.com/questions/31886150/postgresql-pagination http://stackoverflow.com/questions/6618366/improving-offset-performance-in-postgresql