summaryrefslogtreecommitdiff
path: root/django/db/models/sql
AgeCommit message (Collapse)Author
2017-08-15Avoided creation of temporary set in Query.append_annotation_mask().Sergey Fedoseev
2017-08-11Simplified calculation of used joins in Query.build_filter().Sergey Fedoseev
2017-08-11Removed outdated comment in Query.build_filter().Sergey Fedoseev
2017-08-08Refs #28459 -- Improved performance of sql.compiler.cursor_iter().Sergey Fedoseev
2017-08-07Refs #28459 -- Improved performance of SQLCompiler.results_iter().Sergey Fedoseev
2017-08-01Fixed #28454 -- Simplifed use of Query.setup_joins() by returning a named tuple.Matthew Wilkes
2017-08-01Refs #28370 -- Moved db converters deprecation warning to improve performance.Sergey Fedoseev
2017-07-31Fixed #27985 -- Fixed query for __exact=value when get_prep_value() converts ↵Sergey Fedoseev
value to None. Also fixed crash of .filter(field__transform=None).
2017-07-31Refs #20880 -- Removed non-cloning logic from Query.clone().Anssi Kääriäinen
2017-07-31Fixed #28453 -- Made __exact=None lookup use transforms.Sergey Fedoseev
2017-07-31Avoided creating temporary lists for obtaining the first item.Sergey Fedoseev
2017-07-29Avoided creation of temporary sets.Sergey Fedoseev
2017-07-20Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and ↵Tim Graham
Expression.convert_value(). Unused since a0d166306fbdc41f49e6fadf4ec84b17eb147daa.
2017-07-15Fixed #28399 -- Fixed QuerySet.count() for union(), difference(), and ↵Florian Apolloner
intersection() queries.
2017-07-10Fixed #28378 -- Fixed union() and difference() when combining with a ↵Mariusz Felisiak
queryset raising EmptyResultSet. Thanks Jon Dufresne for the report. Thanks Tim Graham and Simon Charette for the reviews.
2017-07-08Removed useless hasattr in UpdateQuery._setup_query().Tim Graham
The if statement always evaluates to True.
2017-07-07Removed unused Query.clone() memo kwarg.Tim Graham
Unused since 23ca3a01940c63942885df4709712cebf4df79ec.
2017-06-29Fixed #28010 -- Added FOR UPDATE OF support to QuerySet.select_for_update().Ran Benita
2017-06-29Removed obsolete Query.tables attribute.Anssi Kääriäinen
Obsolete since Query.alias_map became an OrderedDict (refs #26522).
2017-06-13Refs #23853 -- Updated sql.query.Query.join() docstring.Tim Graham
Follow up to ab89414f40db1598364a7fe4cfac1766cacd2668.
2017-06-13Fixed #28293 -- Fixed union(), intersection(), and difference() when ↵Mariusz Felisiak
combining with an EmptyQuerySet. Thanks Jon Dufresne for the report and Tim Graham for the review.
2017-06-08Removed unused sql.Query.query_termsClaude Paroz
Unused since 5008a4db440c8f7d108a6979b959025ffb5789ba.
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2017-06-01Fixed #27639 -- Added chunk_size parameter to QuerySet.iterator().François Freitag
2017-05-27Fixed #28249 -- Removed unnecessary dict.keys() calls.Jon Dufresne
iter(dict) is equivalent to iter(dict.keys()).
2017-05-11Fixed #24254 -- Fixed queries using the __in lookup with querysets using ↵Simon Charette
distinct() and order_by(). Thanks Tim for the review.
2017-05-11Fixed #28107 -- Disabled grouping of selected primary keys for unmanaged models.Simon Charette
The grouping caused an issue with database views as PostgreSQL's query planer isn't smart enough to introspect primary keys through views. Django doesn't support database views but documents that unmanaged models should be used to query them. Thanks powderflask for the detailed report and investigation.
2017-05-01Refs #16187 -- Stopped compiling query compilers during lookup rhs processing.Simon Charette
Lookup right hand side processing was compiling query compilers which happened to work by chance as SQLCompiler defines a as_sql() method with two optional parameters albeit it doesn't expect the same type of arguments.
2017-04-28Reverted "Refs #20939 -- Moved subquery ordering clearing optimization to ↵Simon Charette
the __in lookup." This reverts commit e62ea0bb9cbb54c1eef848871fe3eab2bad268dc since it broke multi-column __in lookups and _meta.order_wrt on Oracle.
2017-04-27Refs #20939 -- Moved subquery ordering clearing optimization to the __in lookup.Simon Charette
Queries could potentially be resolved in cases where ordering matter.
2017-04-27Replaced set |= operator with update() to avoid temporary set.Jon Dufresne
2017-04-25Refs #20939 -- Removed the Query._prepare_as_filter_value() hack.Simon Charette
2017-04-25Refs #20939 -- Removed the Query._forced_pk hack.Simon Charette
2017-04-23Fixed #28101 -- Fixed a regression with nested __in subquery lookups and ↵Simon Charette
to_field. Thanks Kristian Klette for the report and Tim for the help.
2017-04-10Fixed #26788 -- Fixed QuerySet.update() crash when updating a geometry to ↵Sergey Fedoseev
another one.
2017-04-10Used NotSupportedError instead of DatabaseError in SQLCompiler.as_sql().Mariusz Felisiak
2017-04-07Fixed #23147 -- Disabled a limit/offset on a query with select_for_update on ↵Mariusz Felisiak
Oracle. Thanks Shai Berger and Tim Graham for the reviews.
2017-03-29Fixed #25414 -- Fixed QuerySet.annotate() with pk in values() on MySQL.Mariusz Felisiak
Thanks Tim Graham and Simon Charette for the reviews.
2017-03-18Removed unused connector parameter of Query.build_filter().Mads Jensen
Unused since 6fe2b001dba45134d7c10729c57959995e241a88.
2017-03-18Removed unused rest_of_lookups parameter of Query.try_transform().Mads Jensen
Unused since 534aaf56f4a8e261e111426b2a709e2f8816192f.
2017-03-08Refs #27624 -- Made many attributes of Query immutable.Adam Johnson
2017-03-06Fixed #26522 -- Fixed a nondeterministic AssertionError in QuerySet combining.Bo Marchman
Thanks Andrew Brown for the test case.
2017-02-28Refs #27656 -- Updated django.db docstring verbs according to PEP 257.Anton Samarchyan
2017-02-09Fixed #26551 -- Fixed negated Q() queries that span relations.François Freitag
Prevented queries from reusing trimmed joins.
2017-01-31Fixed #27800 -- Fixed QuerySet.annotate(Length(...)).distinct() crash.Lex Berezhny
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-25Removed unused variables that are overwritten.Mads Jensen
2017-01-21Refs #23919 -- Removed misc references to Python 2.Tim Graham
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.