Book Image

Mastering Dart

By : Sergey Akopkokhyants
Book Image

Mastering Dart

By: Sergey Akopkokhyants

Overview of this book

Table of Contents (19 chapters)
Mastering Dart
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

IndexedDB


IndexedDB was introduced by Oracle and became popular very quickly. It's a Not Only SQL (NoSQL) database. The IndexedDB API is a more capable and far more complex API. IndexedDB has the following significant benefits:

  • It improves the responsiveness and speed of web programs by minimizing the number of HTTP requests

  • It provides more space for data without Web Storage limits

  • It provides the ability to work offline

  • A NoSQL database helps you work directly with Dart and JavaScript objects

  • It allows fast indexing, object searching, and granular locking per transaction

  • It supports synchronous and asynchronous APIs

One of the major disadvantages can be the difficulty in understanding it if you are coming from the world of rational databases. In IndexedDB, we can store a large amount of structured data, images, arrays, and whole objects; you just need to index them with a key. It follows the same origin policy, so we cannot access data across different domains. If you still use Web SQL database...