Bubble Docs
  • Introduction
  • New? Start Here
  • What is Bubble?
  • The Glossary
  • User manual
    • Getting started
      • What is Bubble?
      • Building for...
        • Web
        • Native iOS and Android
          • Mobile app quick start guide
          • What is a native mobile app?
          • Native mobile vs. web development
          • Differences in native and web elements
          • Native mobile app terminology
      • Building your first app
        • Planning features
        • Database structure
        • Design and UX
        • eCommerce and payments
          • Shopping cart
          • Checkout page
          • One-time payments
          • Subscriptions
          • Marketplace
      • Creating and managing apps
      • The Bubble editor
        • Tabs and sections
          • Design tab
            • The element tree
            • The property editor
          • Workflow tab
          • Data tab
          • Styles tab
          • Plugins tab
          • Settings tab
            • Application settings
              • Custom headers/body
              • Visual settings
              • Social media sharing
              • Translating your app
              • Email settings
              • Collaboration
            • Custom domain and DNS
          • Logs tab
        • Tools
          • Key features
          • The search tool
          • The Issue Checker
          • The element tree
          • The element property editor
          • The debugger
          • Notes
        • Previewing your app
      • Transitioning to Bubble from...
        • JavaScript
        • HTML and CSS
        • SQL
    • Design
      • Elements
        • Web app
          • The page
          • Containers
            • Groups
            • Repeating groups
            • Table elements
            • Popups
            • Floating groups
            • Group focus
          • Visual elements
          • Input forms
            • Text and numbers
            • Dates and time
            • File uploads
            • Selection controls
        • iOS and Android app
          • The view
          • Containers
          • Visual elements
          • Input forms
          • Mobile reusable elements
        • The element hierarchy
          • The element tree
        • Reusable Elements
      • Styling
        • Color variables
        • Font variables
        • Styles
        • Custom Fonts
      • Responsive design
        • Building responsive pages
        • Legacy articles
          • The Basics (Legacy)
          • Building Responsive Pages (Legacy)
          • Migrating Legacy Pages
          • Tips When Designing (Legacy)
      • Templates
      • The Component Library
      • Importing from Figma
    • Data
      • The database
        • Data types and fields
        • Creating, saving and deleting data
        • Finding data
        • Displaying data
        • Protecting data with privacy rules
        • The database editor
        • Export/import data
          • Exporting data
          • Importing data (CSV)
        • Working with location data
        • Using Algolia
        • Database structure by app type
          • Marketplace Apps
          • Directory & Listings Apps
          • Social Network Apps
          • SaaS Apps
          • Project Management Apps
          • CRM Apps
          • Professional Services Apps
          • On-demand Apps
          • Documentation/ CMS Apps
          • Applicant Tracking System (ATS) Apps
          • Portfolio Apps
          • Gallery Apps
          • Online Store / Ecommerce Apps
          • Blog Apps
          • Messaging App
          • Dashboards
          • Building Block Apps
          • Bubble as a backend
      • Files
      • Images
      • Static data
        • App texts (translations)
        • Option sets
      • Temporary data
        • Custom states
        • URL parameters
      • User accounts
        • Authentication plugins
          • Facebook plugin
          • Fitbit plugin
          • Google plugin
          • Instagram plugin
          • LinkedIn plugin
          • Pinterest plugin
          • Slack plugin
          • Wistia plugin
          • YouTube plugin
        • Cookies set by Bubble
      • Time, dates and time zones
    • Logic
      • The frontend and backend
      • Workflows
        • Events
          • Frontend events
            • Recurring workflows
            • Custom events
          • Backend events
            • Database trigger events
        • Actions
        • API Workflows
      • Dynamic expressions
      • Conditions
      • Navigation
        • Single-page applications (SPA)
        • Multi-page applications
        • Page slugs
      • Device resources
        • Location services
        • Camera/photo library
    • Workload
      • Understanding workload
        • Activity types
        • The workload calculation
        • Client-side and server-side processing
      • Tracking workload
        • Measuring
          • Using App Metrics
        • Monitoring
          • Workload notifications
          • Infinite recursion protection
      • Optimizing workload
        • Optimization framework
        • Optimization checklist
          • Page load
          • Searches
          • Workflows and actions
          • Backend workflows
        • Agency showcases
          • Minimum Studio
          • Neam
          • Support Dept
    • Security
      • Bubble's security features
      • Planning app security
      • Client-side and server-side
      • Bubble account security
      • App security
      • Page security
      • Database security
      • API security
        • API Connector security
        • Data API security
        • Workflow API security
      • Flusk
        • Overview
        • Flusk plan features
        • Getting started with Flusk
        • Flusk security tools
          • The Issues Explorer
          • Issue details
          • Tools and settings
            • Pages rating
            • Database rating
        • Flusk FAQ
      • Cookies
      • Security checklist
    • Previewing your app
      • Previewing a web app
      • Previewing a mobile app
    • Publishing your app
      • Web app
      • Native mobile app
        • Global native mobile settings
        • iOS App Store
        • Google Play Store
        • Publishing FAQ
    • AI
      • Generate apps with AI
        • About AI app generation
      • AI page designer
      • Connect to AI agents
    • Maintenance
      • Collaborators
      • Version control
        • Best practices: Version control
        • Transitioning from the legacy version control
        • Terminology: Version control
        • Version Control (legacy)
      • Commenting
      • Database maintenance
        • Copying the database
        • Restoring database backups
        • Bulk operations
          • Bulk operation methods compared
        • Wiping change history
      • Performance
        • Hard limits
        • Capacity Usage (legacy)
        • Notes on queries
      • SEO
        • Introduction to SEO
        • SEO: App
        • SEO: Page
      • Testing and debugging
        • Introduction to testing and debugging
        • The debugger
        • The server logs
        • Supported browsers
      • API workflow scheduler
    • Integrations
      • API
        • Introduction to APIs
          • What is a RESTful API?
        • The Bubble API
          • Bubble API terminology
          • Authentication
            • How to authenticate
            • No authentication
            • As a User
            • As an admin
          • The Data API
            • Data API Privacy Rules
            • Data API endpoints
            • Data API requests
          • The Workflow API
            • Workflow API privacy rules
            • Workflow API endpoints
            • API workflows
              • Creating API workflows
              • Scheduling API workflows
              • Recursive API workflows
              • API Workflow Scheduler
              • Case: Stripe notifications
        • The API Connector
          • Authentication
          • API Connector security
          • API guides
            • OpenAI
              • Authentication
              • Calls
                • ChatGPT
                  • Chat
            • Google Translate
              • How to setup Google API keys
          • Streaming API
        • API security
        • Plugins that connect to APIs
        • API Glossary
      • Plugins
        • What Plugins Can Do
        • Installing and using Plugins
        • Authentication plugins
        • Special Plugins
      • SQL Database Connector
      • Bubble App Connector
      • WorkOS
        • WorkOS SSO
        • WorkOS API
    • Infrastructure
      • Sub-apps
      • Bubble release tiers
      • Hosting and scaling
        • How Bubble hosting works
        • Scaling with Bubble
        • CDN (Cloudflare)
        • Bubble app names
        • Domain and DNS
      • Compliance
        • GDPR
        • SOC 2 Type II
        • HIPAA
        • Other frameworks and standards
    • Bubble for Enterprise
      • Hosting and infrastructure
        • Dedicated instance
          • The Dedicated editor experience
          • Technical specs
          • Main cluster dependencies
          • Customizable options
          • Migration process
            • Pre-migration
            • During migration
            • Post-migration
      • Security and compliance
        • Single sign-on (SSO)
        • GDPR
        • SOC 2 Type II
        • HIPAA
        • Other frameworks
        • Bubble's security features
      • Admin and collaboration
      • Priority support
      • Billing and Payment Guideline for Dedicated Instances
  • Core Reference
    • Using the core reference
    • Bubble's Interface
      • Design tab
      • Design tab (Legacy)
      • Workflow tab
      • Data tab
      • Styles tab
      • Styles tab (Legacy)
      • Plugins tab
      • Settings tab
      • Logs tab
      • Template tab
      • Toolbar
      • Top and context menu options
      • Deployment and version control
        • Deployment & Version Control Dropdown (legacy)
      • Notes
    • Elements
      • Native mobile elements
        • View element
        • List component
      • General properties
      • General properties (Legacy)
      • Styling properties
      • Styling Properties (Legacy)
      • Responsive Properties
      • Responsive Properties (Legacy)
      • Conditional formatting
      • States
      • Page Element
        • Page Element (Legacy)
      • Visual Elements
      • Containers
      • Container Layout Types
      • Containers (Legacy)
      • Input Forms
      • Reusable Elements
      • Element Templates (legacy)
    • Workflows
    • Events
      • General events
      • Element events
      • Custom events
      • Recurring event
      • Database trigger event
    • Actions
      • Account
      • Navigation
      • Data (things)
      • Email
      • Element
      • Custom
    • On-device resources
    • Data
      • Data Sources
      • Operators and comparisons
      • Search
      • Privacy
    • Styles
    • API
      • The Bubble API
        • The Data API
          • Authentication
          • Data API endpoints
          • Data API requests
        • The Workflow API
      • The API Connector
        • Authentication
        • Adding calls
    • Bubble-made Plugins
      • AddtoAny Share Buttons
      • Airtable
      • API Connector
      • Blockspring
      • Box
      • Braintree
      • Bubble App Connector
      • Chart.js
      • Circle Music Player
      • Draggable Elements
      • Dropzone
      • Facebook
      • Fitbit
      • Full Calendar
      • Google
      • Google Analytics
      • Google Optimize
      • Google Places
      • Ionic Elements
      • iTunes
      • Slidebar Menu
      • LinkedIn
      • Localize Translation
      • Mixpanel
      • Mouse & Keyboard Interactions
      • Multiselect Dropdown
      • Progress Bar
      • Rich Text Editor
      • Rich Text Editor (Legacy)
      • Screenshotlayer
      • SelectPDF
      • Slack
      • Segment
      • Slick Slideshow
      • SQL Database Connector
      • Star Rating
      • Stripe
      • Tinder-like Element
      • Twitter
      • YouTube
      • Zapier
    • Application Settings
      • App plan
      • General
      • Domain / email
      • Languages
      • SEO / metatags
      • API
      • Collaboration
      • Sub-apps
      • Versions
  • Account & Marketplace
    • Account and billing
      • Pricing and plans
        • Plans and billing
        • Billing cycle
        • FAQ: Pricing and Workload
      • Account Management
      • Building Apps for Others
      • Selling on the Marketplace
      • Plans & Billing (legacy)
    • Official Bubble Certification
      • Hiring certified developers
    • Building Plugins
      • The Plugin Editor
      • General Settings
      • Updating to Plugin API v4
      • Adding API Connections
      • Building Elements
      • Building Actions
      • Loading Data
      • Publishing and versioning
      • Github Integration
    • Building Templates
    • Application and data ownership
    • Marketplace policies
    • Bug reports
  • Vulnerability Disclosure Policy
  • Beta features
    • About the Beta features section
    • Native mobile apps
