Questions tagged [dexie]

Dexie.js is a minimalistic wrapper for IndexedDB

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

in dexie.js, how do i define and query field of type set?

here is my typescript definion: interface MyBlogPost{ tx:string labels: Set<number> } Basicly a blog post with text and mutiple lables of type number. I have many of those that i need to ...
yigal's user avatar
  • 4,055
0 votes
0 answers
13 views

RxDB RxDatabaseBase DexieError

I am trying to implement signalDb with RxDB Just following this example by signalDb (Here's the source code of this example) Ang I got this error: DexieError {_e: Error at getErrorWithStack (http:...
jnewbie's user avatar
  • 11
0 votes
1 answer
28 views

Write buffer is failing for large size dexie

I am trying to store parquet file data as buffer in indexeddb, but is failing with no error logged the file size is around 430mb const db = new Dexie('database'); db.version(1).stores({ datasets: ...
rambo's user avatar
  • 3
0 votes
0 answers
22 views

Synching data from dexie.js to the server via a server-side API

In my angular application, I want to get and save data from the server and store in the IndexedDB using Dexie.js. The data will be retrieved through a URL using [httpClient] 1. I did not see any API ...
wonderful world's user avatar
0 votes
0 answers
7 views

React: can't type accents or set the cursor in the middle of a word when using redux or dexie.js

If the input of a field must be equal to a global state, I usually do something like this (here in dexie.js, but I have similar issues with redux as well): export const Friend = memo(({id}) => { ...
tobiasBora's user avatar
  • 1,627
1 vote
1 answer
40 views

How can I filter and sort virtual columns using Dexie.js?

I have the need to make some match calculations and then sort my items in descending order by match. I found the modify API. Is it the best tool for my needs? I get goosebumps for the object mutation.....
Francesco Meli's user avatar
0 votes
1 answer
23 views

Dexie, Async filter function for filtering by another table

Is there a way to filter using a foreign column using .and() or .filter()? Because sorting as such would require using an async function` const oPs = await context.orderProducts .where('product') ...
DeedIn's user avatar
  • 41
1 vote
1 answer
43 views

React Dexie.js: filter the fields during a get to avoid react component redraw

In Dexie.js, if I do: friends = useLiveQuery(async () => await db.friends.toArray() ) if the name of a friend changes, my component will always redraw. But I might only need to access one field, ...
tobiasBora's user avatar
  • 1,627
0 votes
0 answers
22 views

is it possible to build a spatial database using Dexie Db?

I'm working on a web-based spatial data builder app designed to handle large datasets in real-time. Given the memory constraints of web applications, I need to efficiently manage the data being used. ...
lord_drgical's user avatar
0 votes
1 answer
30 views

How to add Dexie addons to TypeScript db file?

Hi does anyone know how to add addons to a TS Dexie db? This is what they show in the docs but they don't show how to do it in TS. const db = new Dexie('MySyncedDB', {addons: [dexieCloud]});
Steve Barakat's user avatar
0 votes
1 answer
59 views

Get number of records saved in Indexed DB using Dexie Js

I am new to Angular and JS. Right now I am writing code to save data to Indexed db and I want to show number of records which are pending (in indexed db) on navigation bar, I am not able to get the ...
Sarfaraz Ansari's user avatar
1 vote
2 answers
37 views

Trying to .add() one object to a Dexie db and two objects are getting added

Here is my current code. https://codesandbox.io/p/sandbox/compassionate-forest-pkx4wg?file=%2Fsrc%2Fcomponents%2FHomePage%2FHomePage.tsx%3A8%2C1 Reproduction Steps The HomePage gives the option to &...
luis garcia's user avatar
0 votes
0 answers
13 views

How to map 2 dimensional data from dexie table for e.g. graphical vizualization?

I'm developing an angular app and have used dexie for the indexdb used inmy app. This is working very well but now I want to extract some data and vizualize them by e.g ngx-charts. this._items = await ...
jerez69's user avatar
0 votes
0 answers
40 views

Dexie IndexedDB Combine multiple Where with anyOf and toArray

I have a Dexie/IndexedDB query where I need two selection criteria. I want to know if the fk_dog is equals any value in an array, this works fine: const children = await theTables.runTable ...
Cynthia's user avatar
  • 161
1 vote
0 answers
28 views

Remove [[Prototype]] : Object / From Array / DataCloneError Error Dexie indexDB Put

I am trying to save an array to indexDB via Dexie and I'm getting a DataCloneError. This is the layout of the array I've built (image below). The only thing I can see that is not a supported type ...
Cynthia's user avatar
  • 161
2 votes
1 answer
131 views

Dexie JS: very large IndexedDB but empty tables

I have an application that uses vanilla javascript to show an openlayers map, people tap on a location and can add pictures. I'm using Dexie JS to store the data between pages until the user is ready ...
kenhas's user avatar
  • 77
1 vote
1 answer
153 views

IndexedDB data gets deleted automatically

I'm using dexie with Angular 11 to access indexedDB, sometimes what happens is indexedDB data gets deleted automatically and tables are empty. It happens only with windows, in ubuntu or android it ...
Madara Uchiha's user avatar
0 votes
0 answers
42 views

Using svelte derived store with dexie liveQuery

I am using Dexie.js with svelte in a SPA my current setup is the following : Dexies calls are grouped in repos DB updates are watched with dexie liveQuery Svelte derived stores make the bridge ...
Poulpynator's user avatar
0 votes
1 answer
69 views

Why does the data output, when deploying to vercel, only work on one page routed with Next.js and at the same time and same prop on another but not?

I have tried... using React.js from my indexedDb and using Dexie.js as a helper to pass the entries from the _app.js to my details page. import { v4 as uuidv4 } from "uuid"; import { ...
hossi's user avatar
  • 23
0 votes
0 answers
58 views

Blood pressure data management with Dexie.js - how should the data be structured?

I'd like to practise Dexie and Nuxt and thought of a little app that collects blood pressure (BP) data. The idea is: measure the BP 3x a day (morning, noon, evening) each time measure the BP 3x in a ...
Robert Wildling's user avatar
0 votes
0 answers
53 views

Dexie promise in web worker never resolves/rejects

[SOLVED: See update at bottom] I am experiencing a weird problem with Dexie in web workers. I can't tell if the problem is being caused by Dexie, is a problem with IndexedDB, or has something to do ...
Steve Schafer's user avatar
1 vote
1 answer
161 views

Dexie not a function in where clause

I'm trying to query a Dexie DB to retrieve the top 25 most used items from a language-specific collection, below is the code and the issue I have found. TABLE Schema: myTable: ++id, name, ...
Javier's user avatar
  • 13
0 votes
0 answers
33 views

How to share instance of dexieDB with React app and service worker?

I am trying to access data in service worker of the instance that was created in react app, but i am not able to find a way to share instance, i can use indexedDB native API to get data from indexedDB ...
Sumair's user avatar
  • 103
0 votes
1 answer
129 views

Angular Dexie DB, updating Item

Updating an item logs correct, but old value persist I'm trying to update the value of my Dexie Db however the old value persist. This is from the parent component. async onEdited(tagItem: TagItem) {...
Persson_F's user avatar
3 votes
2 answers
750 views

In Angular, why is my PrimeNG table re-rendering after updating a row's values in indexedDB?

I have a PrimeNG table that takes an array of objects fetched from Dexie as data source. In my component's ngOnInit, I fetch the data from Dexie this way: db.myTable.toArray().then( items => { ...
rvrsev's user avatar
  • 166
0 votes
1 answer
136 views

Why have my DevTools stopped displaying my IndexedDB?

I am creating what I thought was a simple set of DB tables in Dexie: `class ClientCache extends Dexie { messages!: Dexie.Table<Message, string>; clientSettings!: Dexie.Table<ClientSettingType,...
TonyLB's user avatar
  • 11
0 votes
0 answers
41 views

JavaScript Duplicate Checking

I have a dataset that I add regularly to a Dexie database, which includes data like this: ... name: Bill Smith, age: 21, location: New York name: John Smith, age: 36, location: Los Angeles // These ...
rathian0419's user avatar
0 votes
1 answer
208 views

How to use useLiveQuery in JavaScript while writing to IndexedDB from WebAssembly

Is it possible use useLiveQuery from 'dexie-react-hooks' when writing to IndexedDB from WebAssembly (using Rexie)? I've tried implementing it, but useLiveQuery is not updating. I think this might be ...
a_b's user avatar
  • 1,868
1 vote
1 answer
285 views

pouchdb or alternative where I can control how much data stored locally?

In the design stage for an app that collects large amounts of data... Ideally, I want it to be an offline-first app and was looking to Pouchdb/Counchdb - However, the data needs to be kept for years ...
baradhili's user avatar
  • 514
1 vote
0 answers
295 views

IndexedDB error Unhandled rejection: AbortError: Transaction aborted

I am a trying to save a JSON object in IndexedDB with Dexie: var db = new Dexie ("List",); db.version(2).stores({ list2: "++id,name", Itemslist: JSON....
Michael's user avatar
  • 23
0 votes
0 answers
187 views

Failed to execute 'createObjectStore' on 'IDBDatabase'

I am trying to store a JSON object (100MB size) in google chrome indexedDB and getting this error: error: SyntaxError: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not ...
Michael's user avatar
  • 23
1 vote
1 answer
192 views

What types of keys are allowed in IndexedDB, and how are they ordered?

My app will use IndexedDB via Dexie, and I would like to use composite keys. (Dexie keys are the same as for IndexedDB.) What types of keys are supported by Dexie and IndexedDB, and how are they ...
Cris P's user avatar
  • 416
0 votes
1 answer
33 views

Dexiejs - Filtering returns single value

My dexiedb structure looks like below. const db = new Dexie('shipment-execution'); db.version(1).stores({ root: '++id,shipmentid,stopid', }) My IndexedDB will look like below | id| shipmentid| ...
Badhusha's user avatar
  • 108
0 votes
0 answers
170 views

Fetch live-updating data from an IDB (Dexie) using Vue.js

I am trying to display a live logs table using Vue(quasar)+Dexie. I managed to display the data using the basic example from the dexie doc page: export default { name: "Logs", setup()...
Imnotapotato's user avatar
  • 5,448
0 votes
1 answer
48 views

Maximum call stack size exceeded when syncing ArrayBuffer

I have a database which stores images (a thumbnail and a full size version) as ArrayBuffers. When the dexie-cloud addon tries to sync the changes, it throws an error. Thumbnails work fine because they ...
Brad Knode's user avatar
1 vote
1 answer
473 views

Dexie: How to get only one column in the result by column key? (simple array of values insted of objects)

I have this fetch query await useDatabase.data.where("ts").between(ms - 1000, ms).toArray(); I get the result properly but as an object of data. [ { "ts": 60.1875, ...
Imnotapotato's user avatar
  • 5,448
1 vote
0 answers
95 views

Chrome extension - Sync data between dexie.js and firebase

I'm using dexie.js in a vue powered chrome extension. I need to store some informations about the items available in a warehouse. Since dexie will not perist data if browser data are cleared, I'm ...
newbiedev's user avatar
  • 2,795
1 vote
1 answer
118 views

dexiejs query get slower overtime

So I am using Svelte+Vite with Dexiejs as my offline Db and Routify for the routes, when I go to a page that is making query to Dexiejs the response is pretty quick on the first request, but when I go ...
Malik's user avatar
  • 254
0 votes
1 answer
83 views

Why is only one of my Dexie queries updating in Svelte?

I have a svelte application that uses Dexie for data persistence. In my main component I have a child component that runs two liveQuerys to get the previous fixture and next fixture for a sports team. ...
NickH's user avatar
  • 117
3 votes
3 answers
6k views

Internal error opening backing store for indexedDB.open

I am getting this error logs in public environment, quite consistently for around 0.1% of the sessions. I am using Dexie. https://dexie.org/ class DexieDB extends Dexie { cacheData!: Table<...
Anurag's user avatar
  • 56
0 votes
1 answer
99 views

Problem with saving record keys with dots to indexeddb (dexie.js)

I'm currently working with dexie.js and I found a problem. When I create a new record with keys that includes dots it will automaticaly convert them into tree structured object. {"showing.text....
frostykitten's user avatar
1 vote
0 answers
49 views

Why IndexedDB store much larger size then my actual data

I have 7.1MB JSON data containing 30 base64 string. e.g. {'records: ["string_1", "string_2", ...]} If I save each record in a separate entry. IndexedDB might produce 56MB of data. ...
Kelvin Lee's user avatar
0 votes
1 answer
82 views

export indexDB throws error "storeNames parameter was empty"

can anyone please help me out, I'm new to Dexie (Angular) import Dexie from 'dexie'; import {ExportOptions, exportDB} from 'dexie-export-import'; const db = await new Dexie('myDB'); const blob = ...
Madara Uchiha's user avatar
0 votes
0 answers
98 views

Inconsistent performance of IndexedDB initialization

I'm playing with IndexedDB. My application has 5 DBs: Each DB contains from 1000 to 1000000 items in it. When the application starts I measure how long it takes to initialize the first DB. The result ...
George Chernov's user avatar
1 vote
0 answers
38 views

Getting list of databases from IndexedDB takes long (up to 1 min)

When I request a list of databases from IndexedDB, like this: await indexedDB.databases(); usially it takes a few millisecons to complete, but sometimes it takes up to 1 minute. Based on the Chrome ...
George Chernov's user avatar
1 vote
0 answers
369 views

How to handle IndexedDB with SSR (Remix)

I am creating an application which handles some data which shouldn't be sent over the network. I am using IndexedDB via dexie and dexie-react-hooks to store the information in the browser so I can use ...
Aaron Dale's user avatar
0 votes
0 answers
100 views

How to get data from Indexed DB using Dexie.js so that each time I am add data and I can get back them and show in html page in a list format?

Image of saving data into IndexedDB is as shown
Subhadip Saha's user avatar
2 votes
2 answers
994 views

How to track if dexie UseLiveQuery is finished

I want to display a loader while a UseLiveQuery is not finished and display a "not found component" if the UseLiveQuery has returned an empty array. Is there a simple way to do that? Thank ...
Omroboto's user avatar
2 votes
0 answers
256 views

Slow UPSERT performance through dexie.js

I have an application where I try to save a user's favorites in the indexedDB through the use of the dexie.js wrapper. I have little experience with the indexedDB, but the performance I'm seeing seems ...
vixducis's user avatar
  • 1,019
0 votes
1 answer
142 views

dexie's open method,neither secceed nor failed,y?

I'm using Dexie to store data in my frontend project,in a fortuitous situation,I found that the open function neither succeed nor failed. const v = this.DBInstance.version(version) .stores(...
ecnatsiDehTog's user avatar

1
2 3 4 5
8