Use server-side cursors for QuerySet.values() and values_list()
    
    
    
      
      
      
        
Server side cursors are  only initialized for ModelIterable class. We should  do the same for other BaseIterable classes (ValuesIterable, ValuesListIterable and FlatValuesListIterable). (django-developers discussion
The idea is that you could then use QuerySet.values_list('id').iterator() and actually utilize server side cursors.
       
     
   
 
      
        
        
          Change History
          (7)
        
          
  
  
  
    
      | Owner: | changed from nobody to Dražen Odobašić | 
    
      | Status: | new → assigned | 
  
 
           
          
          
  
  
  
    
      | Description: | modified (diff) | 
    
      | Summary: | Use server side cursors for values and values_list → Use server-side cursors for QuerySet.values() and values_list() | 
    
      | Triage Stage: | Unreviewed → Accepted | 
    
      | Version: | master → 1.11 | 
  
 
           
          
  
  
  
    
      | Cc: | François Freitag added | 
  
 
           
          
  
  
  
    
      | Resolution: | → fixed | 
    
      | Status: | assigned → closed | 
  
 
           
          
          
          
         
       
     
        
    
    
PR