Changes between Initial Version and Version 1 of Ticket #24613, comment 7


Ignore:
Timestamp:
Apr 21, 2015, 9:22:13 AM (9 years ago)
Author:
andrei kulakov

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24613, comment 7

    initial v1  
    22> What does "queryset load time" mean? When the queryset is evaluated and the database query occurs, or something else?
    33
    4 I think it means when .only() or .defer() method is executed, there's two time points of interest: module load time, when you can define a module with a subset of fields, and queryset object creation time (or modification of existing queryset), when you provide the list of fields to defer. These are the only two times when you could provide this list of fields, so if you know the list at the module load time, it's preferred to define it as a model with a subset of fields, but if you don't know at module load time, then you don't have this option and you only have defer() and only() left to use.
     4I think it means when .only() or .defer() method is executed; -- there's two time points of interest: module load time, when you can define a module with a subset of fields, and queryset object creation time (or modification of existing queryset), when you provide the list of fields to defer. These are the only two times when you could provide this list of fields, so if you know the list at the module load time, it's preferred to define it as a model with a subset of fields, but if you don't know at module load time, then you don't have this option and you only have defer() and only() left to use.
Back to Top