Skip to main content

select_related and prefetch_related

Project description

django-relations

Installation

# with pip

pip install django-relations

# with pipenv

pipenv install django-relations

Using

from django_relations import AbstractDefaultClass

class MyModel(AbstractDefaultClass):
    field1 = models.OneToOneField(Model1, ...)
    field2 = models.ForeignKey(Model2, ...)
    field3 = models.ManyToManyField(Model3, ...)

Description

Boost your Django app's speed with the all-new django-relations package. Say goodbye to manual query optimization – this package automatically detects relation fields and seamlessly integrates them into select_related and prefetch_related methods. 🚀 Supercharge response times, enhance UX, and free up your creative genius. Embrace efficiency and let django-relations handle the heavy lifting. Your queries, elevated.

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

django-relations-0.2.1.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file django-relations-0.2.1.tar.gz.

File metadata

  • Download URL: django-relations-0.2.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for django-relations-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cb487d53514babc4046e0ca7bea230e1eec602c409ded22451c10ebb163ed04b
MD5 07e6280d83f180c219e88d9d80aaca9b
BLAKE2b-256 5e1aab8cc8d13354ddd088891ad8ba8cbd8fc6a14a54978831750221981028dd

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