Someone told me that if you want to understand any technology, then you definitely need to understand its past.
Every technology starts from near zero. Over time, it improves and gets better and better because developers and creators encounter problems, discover limitations, and try different approaches to solve them.
This gives us knowledge of what problems existed, how they were solved, and how the technology improved.
And the same improvements happened in databases.
Because...
It all started with storing data in files.
In the early days of computers, text files and JSON files were used to store data. It was simple, but it had limitations like searching, updating, relationships, and recovery.
Then we moved to hierarchical and network databases.
In DSA, you practice some questions related to trees, where you have parent-child relationships. Hierarchical databases have the same concept as trees. They have a parent, a child, and relationships between them.
And network databases use the same concepts as graphs and linked lists, where data is connected to each other. This allowed us to build more connections and complex relationships.
They also had limitations, so we improved them and moved on to databases called relational databases.
They had the ability to manage complex data, transactions for reliable queries, indexes, and a structured language for querying.
But as the internet and the web grew, applications needed to manage different kinds of data.
Especially social media applications, quick-commerce applications, and applications where data constantly changes.
To manage this type of application at a large scale, it requires many optional fields and complex queries to reliably store and retrieve data from relational databases.
And here, MongoDB became more useful for managing this type of data. Because it has a document and collection mechanism for storing data reliably. Documents don't force you to store data with similar fields; they allow you to add different fields in the same group of collections.
So, that is the evolution of databases. And what are your thoughts on this evolution?
Top comments (0)