From bbcd98bbfd47fa8317bba71378911b120f265bd2 Mon Sep 17 00:00:00 2001 From: Garren Smith Date: Thu, 20 Mar 2014 09:46:59 +0200 Subject: Fauxton: Improved pagination This is a new version of pagination in Fauxton using skip. It uses a PagingCollection that has the main algorithm for pagination and exposes a nice api. This is an intermediate step as this is a much better pagination than we have at the moment. However using just skip for pagination is not optimal as there are two cases where skip pagination fails - For very large skips and for when documents that a user have paginated past have been deleted. The next step once this has landed will be to add in a startkey_docid pagination as well. The PagingCollection would then decided which method to use to paginate for an index. --- src/Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index e1007f962..07ee5e150 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -257,6 +257,7 @@ FAUXTON_FILES = \ fauxton/assets/js/libs/require.js \ fauxton/assets/js/libs/spin.min.js \ fauxton/assets/js/plugins/backbone.layoutmanager.js \ + fauxton/assets/js/plugins/cloudant.pagingcollection.js \ fauxton/assets/js/plugins/jquery.form.js \ fauxton/assets/js/plugins/prettify.js \ fauxton/assets/js/plugins/beautify.js\ -- cgit v1.2.1