From f4b3dded96eac22417f7f20a705db5f2bbdb6ef4 Mon Sep 17 00:00:00 2001 From: pubkey <8926560+pubkey@users.noreply.github.com> Date: Mon, 11 Mar 2024 23:09:07 +0100 Subject: [PATCH] FIX format --- docs-src/docs/slow-indexeddb.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs-src/docs/slow-indexeddb.md b/docs-src/docs/slow-indexeddb.md index 1ab2737ebf4..19f5edf4df6 100644 --- a/docs-src/docs/slow-indexeddb.md +++ b/docs-src/docs/slow-indexeddb.md @@ -16,18 +16,16 @@ For [in-browser data storage](./articles/browser-database.md), you have some opt - The **FileSystem API** could be used to store plain binary files, but it is [only supported in chrome](https://caniuse.com/filesystem) for now. - **IndexedDB** is an indexed key-object database. It can store json data and iterate over its indexes. It is [widely supported](https://caniuse.com/indexeddb) and stable. ------------------------------- -### **UPDATE April 2023:** Since beginning of 2023, all modern browsers ship the **File System Access API** which allows to persistently store data in the browser with a way better performance. For [RxDB](https://rxdb.info/) you can use the [OPFS RxStorage](./rx-storage-opfs.md) to get about 4x performance improvement compared to IndexedDB. +:::note UPDATE April 2023 +Since beginning of 2023, all modern browsers ship the **File System Access API** which allows to persistently store data in the browser with a way better performance. For [RxDB](https://rxdb.info/) you can use the [OPFS RxStorage](./rx-storage-opfs.md) to get about 4x performance improvement compared to IndexedDB.
IndexedDB Database
- ------------------------------- - +::: It becomes clear that the only way to go is IndexedDB. You start developing your app and everything goes fine. But as soon as your app gets bigger, more complex or just handles more data, you might notice something. **IndexedDB is slow**. Not slow like a database on a cheap server, **even slower**! Inserting a few hundred documents can take up several seconds. Time which can be critical for a fast page load. Even sending data over the internet to the backend can be faster then storing it inside of an IndexedDB database.