Home Data News Introducing Watermelon DB: A new relational database to make your React and...

Introducing Watermelon DB: A new relational database to make your React and React Native apps highly scalable

0
8519
Watermelon
watermelon on a blue desk
2 min read

Now you can store your data in Watermelon! Yesterday, Nozbe released Watermelon DB v0.6.1-1, a new addition to the database world. It aims to help you build powerful React and React Native apps that scale to large number of records and remain fast.

Watermelon architecture is database-agnostic, making it cross-platform. It is a high-level layer for dealing with data, but can be plugged in to any underlying database, depending on platform needs.

Why choose Watermelon DB?

Learn Programming & Development with a Packt Subscription

Watermelon DB is optimized for building React and React Native complex applications. Following are the factors that help in ensuring high speed of applications:

  • It makes your application highly scalable by using lazy loading, which means Watermelon DB loads data only when it is requested.
  • Most queries resolve in less than 1ms, even with 10,000 records, as all querying is done on SQLite database on a separate thread.
  • You can launch your app instantly irrespective of how much data you have.
  • It is supported on iOS, Android, and the web.
  • It is statically typed keeping Flow, a static type checker for JavaScript, in mind.
  • It is fast, asynchronous, multi-threaded, and highly cached. It is designed to be used with a synchronization engine to keep the local database up to date with a remote database.

Currently, Watermelon DB is in active development and cannot be used in production. Their roadmap states that, migrations will soon be added to allow the production use of Watermelon DB. Schema migrations is the mechanism by which you can add new tables and columns to the database in a backward-compatible way.

To know how you can install it and to try few examples, check out Watermelon DB on GitHub.

Read Next

React Native 0.57 coming soon with new iOS WebViews

What’s in the upcoming SQLite 3.25.0 release: windows functions, better query optimizer and more

React 16.5.0 is now out with a new package for scheduling, support for DevTools, and more!