Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
25 views

Does IndexedDb data get erased after 7 days in a MacOS webview?

I've found various web pages discussing how Apple erases the storage of IndexedDb data in Safari for sites that haven't been visited in at least 7 days (unless you add the site to your desktop). They ...
Greg Bulmash's user avatar
  • 1,938
-1 votes
0 answers
16 views

How to retrieve all partial keys of a complex keyPath of an objectStore?

For a complex keyPath like [domain, field], how to reliably get [domain, *]? The current solution I come up is objectStore.getAllKeys(IDBKeyRange.bound([domain], [domain + '\0'], true, true)), but it ...
Danny Lin's user avatar
  • 2,278
0 votes
0 answers
10 views

Store range of values in IndexedDB and query by one value

I want to store list of events in IndexedDB. Each event has start date and end date. Then I need to query today events. I store dates as ISO strings (e. g. 2024-09-15), so string comparison makes ...
kiv_apple's user avatar
  • 661
0 votes
0 answers
14 views

Problem with rendering image pulled from indexedDB on front

So, I am making flashcards app on web, and its my first time using IndexedDB and BLOBs. At first i tried to do something by myself but it was total crap and then with some help of ai i came up with ...
Hubert Kiszka's user avatar
0 votes
0 answers
13 views

Ngx-indexed-DB failing after ng service worker is made to work

I have added ng service worker to my project and later i added ngx-indexed-db to my project now i face a problem after installing the ngx-indexed-db the ng service worker was failing and after making ...
Gowri Shankar's user avatar
0 votes
1 answer
19 views

Ng serviceworker not registering after making ngx-indexed-db work

I have installed ngx-indexed-DB to make the app work when offline after installing ng service worker but the problem is after making the indexed DB work the ng service worker is not registering. my ...
Gowri Shankar's user avatar
0 votes
0 answers
39 views

Is it possible to accurately define a structure clonable type in TypeScript

Aka define the set of all possible values that can be passed through structured clone algorithm (mdn, html spec, structuredClone). It'd be super useful to constrain types that has to be passed through ...
Link0's user avatar
  • 670
0 votes
0 answers
16 views

While upgrading webapp from angular14 to angular17 facing indexedDB issue : "ReferenceError: indexedDB is not defined"

My webapp was in angular14, there indexedDB working smoothly , but recently while upgrading to angular17 this issue occuring "ReferenceError: indexedDB is not defined" at DB creation point &...
Soumyadip Chakraborty's user avatar
0 votes
0 answers
8 views

jsstore indexeddb not allowing multiple ! values in regex expression

When we are firing the below query on jsstore DB the multiple '!' values are not executed; ideally the result was expected that it should return data of all countries whose name not brazil & ...
Pushkaraj Khamkar's user avatar
0 votes
1 answer
52 views

silent error "UpgradeError Not yet support for changing primary key" in useLiveQuery() in Dexie

I was not aware that it was not possible to change primary key in Dexie and it gave me this error: UpgradeError Not yet support for changing primary key But my main issue is that this error is silent ...
RedGiant's user avatar
  • 4,730
0 votes
0 answers
11 views

OR logic for multiple fields in indexedDB with pagination

