Changes between Version 1 and Version 2 of Ticket #17459, comment 1


Ignore:
Timestamp:
Feb 6, 2012, 1:29:10 PM (12 years ago)
Author:
Łukasz Rekucki

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17459, comment 1

    v1 v2  
    11After thinking about this for a while, I think it's not something Django should do implicitly.
    22
    3 First of all, because this results in some serious performance drawback that's hidden in a place you normally wouldn't expect it to be and it gives a false impression of Django supporting cross-database queries (which we don't).
     3First of all, because this results in some serious performance drawback that's hidden in a place you normally wouldn't expect it to be and it gives a false impression of Django supporting cross-database queries.
    44
    55Second, because it's not always the right thing to do. Taking the (naive) example of master-slave configuration from the docs, the fact that the router returns different slaves for Bar and Foo, shouldn't prevent Django from generating the subquery. As Django has no other way of knowing, which dbs contain which tables, we can't assume that the table is or isn't there.
Back to Top