The database
This section covers different aspects of how the Bubble database works
Last updated
Was this helpful?
This section covers different aspects of how the Bubble database works
Last updated
Was this helpful?
The database is the cornerstone of most applications. It handles all the dynamic data, meaning data that you and your users can create, change, view and delete as frequently as needed.
The database works in tandem with your app's design to give your users the combination of being able to work with complex data efficiently, without being burdened by the mechanics of how it actually happens under the hood. Most of your users don't know how it works and indeed don't even know that it's there – they just know that the information they stored in your app yesterday is still there today for them to interact with.
The database is of course where you store data, but it comes with its own set of comma
When you and your users interact with your Bubble app, two computers are involved:
The device that the user is accessing the app from (such as a laptop or cell phone)
Bubble's server (located in a server park)
Whenever an action is needed that involves the database, such as reading, writing or deleting data, that command is sent from the user's device to the server, where the job is completed and a confirmation and any requested information is sent back to the device.
As such, working with data in your app is an ongoing stream of communication between the user's device and the Bubble server. This doesn't just happen on page load, but continually as the user provides your app with actions and input. Even for a single user, small packets of data can be sent back and forth several times per second.
As the developer of the app, you can set it up to send all sorts of different commands to the server:
Create things
Make changes to and delete things
Search for things and return the result as a list
Find one specific Thing and return its content
Any data sent between the user's device and the server is encrypted at all times, ensuring that it stays private. Let's say a user provides input about himself such as name and date of birth: when that data is being sent to the Bubble server, it's encrypted and can't be read by anyone else. It's also encrypted during storage on the server itself.
You can read more about the encryption in the infobox below.
Privacy Rules are rules that govern what users can access what data. It's the most important part of your databases security, and we strongly recommend that all apps that host any kind of private or sensitive data set up Privacy Rules to protect it.
To learn more about Privacy Rules, read our .