django-batch-selectBatch select many-to-many and one-to-many fields (to help avoid n+1 query problem) | |
Download |
django-batch-select Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- John Montgomery
- Publisher web site:
- http://github.com/lilspikey/
django-batch-select Tags
django-batch-select Description
Batch select many-to-many and one-to-many fields (to help avoid n+1 query problem) django-batch-select was created to provide an equivalent to Django's select_related_ functionality. As of such it's another handy tool for avoiding the "n+1 query problem".select_related_ is handy for minimizing the number of queries that need to be made in certain situations. However it is only usual for pre-selecting ForeignKey_ relations.batch_select is handy for pre-selecting ManyToManyField_ relations and reverse ForeignKey_ relations.It works by performing a single extra SQL query after a QuerySet_ has been evaluated to stitch in the the extra fields asked for. This requires the addition of a custom Manager_, which in turn returns a custom QuerySet_ with extra methods attached. Requirements: · Python · Django
django-batch-select Related Software