Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
django-fast-paginator
Advanced tools
Simple speedy pagination over your large database tables.
Simple Integration
FastPaginator API is compatible with Django's built-in pagination library. Only change your import statements then you're ready.
Better SQL Queries
Django's built-in pagination system builds SQL queries that have offset and limit clauses. FastPagination does not use them.
Built-in Cache System
FastPaginator has a built-in cache system. It does not cache QuerySets but caches primary keys of object lists. This provides speedup for pagination progress.
INSTALLED_APPS = [
...
'fast_pagination'
]
from fast_pagination.helpers import FastPaginator
./manage.py test fast_pagination.tests
This benchmark is executed on Postgres9.6 with a table that has 1000000 rows, and fetched only one field. Results can be seen below.
Paginator | Min | Max | Mean | StdDev | Median |
---|---|---|---|---|---|
Django | 93.5535 (1.53) | 95.7217 (1.54) | 94.7340 (1.53) | 0.9755 (2.32) | 94.9046 (1.54) |
FastPaginator | 61.1488 (1.0) | 62.3316 (1.0) | 61.7489 (1.0) | 0.4205 (1.0) | 61.7649 (1.0) |
You can also run benchmark tests following instructions:
./manage.py migrate
./manage.py generate_users 1000000
pytest fast_pagination/tests.py
FAQs
A Django app to paginate querysets faster.
We found that django-fast-paginator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.