A simple Django app to store N+1 Queries on django views.
Project description
=====
Repeat Queries
=====
Smart Queries is a django package which helps django developer to avoid the N+1 queries issue by recording it and keeping a track of it per request.
Detailed documentation is in the "docs" directory.
Quick start
-----------
1. Add "repeat_queries" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'repeat_queries',
]
2. Add 'repeat_queries.middleware.DuplicateQueryMiddleware', to your MIDDLEWARE settings like this :
MIDDLEWARE = [
...,
'repeat_queries.middleware.DuplicateQueryMiddleware',
]
2. Include the repeat_queries URLconf in your project urls.py like this::
path('repeat_queries/', include('repeat_queries.urls')),
3. Run `python manage.py migrate` to create the repeat_queries models.
4. Start the development server, Hit any endpoint/view and visit http://127.0.0.1:8000/admin/ to see your data.
Repeat Queries
=====
Smart Queries is a django package which helps django developer to avoid the N+1 queries issue by recording it and keeping a track of it per request.
Detailed documentation is in the "docs" directory.
Quick start
-----------
1. Add "repeat_queries" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'repeat_queries',
]
2. Add 'repeat_queries.middleware.DuplicateQueryMiddleware', to your MIDDLEWARE settings like this :
MIDDLEWARE = [
...,
'repeat_queries.middleware.DuplicateQueryMiddleware',
]
2. Include the repeat_queries URLconf in your project urls.py like this::
path('repeat_queries/', include('repeat_queries.urls')),
3. Run `python manage.py migrate` to create the repeat_queries models.
4. Start the development server, Hit any endpoint/view and visit http://127.0.0.1:8000/admin/ to see your data.
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
smart-queries-0.2.tar.gz
(9.9 kB
view details)
File details
Details for the file smart-queries-0.2.tar.gz.
File metadata
- Download URL: smart-queries-0.2.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b97197ef065a3e7a49e81b2a71c449a3356b1583e81f56149ac20fbd9f8ff457
|
|
| MD5 |
e59c91aa42ea92c4f08ea985e9480494
|
|
| BLAKE2b-256 |
b36b1272b4840697a81236f942cc46212f0e096d237bff1aa236160490af1686
|