Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Umstellung auf IndexedDB #467

Open
Tsumiki-Chan opened this issue Mar 29, 2019 · 0 comments
Open

Umstellung auf IndexedDB #467

Tsumiki-Chan opened this issue Mar 29, 2019 · 0 comments
Labels
VORSCHLAG Es handelt sich um einen Funktionsvorschlag des LSSM

Comments

@Tsumiki-Chan
Copy link
Member

Aktuell speichern wir unsere Daten im localStorage. Meine Überlegung war, dass wir alle Daten aus dem Localstorage abziehen und stattdessen eine IndexedDB benutzen.
Die könnte man gleich im Zusammenhang mit #458 machen.

IndexedDB hat folgende Vorteile:

  • IndexedDB unterstützt Worker Threads (bis auf Safari), sodass dies den DOM nicht blockt
  • IndexedDB speichert seine Daten nach einem Index
  • IndexedDB baut seine Datenbank nach dem Database->Table Prinzip auf
  • Jeder Datentyp kann gespeichert werden (nicht nur strings), auch Objekte
  • IndexedDB erlaubt größere Datenmengen (Meist 50 MB, Mobile 10 MB)
  • Wenn wir die maximale Datengröße bei IndexedDB überschreiten, wird der Nutzer gefragt, ob er uns mehr Speicherplatz zuspricht.
@Tsumiki-Chan Tsumiki-Chan added the VORSCHLAG Es handelt sich um einen Funktionsvorschlag des LSSM label Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
VORSCHLAG Es handelt sich um einen Funktionsvorschlag des LSSM
Projects
None yet
Development

No branches or pull requests

1 participant