Notion's engineering team explains how they built Offline Mode, their most-requested feature. The post covers the evolution of their SQLite cache into a persistent storage layer, a forest-of-trees data model using offline_page and offline_action tables to track multiple independent reasons a page should be available offline,

7m read timeFrom notion.com
Post cover image
Table of contents
Storage LayerTracking offline pagesOffline treesKeeping downloaded pages up-to-datePruning offline trees as content changesLooking forward
2 Comments

Sort: