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. ?