Comments (6)
Actually you can do it easily with the filterBy
option:
selectAll({ filterBy: entity => entity.tags.includes(tagId) })
As for the performance, I don't think there should be a significant problem. Browsers are highly optimized when it comes to for
loops. Did you experience a performance issue?
from akita.
Agree, but I think it's hard to develop something that will satisfy all cases.
from akita.
Thanks. You are right, this might be a case of premature optimization. It does have its place though, when you handle larger amounts of normalized data, especially on less powerful clients.
from akita.
I think that your case is very good example for the document @j2L4e then should we close this issue?
from akita.
Yes. Closing for now.
from akita.
There's Relational Pouch so if the store is persisted to pouchdb it might be a good solution performance wise. Hoping to get time to play with it soon.
from akita.
Related Issues (20)
- Please publish the recently merged Angular 14 fix HOT 11
- docs site is outdated HOT 1
- Compile errors after upgrading to Akita 8.0.0 HOT 2
- sample-app deployment from the docs is outdated
- Loading state is set to `false` unexpectedly. HOT 1
- Angular schematics bug HOT 4
- The wrong rxjs peerDependency for >=8 version HOT 2
- Removal of property does not have any effect HOT 1
- There is no CLI documentation
- Can't install @datorama/akita for Angular 15.2.8. HOT 14
- Query select() – returns incorrect state value, once store update is called synchronisly from query subscription
- Package "@datorama/akita" was found but does not support schematics.
- Issue while updating property of entity
- Query select fires twice and collects observables
- Duplicate entities returned by EntityQuery
- In new angular v16 i'm getting ERROR TypeError: this.userQuery.select is not a function HOT 2
- Missing Configuration Changes For Angular 17 HOT 2
- EntityStore - Store reset does not emit entityAction
- When the akita store is destroyed, it is not initialized again
- `upsertMany` does not function correctly in class-based entity stores
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from akita.