Answer the question
In order to leave comments, you need to log in
What is the best way to store an array of integers in IndexedDB: TypedArray or ArrayBuffer?
The task is to save lists of 32-bit unsigned integers (~1e7 values) in the user's browser.
They do not need to be searched, they are not indexed. Indexes are different - timestamp and all sorts of id.
I see three options:
data: [1,2,3]
- regular arraydata: new Uint32Array([1,2,3])
- typed arraydata: new Uint32Array([1,2,3]).buffer
– ArrayBuffer.{}
. And for TypedArray, it seems like it appends a key to each value. I use DexieAnswer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question