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

      CodeSOD: A Unique Way to Primary Key

      July 22, 2025

      BrowserStack launches Figma plugin for detecting accessibility issues in design phase

      July 22, 2025

      Parasoft brings agentic AI to service virtualization in latest release

      July 22, 2025

      Node.js vs. Python for Backend: 7 Reasons C-Level Leaders Choose Node.js Talent

      July 21, 2025

      The best CRM software with email marketing in 2025: Expert tested and reviewed

      July 22, 2025

      This multi-port car charger can power 4 gadgets at once – and it’s surprisingly cheap

      July 22, 2025

      I’m a wearables editor and here are the 7 Pixel Watch 4 rumors I’m most curious about

      July 22, 2025

      8 ways I quickly leveled up my Linux skills – and you can too

      July 22, 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 Intersection of Agile and Accessibility – A Series on Designing for Everyone

      July 22, 2025
      Recent

      The Intersection of Agile and Accessibility – A Series on Designing for Everyone

      July 22, 2025

      Zero Trust & Cybersecurity Mesh: Your Org’s Survival Guide

      July 22, 2025

      Execute Ping Commands and Get Back Structured Data in PHP

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

      A Tomb Raider composer has been jailed — His legacy overshadowed by $75k+ in loan fraud

      July 22, 2025
      Recent

      A Tomb Raider composer has been jailed — His legacy overshadowed by $75k+ in loan fraud

      July 22, 2025

      “I don’t think I changed his mind” — NVIDIA CEO comments on H20 AI GPU sales resuming in China following a meeting with President Trump

      July 22, 2025

      Galaxy Z Fold 7 review: Six years later — Samsung finally cracks the foldable code

      July 22, 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

    Development

    GPT-5 is Coming: Revolutionizing Software Testing

    July 22, 2025
    Development

    Win the Accessibility Game: Combining AI with Human Judgment

    July 22, 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

    CVE-2025-37988 – Apache Linux Kernel Mount Namespace Locking races

    Common Vulnerabilities and Exposures (CVEs)

    “The full Call of Duty package”: Black Ops 7 has been confirmed during the Xbox Games Showcase, and no, it is not an expansion

    News & Updates

    Microsoft Edge will auto-update PDF to Adobe Engine, won’t kill off legacy PDF until 2026

    Operating Systems

    Expert Swift [SUBSCRIBER]

    Learning Resources

    Highlights

    CVE-2025-46647 – Apache APISIX OpenID-Connect Plugin Issuer Key Reuse Vulnerability

    July 2, 2025

    CVE ID : CVE-2025-46647

    Published : July 2, 2025, 12:15 p.m. | 3 hours ago

    Description : A vulnerability of plugin openid-connect in Apache APISIX.

    This vulnerability will only have an impact if all of the following conditions are met:
    1. Use the openid-connect plugin with introspection mode
    2. The auth service connected to openid-connect provides services to multiple issuers
    3. Multiple issuers share the same private key and relies only on the issuer being different

    If affected by this vulnerability, it would allow an attacker with a valid account on one of the issuers to log into the other issuer.

    This issue affects Apache APISIX: until 3.12.0.

    Users are recommended to upgrade to version 3.12.0 or higher.

    Severity: 0.0 | NA

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    CVE-2024-5878 – WordPress SimpleLightbox Stored Cross-Site Scripting Vulnerability

    May 20, 2025

    CVE-2025-38224 – Kvaser PCIEFD Linux Kernel Slab Out-of-Bounds Write

    July 4, 2025

    CVE-2025-3869 – WordPress 4stats Plugin CSRF Vulnerability

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

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