Comments (8)
Same here, I'm reading a /records/rec_id/node_id and it takes 300-700ms, however on the firebase profiler, it shows 0ms.
from firebase-php.
Looks to be a CURL issue, here are some stats from when I log with curl:
time_namelookup: 0.153
time_connect: 0.161
time_appconnect: 0.357
time_pretransfer: 0.357
time_redirect: 0.000
time_starttransfer: 0.408
----------
time_total: 0.408
from firebase-php.
@ova-adam so there is nothing to do?
from firebase-php.
@harding13 there is, CURL requests are very slow as you can see. Is this an issue of CURL or FB at the core?
from firebase-php.
I see it but i don't know how to solve it :)
from firebase-php.
Is this an issue with this library, firebase, or curl? This long lag doesn't happen if I curl a website like Google.com
If this can't be eliminated, this is a deal breaker for our project.
from firebase-php.
I choosed Firebase because of its speed. But if i must wait 0.7 sec for every query, maybe, i must switch to another technology (or another way of using FB)
from firebase-php.
@ova-adam @harding13 Since your issue the library has been also updated so the curl handle is re-used for consecutive requests, which should reduce your connection times to the firebase server for repeat queries.
A few other things that improved connection times drastically I've mentioned here: #68 (comment)
Related SO : https://stackoverflow.com/a/26568867/10728554
from firebase-php.
Related Issues (20)
- How to set the app or version
- how to set name in push?
- Push Parameters HOT 1
- FirebaseLib HOT 1
- Git push is removing firebase_php folder. HOT 1
- Firestore Usage HOT 1
- Cannot use Database and Auth together HOT 1
- firebase connection in php HOT 1
- Firebase created a new authentication HOT 2
- how to authenticate user using email and password
- i got "Permission denied" error
- firebase query "equalTo" doesn't work with "+" symbol HOT 1
- Setting value to 0 (number) is not possible HOT 1
- Credentials provided by firebase HOT 1
- No logging in firebaseLib
- I got 3 arduino devices with same code with same php code using this Lib but in firebase it only update 1 data not simultaneously those 3 devices it requires other device to be turn off so it can be updated HOT 5
- Getting unexpected error code 0/null/100
- Composer with php7.3 first time install issue: HOT 1
- Requirements? HOT 1
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-php.