IndexedDB beginner. I have an objectStore with objects having fields f1, f2 and f3. I want to search on this objectStore using values v1 and v2 using the following condition: (f1==v1 OR f2==v1) AND (...
Urooj's user avatar
  • 334
0 votes
0 answers
37 views

Blazor PWA with shared database between all uses in offline mode

A requirement for our Blazor PWA application is all data persisted on client computer must be shared between all users on that machine. Is there a way to share data between all uses on client machine ...
Tri Ngoc Nguyen's user avatar
0 votes
2 answers
56 views

IndexedDB: Opening a new DB but Promise gets stuck

Currently, I'm designing IndexedDB functionality for my company. I have built a solid class and all of my unit tests work. However, when I'm attempting to open a new database for a client, the state ...
TJLSmith0831's user avatar
0 votes
1 answer
32 views

Indexeddb - records are added successfully, except index is missing data

Using indexeddb and idb promise library. I have this objectstore that I create called storeMappings along with the index inUse. I then populate the store with some records. Everything works as it ...
dman's user avatar
  • 10.9k
1 vote
0 answers
37 views

Dexie returns duplicated object after manually deleting the database and re-populate it. It only happens when you do not refresh the page

I have a feature on my website to allow users to delete Dexie database manually. I just found that after the database is deleted and gets re-populated without refreshing the page, it will return ...
RedGiant's user avatar
  • 4,730
1 vote
0 answers
35 views

LevelJS when in browser with IndexedDB as a storage shows arrays of bytes instead of JSON or readable object representation

I instantiate and populate the LevelJS abstraction as follows: import * as level from 'level'; const defDb = new level.Level('def', {valueEncoding: 'json'}); defDb.put(keyObj, valueObj); and what I ...
fedd's user avatar
  • 912
0 votes
1 answer
24 views

How to delete an Index in an existing IndexedDB

When I try to delete a IndexedDB Index in onupgradeneeded, I get one of 2 errors depending on whether I include the 1st statement below or not. With the 1st statement, I get an exception saying "...
Cincy Steve's user avatar
1 vote
2 answers
156 views

Why does Dexie give me "The operation failed because the requested database object could not be found"?

I have the following very basic Dexie app: $(document).ready(function(){ let demo = { ...
Mayor of the Plattenbaus's user avatar
0 votes
0 answers
17 views

How to insert records in Indexed DB Database on clicking on the button

I am unable to insert record in Databased created through IndexedDB Sample code
Santhosh's user avatar
  • 1,081
1 vote
2 answers
56 views

Create multiple stores in IndexedDB and get notification when all are available

I am new to IndexedDB and trying to create a database with many stores in it. After creating the stores my app can go ahead and add records to it, but I need to be sure that all stores have been ...
David Mason's user avatar
  • 1,349
0 votes
1 answer
87 views

Uncaught (in promise) DOMException: Uncaught exception in event handler with indexedDB

I am using vue 3 with indexedDB through this library: 'https://github.com/jakearchibald/idb' In my component: const [dataA, dataB] = await Promise.all([ getDataA(), getDataB(), ]) In my ...
Nguyen Duc Kien's user avatar
1 vote
1 answer
195 views

Does navigator.storage.persist() only protect against data removal in the case of storage pressure?

According to the MDN docs browser-stored data can be evicted in three cases: Storage pressure eviction Browser maximum storage exceeded eviction Proactive eviction For the first case - "Storage ...
sunyata's user avatar
  • 2,121
2 votes
1 answer
46 views

Typescript: pretents foo is not in type bar, while it is: how to debug

When I do tx.idbtrans, I have an error: Error: Property 'idbtrans' does not exist on type 'Transaction & { fileInfo: EntityTable<FileInfo, "id">; }'. await db.transaction(&...
tobiasBora's user avatar
  • 2,199
0 votes
0 answers
38 views

How to save files ( 200 mb size ) in indexdb or in client side in react app

Developing document processing application in react in which need to download the word or pdf in client side and process that file . To avoid roundtrip to server i am trying to save the document in ...
Selvakumar Muthupandi's user avatar
0 votes
0 answers
176 views

Memory Leak using Capacitor SQLite with jeep-sqlite and TypeORM

I have an Issue using "@capacitor-community/sqlite": "^5.7.2" with "typeorm": "^0.3.20", and "jeep-sqlite": "^2.7.0". jeep-sqlite is needed ...
jsadev.net's user avatar
  • 2,840
0 votes
0 answers
52 views

Partial Data Migration inside IndexedDB onupgradeneeded

I'm updating objects in an IndexedDB ObjectStore to convert a property from a base64-encoded string to Blobs. However, the operation seems to only succeed partially even though the database's version ...
Mark McIntyre's user avatar
0 votes
0 answers
41 views

React Component Executes Sync Operation Twice Despite Guards Against Duplicates

I'm encountering a challenging issue where my React component, designed to sync data with a backend, executes its sync operation twice in quick succession. This happens even though I've implemented ...
Tsabary's user avatar
  • 3,810
0 votes
0 answers
19 views

LevelDB and IndexedDB: maximum key size? Like, how many characters long the key could be [duplicate]

How long can a key of these key-value databases - IndexedDB (in-browser) and LevelDB (on server) be? (I'm failing to find this figure online and in the docs.) From a relational database experience I ...
fedd's user avatar
  • 912
0 votes
1 answer
110 views

Dexie doesn't return Class type on query, when using mapToClass

I am experimenting with using Dexie for a project, and I am trying to use both Typescript and the .mapToClass functionality in tandem. When trying to implement the example at Dexie: Typescript, I am ...
Dmitriy K's user avatar
0 votes
0 answers
20 views

Function for IndexedDB store methods execution

I want to create async function that receive function like () => indexed_db_store.get_all() or () => indexed_db_store.get(20) and returns result of async operation: data from indexedDB. So, ...
Евгений Туровский's user avatar
0 votes
0 answers
342 views

IndexedDB across tabs: Internal error opening backing store for indexedDB.open

This has similar symptoms to Internal error opening backing store for indexedDB.open but I can reproduce this specific issue. This is happening on Chrome. We have a PWA that uses indexedDB (...
Keith's user avatar
  • 154k
0 votes
1 answer
147 views

Webkit callAsyncJavaScript not waitng for async await function call in SwiftUI

I am using WebKit in SwiftUI to update my indexedDB, but for some reason, the callAsyncJavaScript function of the webkit module is not waiting for the await response, can someone help? What changes or ...
Elder Blood's user avatar
0 votes
0 answers
71 views

How to use StorageManager in Angular with dexie to prevent accidentally deletion of indexeddb

In my Angular project I have used dexie to handle indexeddb. But somehow all data gets deleted accidentally (you can say indexeddb crash). I want to use StorageManger in Angular with dexie so that I ...
Madara Uchiha's user avatar
0 votes
1 answer
48 views

I would like to make the below code to execute synchronous [duplicate]

Below is the code I want to make synchronous subtractBtn.addEventListener("click", (e) => { console.log("executing"); readDatafromDB(); console.log("executing ...
Mukesh Keerthipati's user avatar
0 votes
1 answer
45 views

IDBKeyRange.only creating null cursor

so I am learning IndexedDB because I have to use it in a app my company is planing, and I am finding myself a bit frustrated with cursors and IDBKeyRange. The thing, everything works great until I try ...
Alan Espinet's user avatar
1 vote
2 answers
464 views

Are IndexedDB writes actually parallel?

I needed to write 50k+ records to IndexedDB in multiple stores (tables). I noticed, that the more stores you write to, the slower the writes are. After some testing, it seems to me that the writes ...
Bladesheng's user avatar
0 votes
1 answer
55 views

Dexie Export : Export option: How to filter out a column

https://dexie.org/docs/ExportImport/dexie-export-import https://www.npmjs.com/package/dexie-export-import We are using dexie and we have an option to export the dexie database (for user support), we ...
user23405544's user avatar
0 votes
0 answers
44 views

There is any way to insert data into an IndexedDB pointing to the file

I need to insert data in a IndexedDB, but not in the browser context. Pointing directly to the IndexedDB file. I have access to that file There is any module/library that allow me to do that? I tried ...
Jordi's user avatar
  • 9
3 votes
1 answer
376 views

IndexedDB data is suddenly gone (with Dexie)

I've been using Dexie for a small production app. Today by opening the app I noticed that all the data was gone. I doubt that my app is the culprit, as it doesn't have a way to erase all the data at ...
Francesco's user avatar
  • 916
1 vote
0 answers
70 views

How to move data from one store to another in indexedDB

When upgrading database I want to move some data from one store to another. But I'm not able to do like this: import { openDB } from 'idb'; const testVersion = 2; const db = await openDB('...
MrMamen's user avatar
  • 379
2 votes
0 answers
80 views

Firebase IndexedDB transaction is not active

I am experiencing an issue with Firebase in a React Native Web application bundled with Webpack. The problem arises when I switch to production mode. In development mode, everything works perfectly ...
Mohsen's user avatar
  • 1,565
3 votes
0 answers
179 views

Indexeddb not showing in Chrome Dev Tools

I want to create a Chrome Extension (manifest v3) which creates a indexeddb for data storage. The console shows the data, but i can not see the indexeddb in the dev tools (in the service worker view). ...
Mariano Schmands's user avatar
0 votes
0 answers
40 views

Filtering in a compound Index (IndexedDB)

I believe I must have read every question on how to implement filtering to IndexedDB, but it seems I cannot implement it into my code. In the end I followed those posts: this example for defining ...
Corbinian's user avatar
1 vote
1 answer
120 views

top-level await in a module prevents `onload` from firing

I'm seeing that the load event won't fire if I await for an IndexedDB opening at the top level in an indirectly loaded module. If I remove the await, the load handler is called as expected. If I keep ...
atzz's user avatar
  • 17.9k
0 votes
0 answers
33 views

How to profile IndexedDB and view CPU and memory usage

Can one profile a browser's IndexedDB to view the CPU and memory usage (and size of DB) ? And also to view read and write counts. Have looked but did not find anything useful.
gary's user avatar
  • 488
0 votes
0 answers
275 views

Jotai with IndexedDB get and set value dynamically

I have created this custom atom that uses the idb-keyval library to get and set values from indexeddb: export function atomWithAsyncStorage<T>(key: string, initial?: T) { const store = ...
Salman Fazal's user avatar
1 vote
1 answer
352 views

When to update IndexedDB data in a Blazor WebAssembly Application

I have a Blazor WebAssembly (PWA) project with a separate ASP.NET api which is used to access product data stored in a database. Calling the /api/products/getAllProducts endpoint takes a few seconds ...
Jeremias Rößner's user avatar
0 votes
0 answers
112 views

IndexedDB MANIFEST grows to 15GB crashing the browser

I think I am running into this issue https://github.com/google/leveldb/issues/299 I use Dexie and my app run for many days. The data stored are not so large, and the number of entries are fixed, but ...
Ricky Mo's user avatar
  • 7,438
0 votes
0 answers
56 views

JsStore or IndexedDB missing data

We're pretty deep into a PWA with around 30 tables in IndexedDB. We're using JsStore as our data access for all CRUD operations. Intermittently, an entire data table will lose its data. No records, no ...
j.p.freeman's user avatar

1
2 3 4 5
48