$npx skillfedfor your agent

graphene-django-optimizer

Optimize database access inside graphene queries.

With conditionsPyPI Front-EndsReleased Aug 2023143.5K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — graphene_django_optimizer-0.10.0-py2.py3-none-any.whl
v0.10.0 · released 2023-08-05

Yes, if you are actively using graphene-django with Django 2.2 or 3.1 and Python 3.6, 3.7, or 3.8. The package solves a real performance problem (N+1 queries) with minimal friction. However, be aware that maintenance is dormant—last release was 2023-08-05—so compatibility with newer Django or graphene versions is unverified. Evaluate whether your stack's versions align with the classifiers before committing.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires graphene-django to be installed and a Django project with ORM models; version 0.10.0 targets Graphene V3 (use version 0.8 for Graphene V2).
  • Low friction installation with no runtime dependencies.
  • Maintenance is dormant—last release was 2023-08-05, over a year ago, though the repository remains active with 437 stars and not archived.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted commercial and private use, modification, and distribution with minimal obligations beyond attribution.

last release 2023-08-05 (1105 days) · last repo commit 2024-03-20 · 437 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 143,472 downloads/mo, #11,176 on PyPI

Verify before relying

pip install graphene-django-optimizer

import graphene_django_optimizer as gql_optimizer

class Query(graphene.ObjectType):
    all_items = graphene.List(ItemType)
    def resolve_all_items(root, info):
        return gql_optimizer.query(Item.objects.all(), info)
  • Whether the package is compatible with current versions of graphene-django and Django beyond those listed in classifiers
  • Whether dormant maintenance status indicates the package is stable or at risk of incompatibility with future Django/graphene releases
  • Whether version 0.10.0 works with Graphene V3 as intended or if compatibility issues exist
Same gist for agents: .md · .json

What it is and what it does

graphene-django-optimizer wraps Django QuerySet queries to automatically apply select_related, prefetch_related, and only optimizations based on the GraphQL query structure. It inspects the incoming GraphQL request and modifies the underlying database query to fetch only the fields and relationships actually requested, eliminating N+1 query problems that commonly plague GraphQL-to-ORM integrations.

The package integrates directly into graphene-django resolvers via a gql_optimizer.query() wrapper and provides decorators for custom resolvers that need explicit optimization hints. It supports both simple auto-optimized fields and advanced cases where resolvers use filtering or custom logic, allowing developers to declare which relationships and fields should be prefetched or selected.

Use it for

  • Reduce database queries when fetching nested relationships in GraphQL queries with select_related and prefetch_related.
  • Optimize single-node queries using OptimizedDjangoObjectType to automatically apply select_related and only to individual object resolvers.
  • Handle filtered prefetch scenarios where a resolver argument determines which related objects to load.
  • Prevent N+1 query problems in production GraphQL APIs backed by Django ORM without manual queryset tuning per resolver.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are actively using graphene-django with Django 2.2 or 3.1 and Python 3.6, 3.7, or 3.8.

The package solves a real performance problem (N+1 queries) with minimal friction. However, be aware that maintenance is dormant—last release was 2023-08-05—so compatibility with newer Django or graphene versions is unverified. Evaluate whether your stack's versions align with the classifiers before committing.

Install

graphene-django-optimizer on PyPI

Before you install

Low friction installation with no runtime dependencies. Maintenance is dormant—last release was 2023-08-05, over a year ago, though the repository remains active with 437 stars and not archived.

Requires graphene-django to be installed and a Django project with ORM models; version 0.10.0 targets Graphene V3 (use version 0.8 for Graphene V2).

License in practice

MIT license permits unrestricted commercial and private use, modification, and distribution with minimal obligations beyond attribution.

Quickstart

pip install graphene-django-optimizer

import graphene_django_optimizer as gql_optimizer

class Query(graphene.ObjectType):
    all_items = graphene.List(ItemType)
    def resolve_all_items(root, info):
        return gql_optimizer.query(Item.objects.all(), info)

Verify before relying

  • Whether the package is compatible with current versions of graphene-django and Django beyond those listed in classifiers
  • Whether dormant maintenance status indicates the package is stable or at risk of incompatibility with future Django/graphene releases
  • Whether version 0.10.0 works with Graphene V3 as intended or if compatibility issues exist

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceDormant 1,105 days since the last release
Last repo commit
First released
Downloads143,472 / month, #11,176 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaEnvironment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 2.2Framework :: Django :: 3.1Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8

Evidence: graphene_django_optimizer-0.10.0-py2.py3-none-any.whl

Tags

Capabilities
graphql query optimization djangographene-django performancereduce n+1 queries graphqldjango select_related prefetch_relatedgraphene query optimizerdjango graphql database optimization
Topics
graphqlorm-optimizationdjango
PyPI keywords
graphenedjangooptimizeroptimizegraphqlqueryprefetchselectrelated

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “graphql query optimization django”

Give your agent the search over MCP, or paste the wish link into any chat.

More Front-Ends packages

SQLAlchemy Worth it
PyPI · Front-Ends · released Aug 2026

SQLAlchemy is a Python SQL toolkit and Object Relational Mapper (ORM) that provides both a high-level ORM layer for declarative object persistence and a Core SQL construction system for direct database abstraction and query building.

permissive licensepure Python · 3.7+
422.7Mdownloads / mo
psycopg2-binary Worth it
PyPI · Software Development · released Apr 2026

psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.

copyleftcompiled wheel · 3.9+
271.6Mdownloads / mo
alembic Worth it
PyPI · Front-Ends · released Aug 2026

Alembic generates and manages database schema migrations for SQLAlchemy applications, handling version control of database structure changes with support for upgrades, downgrades, and auto-generation from model changes.

Install it if you use SQLAlchemy and need to version-control schema changes; skip it only if you manage migrations manually or use a different ORM entirely.

MITpure Python · 3.10+
215.2Mdownloads / mo
weaviate-client Worth it
PyPI · Front-Ends · released Aug 2026

A Python client library for connecting to and querying Weaviate, a vector database that enables semantic search and AI-powered data retrieval.

permissive licensepure Python · 3.10+
213.2Mdownloads / mo
databricks-sql-connector Worth it
PyPI · Front-Ends · released Jul 2026

A Python client library that connects to Databricks clusters and SQL warehouses using a Thrift-based protocol, conforming to the Python DB API 2.0 specification and supporting Arrow-based data exchange.

Install it if you need to query Databricks clusters or SQL warehouses from Python.

Apache-2.0pure Python
119.5Mdownloads / mo
psycopg Worth it
PyPI · Software Development · released May 2026

Psycopg 3 is a PostgreSQL database adapter for Python that enables applications to connect to, query, and manage PostgreSQL databases using Python code.

Install it if you need to connect Python to PostgreSQL.

LGPL-3.0-onlypure Python · 3.10+
117.0Mdownloads / mo

See also graphene-django · graphene · graphene-sqlalchemy · django-chunkator · strawberry-graphql-django · graphene-file-upload · django-query-builder · graphql-core-promise · gql · django-cursor-pagination