Skip to content

Commit

Permalink
FIX format
Browse files Browse the repository at this point in the history
  • Loading branch information
pubkey committed Mar 11, 2024
1 parent 417fbf1 commit f4b3dde
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs-src/docs/slow-indexeddb.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<center>
<a href="https://rxdb.info/">
<img src="./files/logo/rxdb_javascript_database.svg" alt="IndexedDB Database" width="250" />
</a>
</center>

------------------------------

:::

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.
Expand Down

0 comments on commit f4b3dde

Please sign in to comment.