Comments (5)
All joining is done client side. This doesn't improve the download/upload performance, although it is fairly performant about how it conducts joins/et al. Note that this optimizes writes as well as reads, pushing set()/update() ops back to the correct paths.
Cheers,
Kato
from firebase-util.
Got ya, so the joins are done client side.
What about the data coming back? Is that combined into a single payload or is it more of a promise array type deal?
from firebase-util.
Have you checked out any of the examples? They show the payload for each request.
from firebase-util.
I guess the answer to my question was:
"This doesn't improve the download/upload performance, although it is fairly performant about how it conducts joins/et al."
Wondering if you guys are ever going to kick this up to the server in the future?
In my example if Jim has 500 older messages he want's to browse through they all need to be queried through a promise array.
I'm sure there's got to be a tipping point somewhere... any idea at what point the browser will start to struggle waiting for that payload to resolve and build itself?
from firebase-util.
It's going to be highly subjective--really a product of the computer's computing capacity and memory. It seems like the best server-side solution would be to pre-compile the read data into a separate path. Some upcoming tools would assist with this.
The performant solution for large data would probably be a server-side component, such as a node.js script, which would monitor the data and compile the joined results for read. Then clients would only need to listen on the compiled path for the pre-joined and rendered data.
from firebase-util.
Related Issues (20)
- Paginate $key error HOT 1
- Paginate: error removeChild
- demo WSOD HOT 1
- Issue with $key in fb-util infinite scroll HOT 4
- Scroll to last option is required HOT 10
- Calling scroll.next() seems to take longer to return results after a few calls to it
- Angular 2 Pipes and NormalizedRef.toString() HOT 3
- Scroll not working on normalized collection HOT 1
- NormalizedCollection constructor error HOT 2
- bind() function in Firebase-util.js is not working in IE, Firebase.util.join() also not working throwing errors HOT 1
- TypeError: Cannot read property 'Scroll' of undefined HOT 4
- Can't join different values to the same path
- Node JS normalized collection HOT 1
- $remove on a NormalizedCollection throws an Exception HOT 2
- FireBase NormalizedCollection white screen HOT 2
- [Paginate] Using $key for sorting in the infinite scroll doesn't work
- When will it be ready for production? HOT 2
- Update to SDK 3.0 HOT 40
- NormalizedCollection orderBy HOT 1
- gulp bundle issue
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 firebase-util.