Powered by GitBook
On this page
  • Introduction
  • What is a database?
  • Bubble's database
  • Types of data

Was this helpful?

  1. User manual

Data

This section covers the different ways you work with data in Bubble

Last updated 4 months ago

Was this helpful?

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 .

Introduction

Working with data is fundamental to any application. In fact, it’s such a core aspect of app development that it’s difficult to imagine an app that doesn’t rely on data in some way. Whether the data is generated by users, managed by you, or imported from external services, the ability to collect, store, and display information is what enables most applications to function.

Consider a ride-sharing app—it requires data on drivers, customers, and locations to complete a transaction. A social media platform relies on user profiles, photos, and user-generated content. A news website needs articles and images. While these apps handle different types of data, they all follow the same fundamental principles of data management: collecting, storing, and presenting information to users.

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

  • uploaded by your and your users

  • Working with

  • Working with

  • 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 does a database work? Imagine a massive spreadsheet with hundreds, thousands, or even millions of rows and columns, where each cell contains a piece of data. Each row represents a single entity, such as a customer or an order, while each column defines a specific attribute, like a name or order number.

This comparison isn’t just a metaphor—a spreadsheet is a type of database. However, the databases used in web applications are designed for speed, security, and efficiency. They can process complex queries, retrieve specific records instantly, and handle vast amounts of data without slowing down.

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 has traditionally been a complex task, often requiring specialized training, such as a degree in computer science, along with additional education and certifications.

