You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I now need to paginate through a list of data from the database, but I've found that each query returns unnecessary data attributes. For example, I only need the 'id' and 'title', but Dexie also returns 'content', resulting in a significant memory footprint. Is there any method in Dexie to directly filter out the data attributes I need from the database?
.toArray(function(people) {
var emails = people.map(function(person) {
return person.email;
});
console.log(emails);
})
The 'toArray' method seems to load all data attributes into memory before filtering them each time. I wish for all data operations to be performed directly in the database instead.
May I ask if it's achievable?
thanks!!!
The text was updated successfully, but these errors were encountered:
Bloodcapillary
changed the title
I now need to paginate through a list of data from the database, but I've found that each query returns unnecessary data attributes. For example, I only need the 'id' and 'title', but Dexie also returns 'content', resulting in a significant memory footprint. Is there any method in Dexie to directly filter out the data attributes I need from the database?
I need some advice and assistance,Could you help me, please?
Mar 27, 2024
I now need to paginate through a list of data from the database, but I've found that each query returns unnecessary data attributes. For example, I only need the 'id' and 'title', but Dexie also returns 'content', resulting in a significant memory footprint. Is there any method in Dexie to directly filter out the data attributes I need from the database?
.toArray(function(people) {
var emails = people.map(function(person) {
return person.email;
});
console.log(emails);
})
The 'toArray' method seems to load all data attributes into memory before filtering them each time. I wish for all data operations to be performed directly in the database instead.
May I ask if it's achievable?
thanks!!!
The text was updated successfully, but these errors were encountered: