Being a newbie programmer, most of the programs I've written never saved or loaded any of their data, and the few that did were saved by serializing the classes and saving it in raw text files or binary forms.
I am now in the process of learning Python with Django and I have a fundamental lack of understanding how things work behind the scenes. In all of the programs I've written, I know that if I have a class A
and the class holds a linked-list data member list
then the list exists in the memory (heap/stack).
Now assume I write a very large Django application and I have 10,000 instances of A
, where exactly are they saved? How do I control them? I guess holding a list of 10,000 instances isn't rational, but how do I manage what is being loaded to the memory of the application, and what is being accessed directly through the database?
I hope I'm clear, being a newbie I don't know the right definitions that describes that things I mean and makes it hard to communicate so please feel free to edit and correct me.