Skip to main content

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 "polls" to your INSTALLED_APPS setting like this::

INSTALLED_APPS = [
...
'repeat_queries',
]

2. Include the polls URLconf in your project urls.py like this::

path('repeat_queries/', include('repeat_queries.urls')),

3. Run `python manage.py migrate` to create the polls 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.1.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file smart-queries-0.1.tar.gz.

File metadata

  • Download URL: smart-queries-0.1.tar.gz
  • Upload date:
  • Size: 3.5 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

Hashes for smart-queries-0.1.tar.gz
Algorithm Hash digest
SHA256 f7fb207e7f95e425f8e9af72662a087fce3fa27bb782243ef12f6008da12a558
MD5 b67cfc9e24f941b24d03231ca120dd2e
BLAKE2b-256 272b0d3066eb5a954ae9c55b577098c3468a84315991697dee92e86c6058ffef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page