Data
This section covers the different ways you work with data in Bubble
This section takes a long-form look at how Bubble manages different types of data. To see the concise, technical description of data sources, operators, comparisons, search and privacy, you can check out our more concise core reference entry on data.
Introduction
Working with data is the cornerstone of any application. In fact, it's such a central part of app development that it's hard to imagine an app that doesn't rely on it in some way. Whether it's data generated by users, owned by you or imported from other apps and services, the ability to collect, store, and visualize information is why most applications exist in the first place.
Think about it: a ride sharing app needs information about drivers, customers, locations and many other details to complete a transaction. A social media app needs user information, photos and user-generated content and a newspaper needs articles and images: they all collect, store and display their data in different ways, but in principle they all work in the same way.
The ability to work with data is what allows apps to do what they do best: provide value to users.
Not only do most apps by their most basic definition work with data, but they mostly all do it in the same way: by storing the data in a database.
In this section, we'll cover many topics related to data in Bubble:
How to manage the data in your database
Managing files uploaded by your and your users
Working with static data
Working with temporary data and variables
Managing users and letting them sign up for an account in your app
What is a database?
The database is like the unsung hero of the tech world. It quietly sits in the background, doing its thing, while most users don't know how it works or even that it exists. All they see is a nice-looking user interface that always seems to have their data ready. But without the database none of those apps and websites would be of any use.
So how exactly does it work? Imagine a huge spreadsheet that has hundreds, thousands or even millions of rows and columns, with each cell containing a piece of data. You can think of each row as representing a single entity, such as a customer or an order, and each column as representing a specific attribute of that entity, such as their name or order number.
In many ways, the comparison is not just a metaphor: a spreadsheet is a kind of database. But the type of database connected to a web application is designed to store data in a secure way and be incredibly efficient at finding and retrieving specific records even with complex queries.
That's why great applications are those who put a lot of work into the combination of working efficiently with data and great design. A social media app like Facebook or a video app like TikTok would not be very interesting if all they presented was a spreadsheet of likes and URLs to video clips; the data and design go hand in hand to create a success story.
Bubble's database
Setting up and managing a database is traditionally a demanding job that requires specific training like a degree in computer science and even additional education and certification.
One of Bubble's core strengths is its built-in database that's automatically set up when your app is created, removing the need for dedicated employees to operate it.
Bubble takes care of most of the database management for you:
Creating the database when you first set up your app
Setting up and maintaining two : one for testing and one for live users
Keeping it operational and maintaining
its content to store and transfer it securely
Take that can be recovered at any time
Privacy Rules keeps user data securely protected, based on who is trying to access it
Creating and maintaning user profiles with secure passwords
Regular
You can read more about Bubble's security on our dedicated security page. Page: Bubble security
Types of data
As you develop your Bubble application you'll find that you need to store data in different ways, and we split these into three categories:
Last updated