mdn / mdn/content

Indexes and Schema are not the same thing

Open
#41,274 1 comment 0 reactions 0 assignees View on GitHub
Content:Learn
Dominant language
Markdown
Stars
11k
Forks
23.2k
Avg merge
2d 9h
Merged PRs (30d)
331

Description

### MDN URL

https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Client-side_APIs/Client-side_storage

### What specific section or headline is this issue about?

https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Client-side_APIs/Client-side_storage#database_initial_setup

### What information was incorrect, unhelpful, or incomplete?

When first reading, the user might get the misconception that indexes are a database schema.
We don't need an index on the `body` field. And we don't need to describe each field in the index.
For example, this text is incorrect:
`So with this database schema set up, when we start adding records to the database, each one will be represented as an object along these lines:`

### What did you expect to see?

It is necessary to describe the work of indexes, their purpose, and how they differ from the schema. In the IDB, there is no schema as such, if I understand the IDB work correctly.

### Do you have any supporting links, references, or citations?

This resource covers this topic well:
https://javascript.info/indexeddb

### Do you have anything more you want to share?

_No response_

### MDN metadata

Page report details

* Folder: `en-us/learn_web_development/extensions/client-side_apis/client-side_storage`
* MDN URL: https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Client-side_APIs/Client-side_storage
* GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/learn_web_development/extensions/client-side_apis/client-side_storage/index.md
* Last commit: https://github.com/mdn/content/commit/48d220a8cffdfd5f088f8ca89724a9a92e34d8c0
* Document last modified: 2025-04-11T19:13:37.000Z

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.