One of Bubble's key advantages is its built-in database, which is automatically configured when you create your app. This eliminates the need for dedicated database administrators, allowing you to focus on building your app without worrying about backend infrastructure.

Bubble handles most aspects of database management for you, including:

  • 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 maintaining user profiles with secure passwords

  • Regular

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:

Dynamic data (the database)

Dynamic data refers to information that users interact with in real time—creating, reading, editing, deleting, searching, and aggregating as needed. This includes a wide range of data types that are actively used and modified, such as social media posts, customer records, blog articles, eCommerce products, and chat messages.

All of this information is stored in the database, allowing your app to manage and present it efficiently based on user interactions.

Temporary data (custom states and URL parameters)

Temporary data refers to information that your app needs to store while it is running. In traditional programming, this concept is known as variables. Temporary data can be used for various purposes, such as handling navigation, performing calculations, keeping track of user selections, or storing user input that doesn’t need to be saved permanently. Essentially, it is any information that is only needed while the app remains open.

In Bubble, temporary data is stored using Custom states—which are variables attached to elements on the page—or URL parameters, which store information within the page’s URL.

Static data (Application texts and Option sets)

Static data refers to information that remains consistent or changes infrequently. This includes lists of options such as states, countries, colors, or categories, as well as text-based content like headers, menu options, error messages, and translations. It can also encompass predefined settings such as membership types, gender, or interests.

