Hi All,

I have a table of over 100,000 rows which I need to compare with another 
list to find if the entry matching a rows is in there or not 

The following does not work

getdata = data.objects.all()


mydata= getdata.filter(mycriteria)




Process information and comparision from 'mydata'



.The code .should fetch all data and should no longer go to Database. , but 
it still seem to hit database
.
Whenever I am running code, I see that for each comparision , the Code is 
Hitting the database resulting in over thousands of queries and lot of 
delay in finishing Processing data. 

How can I force All Data to be stored in RAM so that its no longer needed 
to access database. ?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a120e643-936e-4f6a-9662-7811808fa8cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to