[Django] #10509: Better handling of database version-specific feature initialisation

View: New views
4 Messages — Rating Filter:   Alert me  

[Django] #10509: Better handling of database version-specific feature initialisation

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#10509: Better handling of database version-specific feature initialisation
------------------------------------------+---------------------------------
 Reporter:  mtredinnick                   |       Owner:  nobody    
   Status:  new                           |   Milestone:            
Component:  Database layer (models, ORM)  |     Version:  SVN      
 Keywords:                                |       Stage:  Unreviewed
Has_patch:  0                             |  
------------------------------------------+---------------------------------
 Right now, we have problems such as those mentioned in #10467 (comment 4).
 If a part of Django wants to use a particular feature that depends on the
 database version, it needs to first have talked to the database. This
 breaks in some edge-cases.

 Some alternative possibilities are

  1. understanding deferred-features, but that looks hard. For example,
 it's difficult to imagine how "return ID from insert" can work in that
 fashion without being really ugly code.
  2. requiring the settings file to include the version information so we
 don't have to make the wasteful `SELECT version();` (or equivalent) call
 for every database connection. It's essentially unchanging information.

 Anyway, that's a discussion for later (I'll start a thread on django-dev
 at some point). Opening the ticket to remind me to look at this.

--
Ticket URL: <http://code.djangoproject.com/ticket/10509>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django updates" group.
To post to this group, send email to django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #10509: Better handling of database version-specific feature initialisation

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#10509: Better handling of database version-specific feature initialisation
---------------------------------------------------+------------------------
          Reporter:  mtredinnick                   |         Owner:  nobody
            Status:  new                           |     Milestone:        
         Component:  Database layer (models, ORM)  |       Version:  SVN  
        Resolution:                                |      Keywords:        
             Stage:  Accepted                      |     Has_patch:  0    
        Needs_docs:  0                             |   Needs_tests:  0    
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Changes (by Alex):

  * needs_better_patch:  => 0
  * stage:  Unreviewed => Accepted
  * needs_tests:  => 0
  * needs_docs:  => 0

--
Ticket URL: <http://code.djangoproject.com/ticket/10509#comment:2>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django updates" group.
To post to this group, send email to django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #10509: Better handling of database version-specific feature initialisation

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#10509: Better handling of database version-specific feature initialisation
---------------------------------------------------+------------------------
          Reporter:  mtredinnick                   |         Owner:  nobody
            Status:  new                           |     Milestone:        
         Component:  Database layer (models, ORM)  |       Version:  SVN  
        Resolution:                                |      Keywords:        
             Stage:  Accepted                      |     Has_patch:  0    
        Needs_docs:  0                             |   Needs_tests:  0    
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Changes (by Richard Davies <richard.davies@...>):

 * cc: richard.davies@... (added)

--
Ticket URL: <http://code.djangoproject.com/ticket/10509#comment:3>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django updates" group.
To post to this group, send email to django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #10509: Better handling of database version-specific feature initialisation

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#10509: Better handling of database version-specific feature initialisation
---------------------------------------------------+------------------------
          Reporter:  mtredinnick                   |         Owner:  Xof
            Status:  assigned                      |     Milestone:    
         Component:  Database layer (models, ORM)  |       Version:  SVN
        Resolution:                                |      Keywords:    
             Stage:  Accepted                      |     Has_patch:  0  
        Needs_docs:  0                             |   Needs_tests:  0  
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Changes (by Xof):

  * owner:  nobody => Xof
  * status:  new => assigned

--
Ticket URL: <http://code.djangoproject.com/ticket/10509#comment:4>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django updates" group.
To post to this group, send email to django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---