Bubble offers two distinct ways to store static data, each designed for different use cases:

App texts (translations)

App texts are static strings of text displayed throughout your app, such as headers, tooltips, explanatory text, menu options, page titles, and metadata.

App texts differ from option sets in that they are specifically designed to hold strings that can be translated into different languages. This provides an easy way to prepare your app to be available to a global audience.

For example, if you add an App text entry with "Welcome to my app," you can then add translations of that text in other languages, such as German and Hindi. Bubble will automatically display the appropriate translation based on the user's preferences. You maintain full control over which languages are available and how users set their preferred language.

App texts can be used for translations, but they don’t have to; they also provide a simple way to manage all static text in your app in one place.

App texts are intended for public information—they are not encrypted and should not store any sensitive information.

Option sets

Option sets let you store any type of unchanging information like in the examples above. It can be single values like a text or number or a list of values that can be used in elements like checkboxes, radio boxes and dropdowns.

Option sets, as the name suggests, allow you to set up a collection of options that you can manage in one place, making it easy to maintain and update as needed. They require your app to be deployed before updates are visible to users, unlike dynamic database data, which can be changed in real time.

Option sets are meant for public information – they are not encrypted and should not contain any sensitive information.

You can read more about Bubble's security on our dedicated security page. Page:

Article:

Article series: Article: Article:

Article series: Article: Article:

core reference entry on data
database
Managing files
static data
temporary data and variables
Managing users
Bubble security
The database
Temporary data
Custom states
URL parameters
Static data
Application texts
Option sets