{ "info": { "author": "Praekelt Consulting", "author_email": "dev@praekelt.com", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "Django Fast Generic Foreign Keys\n================================\n\n.. figure:: https://travis-ci.org/praekelt/django-fast-gfk.svg?branch=develop\n :align: center\n :alt: Travis\n\n Travis\n\nOverview\n--------------\n\nGeneric foreign keys are incredibly powerful but can't be prefetched, leading\nto a large number of SQL queries when accessing a generic foreign key field\nwhile iterating over a queryset. This app provides a function that reduces the\nnumber of SQL queries to ``1 + (number of content types included in the set of\ngeneric foreign keys)``.\n\nInstallation\n------------\n\n1. Install or add ``django-fast-gfk`` to your Python path.\n\nUsage\n-----\n\nThe ``fetch`` function returns a generator with the generic foreign key prefetched. Parameter\n``field`` is the name of the generic foreign key.::\n\n from fast_gfk import fetch\n\n fetch(Bar.objects.all(), field=\"target\"))\n\nAuthors\n=======\n\n* Hedley Roos\n\nChangelog\n=========\n\n0.1\n---\n#. Initial release.\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/praekelt/django-fast-gfk", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-fast-gfk", "package_url": "https://pypi.org/project/django-fast-gfk/", "platform": "", "project_url": "https://pypi.org/project/django-fast-gfk/", "project_urls": { "Homepage": "http://github.com/praekelt/django-fast-gfk" }, "release_url": "https://pypi.org/project/django-fast-gfk/0.1/", "requires_dist": null, "requires_python": "", "summary": "Do Django generic foreign key lookups in one query", "version": "0.1" }, "last_serial": 4711138, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "4bd36bd6b792fb66ba32627dcc23ecbc", "sha256": "fec7f550170c8923fa1a779ddfa3fbe1b058a9dce066bc0d668fabdc21902ff3" }, "downloads": -1, "filename": "django_fast_gfk-0.1-py2.7.egg", "has_sig": false, "md5_digest": "4bd36bd6b792fb66ba32627dcc23ecbc", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 9338, "upload_time": "2017-07-19T08:48:27", "url": "https://files.pythonhosted.org/packages/c0/03/8fd103706b416981e3db0e1f5e2c551572897bdc933726bc471203fe21f3/django_fast_gfk-0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "525b037ab660c7c7012c42bc0df0f3f5", "sha256": "02bb720890527738d4f97950f8cd5196d8bc6e2fb3b7a99bf80e039998bba3a0" }, "downloads": -1, "filename": "django-fast-gfk-0.1.tar.gz", "has_sig": false, "md5_digest": "525b037ab660c7c7012c42bc0df0f3f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4809, "upload_time": "2017-07-19T08:48:23", "url": "https://files.pythonhosted.org/packages/1c/50/4d26a1b876010ffef95396aa2a67dc26d7a0add895f06769c84f3c057c7a/django-fast-gfk-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4bd36bd6b792fb66ba32627dcc23ecbc", "sha256": "fec7f550170c8923fa1a779ddfa3fbe1b058a9dce066bc0d668fabdc21902ff3" }, "downloads": -1, "filename": "django_fast_gfk-0.1-py2.7.egg", "has_sig": false, "md5_digest": "4bd36bd6b792fb66ba32627dcc23ecbc", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 9338, "upload_time": "2017-07-19T08:48:27", "url": "https://files.pythonhosted.org/packages/c0/03/8fd103706b416981e3db0e1f5e2c551572897bdc933726bc471203fe21f3/django_fast_gfk-0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "525b037ab660c7c7012c42bc0df0f3f5", "sha256": "02bb720890527738d4f97950f8cd5196d8bc6e2fb3b7a99bf80e039998bba3a0" }, "downloads": -1, "filename": "django-fast-gfk-0.1.tar.gz", "has_sig": false, "md5_digest": "525b037ab660c7c7012c42bc0df0f3f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4809, "upload_time": "2017-07-19T08:48:23", "url": "https://files.pythonhosted.org/packages/1c/50/4d26a1b876010ffef95396aa2a67dc26d7a0add895f06769c84f3c057c7a/django-fast-gfk-0.1.tar.gz" } ] }