<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-notion-decreased-latency-by-20-with-caching-ohiansx2y" -->

---
title: How Notion Decreased Latency by 20% with Caching | daily.dev
description: Notion boosted page navigation speed by 20% on its website by implementing client-side caching using SQLite and WebAssembly. They utilized a 'SharedWorker'...
canonical: https://daily.dev/posts/how-notion-decreased-latency-by-20-with-caching-ohiansx2y
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How Notion Decreased Latency by 20% with Caching | daily.dev
og:description: Notion boosted page navigation speed by 20% on its website by implementing client-side caching using SQLite and WebAssembly. They utilized a 'SharedWorker'...
og:url: https://daily.dev/posts/how-notion-decreased-latency-by-20-with-caching-ohiansx2y
og:image: https://api.daily.dev/og/posts/ohiaNsx2y.png
og:image:alt: How Notion Decreased Latency by 20% with Caching
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How Notion Decreased Latency by 20% with Caching

**[Quastor Daily](https://daily.dev/sources/quastor)** · 8 min read · 42 upvotes · 1 comments

## Summary

Notion boosted page navigation speed by 20% on its website by implementing client-side caching using SQLite and WebAssembly. They utilized a 'SharedWorker' architecture to handle data writing, resolving issues related to database corruption and slow disk reads. This approach significantly improved user experience without regressing other performance metrics.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.quastor.org/p/notion-decreased-latency-20-caching>

## Community discussion

Top comments from developers on daily.dev.

**@okokok** · 2 upvotes

> Kinda scary honestly to let browsers adjust files on the file system. I'll make sure to disable this feature off my browsers.
>
> p.s you can disable it in firefox with `about:config` and then looking for `dom.fs.access.enabled` key and setting its value to 0

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#performance](https://daily.dev/tags/performance), [#webassembly](https://daily.dev/tags/webassembly), [#sqlite](https://daily.dev/tags/sqlite)

[View this post on daily.dev](https://daily.dev/posts/how-notion-decreased-latency-by-20-with-caching-ohiansx2y)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How Notion Decreased Latency by 20% with Caching","url":"https://daily.dev/posts/how-notion-decreased-latency-by-20-with-caching-ohiansx2y","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-notion-decreased-latency-by-20-with-caching-ohiansx2y"},"datePublished":"2024-08-03T18:32:47.545Z","dateModified":"2024-08-03T18:33:02.085Z","description":"Notion boosted page navigation speed by 20% on its website by implementing client-side caching using SQLite and WebAssembly. They utilized a 'SharedWorker'...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/31799f24cd32039ef5c0bf6d6ebda879?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/31799f24cd32039ef5c0bf6d6ebda879?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Quastor Daily","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Quastor Daily","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/073e935e4893445ba562bf9e1ca38ec1","url":"https://daily.dev/sources/quastor"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/how-notion-decreased-latency-by-20-with-caching-ohiansx2y","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":42},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"webdev,performance,webassembly,sqlite","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Quastor Daily","item":"https://daily.dev/sources/quastor"},{"@type":"ListItem","position":3,"name":"How Notion Decreased Latency by 20% with Caching"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/how-notion-decreased-latency-by-20-with-caching-ohiansx2y","comment":[{"@type":"Comment","text":"Kinda scary honestly to let browsers adjust files on the file system. I’ll make sure to disable this feature off my browsers.\np.s you can disable it in firefox with about:config and then looking for dom.fs.access.enabled key and setting its value to 0","datePublished":"2024-09-11T17:02:56.706Z","dateModified":"2024-09-11T17:05:54.073Z","url":"https://daily.dev/posts/ohiaNsx2y#c-NaPei7qgo","author":{"@type":"Person","name":"Cookie","url":"https://daily.dev/okokok","image":"https://lh3.googleusercontent.com/a/ACg8ocJ7FYh10K1Ei95Urk23cYmjunxVbfoGHIug88z-CXi0TfgdYA=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}}]}
```

