Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Report: 71% of tech leaders won’t hire devs without AI skills

      July 17, 2025

      Slack’s AI search now works across an organization’s entire knowledge base

      July 17, 2025

      In-House vs Outsourcing for React.js Development: Understand What Is Best for Your Enterprise

      July 17, 2025

      Tiny Screens, Big Impact: The Forgotten Art Of Developing Web Apps For Feature Phones

      July 16, 2025

      Too many open browser tabs? This is still my favorite solution – and has been for years

      July 17, 2025

      This new browser won’t monetize your every move – how to try it

      July 17, 2025

      Pokémon has partnered with one of the biggest PC gaming brands again, and you can actually buy these accessories — but do you even want to?

      July 17, 2025

      AMD’s budget Ryzen AI 5 330 processor will introduce a wave of ultra-affordable Copilot+ PCs with its mobile 50 TOPS NPU

      July 17, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The details of TC39’s last meeting

      July 17, 2025
      Recent

      The details of TC39’s last meeting

      July 17, 2025

      Notes Android App Using SQLite

      July 17, 2025

      How to Get Security Patches for Legacy Unsupported Node.js Versions

      July 17, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      KeySmith – SSH key management

      July 17, 2025
      Recent

      KeySmith – SSH key management

      July 17, 2025

      Pokémon has partnered with one of the biggest PC gaming brands again, and you can actually buy these accessories — but do you even want to?

      July 17, 2025

      AMD’s budget Ryzen AI 5 330 processor will introduce a wave of ultra-affordable Copilot+ PCs with its mobile 50 TOPS NPU

      July 17, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Databricks Lakebase – Database Branching in Action

    Databricks Lakebase – Database Branching in Action

    July 4, 2025

    What is Databricks Lakebase?

    Databricks Lakebase is a Postgres OLTP engine, integrated into Databricks Data Intelligence Platform. A database instance is a compute type that provides fully managed storage and compute resources for a postgres database. Lakebase leverages an architecture that separates compute and storage, which allows independent scaling while supporting low latency (<10ms) and high concurrency transactions.

    Databricks has integrated this powerful postgres engine along with sophisticated capabilities that are benefited by Databricks recent acquisition of Neon. Lakebase is fully managed by Databricks, which means no infrastructure has to be provisioned and maintained separately. In addition to traditional OLTP engine, Lakebase comes with below features,

    • Openness: Lakebase are built on open-source standards
    • Storage and compute separation: Lakebase stores data in data lakes in open format. It enables scaling storage and compute independently.
    • Serverless: Lakebase is lightweight, meaning it can scale instantly up and down based on the load. It can scale down to zero, at which the cost of the lakebase is just for the storage  of data only. No compute cost will be applied.
    • Modern development workflow: Branching a database is as simple as branching a code repository. It is done near instantly.
    • Built for AI Agents: Lakebases are designed to support a large number of AI agents. It’s branching and checkpointing capabilities enable AI agents to experiment and rewind to any point in time.
    • Lakehouse Integration: Lakebase make it easy to combine operational, analytical and AI systems without complex ETL pipelines.

    In this article, we shall discuss in detail about how database branching feature works in Lakebase.

    Database Branching

    Database branching is one of the unique features introduced in Lakebase, that enables to branch out a database. It resembles the exact behavior of how code branch could be branched out from an existing branch.

    Branching database is beneficial for an isolated test environment or point in time recovery. Lakebase uses copy-on-write branching mechanism to create an instant zero-copy clone of the database, with dedicated compute to operate on that branch. With zero-copy clone, it enables to create a branch of parent database of any size instantly.

    The child branch is managed independently of the parent branch. With child isolated database branch, one can perform testing/debugging in the production copy of data. Though both parent and child databases appear separate, physically both instances would be pointing to same data pages. Under the hood, child database will be pointing to the actual data pages which parent is pointing to. When a change occurs in any of the data in child branch, then a new data page will be created with the new changes, and it will be available only to the branch. Any changes done in branch will not reflect in parent branch.

    How branching works

    The below diagrams represent how database branching works under the hood,

    Database Branching

    Database Branching Updates

    Lakebase in action

    Here is the demonstration of how Lakebase instance can be created, branch out an instance and how table changes behave,

    To create Lakebase instance, login Databricks and navigate to Compute -> OLTP Database tab -> Click “Create New Instance” button,

    Create New Instance 01

    Create New Instance Success 02

    Click “New Query” to launch SQL Editor for PostgreSQL Database. In current instance, let’s create a new table and add some records.

    Instance1 Create Table 03

    Instance1 Query Table 04

    Let’s create a database branch “pginstance2” from instance “pginstance1”. Goto Compute –> OLTP Database –> Create Database instance

    Enter new instance name and expand “Advanced Settings” -> Enable “Create from parent” option -> Enter the source instance name “pginstance1”.

    Under “Include data from parent up to”, select “Current point in time” option. Here, we can choose any specific point in time instance too.

    Create Instance2 05

    Instance2 Create Success 06

    Launch SQL Editor from pginstance2 database instance and query tbl_user_profile table

    Instance2 Query Table 07

    Now, let’s insert new record and update an existing record in the tbl_user_profile table in pginstance2,

    Instance2 Update Table 08

    Now, let’s switch back to parent database instance pginsntance1 and query tbl_user_profile table. The table in pginsntance1 should still be only 3 records. All the changes done in tbl_user_profile table should be available only in pginstance2.

    Instance1 Query Table 09

    Conclusion

    Database changes that are done in one branch will not impact/reflect in another branch, thereby provide clear isolation of database at scale. Currently Lakebase do not have a feature to merge database branch. However, Databricks is committed and working towards database merge capability in near future.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleFlutter + GitHub Copilot = Your New Superpower
    Next Article The dog days of JavaScript summer

    Related Posts

    Artificial Intelligence

    Scaling Up Reinforcement Learning for Traffic Smoothing: A 100-AV Highway Deployment

    July 17, 2025
    Repurposing Protein Folding Models for Generation with Latent Diffusion
    Artificial Intelligence

    Repurposing Protein Folding Models for Generation with Latent Diffusion

    July 17, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    How to Signup to Microsoft Teams for Free (Simple Guide)

    Operating Systems

    How to use AspireUpdate to update WordPress and plugins through the repository of your choice

    Web Development

    CVE-2025-27720 – Pixmeo Osirix MD Unencrypted Credential Disclosure

    Common Vulnerabilities and Exposures (CVEs)

    Model Context Protocol (MCP) vs Function Calling: A Deep Dive into AI Integration Architectures

    Machine Learning

    Highlights

    Linux

    LastOSLinux: Una Versione Ottimizzata di Linux Mint 22.1 per Utenti Windows

    May 21, 2025

    Con Windows 10 prossimo alla fine del suo ciclo di vita il 14 ottobre 2025,…

    Is DOOM: The Dark Ages on Xbox Game Pass?

    Is DOOM: The Dark Ages on Xbox Game Pass?

    April 8, 2025

    CVE-2025-6547 – Apache PBKDF2 Signature Spoofing Vulnerability

    June 23, 2025

    CVE-2024-51103 – PHPGURUKUL Student Management System SQL Injection Vulnerability

    May 23, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.