Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I need some advice and assistance,Could you help me, please? #1930

Open
Bloodcapillary opened this issue Mar 27, 2024 · 0 comments
Open

I need some advice and assistance,Could you help me, please? #1930

Bloodcapillary opened this issue Mar 27, 2024 · 0 comments

Comments

@Bloodcapillary
Copy link

Bloodcapillary commented 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!!!

@Bloodcapillary 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant