Giter Club home page Giter Club logo

Comments (8)

ova-adam avatar ova-adam commented on July 23, 2024

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.

ova-adam avatar ova-adam commented on July 23, 2024

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.

harding13 avatar harding13 commented on July 23, 2024

@ova-adam so there is nothing to do?

from firebase-php.

ova-adam avatar ova-adam commented on July 23, 2024

@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.

harding13 avatar harding13 commented on July 23, 2024

I see it but i don't know how to solve it :)

from firebase-php.

ova-adam avatar ova-adam commented on July 23, 2024

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.

harding13 avatar harding13 commented on July 23, 2024

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.

mastef avatar mastef commented on July 23, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.