I have blobs inside my indexeddb around 10mb per row. So when im trying to do a query like this, Dexie loads all my rows in memory then looping it. So the memory consuming is huge. How can iterate my rows in dexie without loading them into memory?
db.chunks.where('transferId').equals(uploadId).each(async c => {
offset++;
if (offset <= totalChunks) {
const buffer = await c.blob;
controller.enqueue(buffer);
}
});