A Django app to paginate querysets faster.
Project description
Fast Paginator for Django
Fast Paginator is a simple Django app to paginate Django Querysets. Core Django Paginator uses LIMIT and OFFSET when creating queries to execute. This application is not using LIMIT and OFFSET, so it gets faster results. If you have millions of entries in a table, then Django will make you wait a lot longer than this app!
Quick Start
- Add "fast_pagination" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...
'fast_pagination'
]
- In Django settings, you can set FAST_PAGINATION_TIMEOUT variable to invalidate cache. Default value is 1 hour.
- Import FastPaginator like this:
from fast_pagination.helpers import FastPaginator
- Then, you are ready. All you have to do is give your queryset and number of entries when creating FastPaginator object.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-fast-paginator-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cedaef6d504bc51669d2a2d17f1b7f9a2af1338f20211dc4b57c1b27b6e33851 |
|
MD5 | 3af47495f4bd66751e65d5192f837169 |
|
BLAKE2b-256 | 235f34e75a0ba35fd3c7858e7dde4eaa23247688232cc47fdae6057112e420ab |