Get startedGet started for free

Data storage and retrieval

1. Data storage and retrieval

In the previous lesson, you learned about many sources of data. Now, let's discuss efficient ways of storing the data that your organization might collect.

2. Parallel storage solutions

Your business probably generates far more data than could even be stored on a single computer. In order to make sure that all data is saved and easy to access, you’ll want to store it across many different computers. Your company might have your own set of storage computers, called a “cluster” or a “server”, on premises.

3. The cloud

Alternatively, your company might pay another company to store data for you. This is referred to as “cloud storage”. Common cloud storage providers include Microsoft Azure, Amazon Web Services, or AWS, and Google Cloud. These services provide more than just data storage; they can also help your organization with data analytics, machine learning, and deep learning. For now, we’ll just focus on data storage.

4. Types of data storage

Different types of data require different storage solutions. Some data is unstructured, like email, text, video and audio files, web pages, and social media messages. This type of data is often stored in a type of database called a Document Database.

5. Types of data storage

More commonly, data can be expressed as tables of information, like what you might find in a spreadsheet. A database that stores information in tables is called a Relational Database. Both of these types of databases can be found on the cloud storage providers that were mentioned earlier.

6. Data querying

Once data has been stored in a Document Database or a Relational Database, we’ll need to access it. At a basic level, we’ll want to be able to request a specific piece of data, such as “All of the images that were created on March 3rd” or “All of the customer addresses in Montana”. In addition, we might even want to do some analysis, such as summing, counting, or averaging data.

7. Data querying

Each type of database has its own query language; Document Databases mainly use NoSQL, while Relational Databases mainly use SQL. SQL stands for “Structured Query Language” and NoSQL stands for “Not only SQL”.

8. Putting it all together: Location

Storing your company’s data is like building a library. First, you need to decide where to build your library. That corresponds to choosing a cloud: either an on-premises cluster or one of the providers we discussed before: Azure, AWS, or Google Cloud.

9. Putting it all together: Data type

Next, you need to decide what types of shelves to install to store your books. The types of shelves will depend on the types of books.

10. Putting it all together: Data type

This is analogous to choosing between a Document Database for unstructured data or a Relational Database for tabular data. Just like a library might have multiple types of shelves, you might need to have some data stored in a Document Database and other data stored in a Relational Database.

11. Putting it all together: Queries

Finally, you’ll need a system for referencing and checking out books. The way you locate and retrieve each book depends on how that book is stored.

12. Putting it all together: Queries

Similarly, you need a query language to speak to the database. For Document Databases, we generally use NoSQL, and for Relational Databases, we generally use SQL.

13. Let's practice!

Now that you understand different ways of storing data, let’s practice!