{"categories":[{"label":"Front-Ends","url":"https://skillfed.io/packages/category/database-front-ends/2"}],"enrichment":{"capability":"Automatically optimizes GraphQL queries executed by graphene-django using Django QuerySet methods like select_related, prefetch_related, and only to reduce database round-trips.","skillfed_tags":["graphql","orm-optimization","django"],"use_cases":["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."],"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.\n\nThe 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.","worth_installing":"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\u2014last release was 2023-08-05\u2014so compatibility with newer Django or graphene versions is unverified. Evaluate whether your stack's versions align with the classifiers before committing."},"id":"graphene-django-optimizer","links":{"html":"https://skillfed.io/packages/graphene-django-optimizer","md":"https://skillfed.io/packages/graphene-django-optimizer.md","pypi":"https://pypi.org/project/graphene-django-optimizer/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-08-05","license_spdx":null,"license_treatment":"permissive","name":"graphene-django-optimizer","python_support":"unspecified","summary":"Optimize database access inside graphene queries."},"popularity":{"monthly_downloads":143472,"position":11176,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.10.0"}
