Coder Social home page Coder Social logo

Comments (5)

brumm avatar brumm commented on June 7, 2024 1

Hey,

Sorry, I was meaning to create a PR a couple of days ago but life got in the way.
The changes are looking good! Can confirm that it adds all documents in one transaction. Thanks!

from react-firebase.

indiepaul avatar indiepaul commented on June 7, 2024 1

Hey,
I am still experiencing this behavior when I have a where clause in my statement
I'm using v0.5.4

<FirestoreCollection path="/users" where={{ field: 'userId', operator: '==', value: id }}>
    {data => {
      console.log(data)
    }}
</FirestoreCollection>

from react-firebase.

rakannimer avatar rakannimer commented on June 7, 2024

Hey @brumm,

Thanks for reporting this and investigating it 👍

I think you're right it should do it in one transaction instead of one for each document.

If you have time, a PR would be very much appreciated !

Otherwise, I will look at this as soon as I have the time to.

Cheers !

from react-firebase.

rakannimer avatar rakannimer commented on June 7, 2024

Can you try 0.4.0 and let me know if it's acting as you expect ?

Cheers :)

from react-firebase.

manoadamro avatar manoadamro commented on June 7, 2024

Hey,
I am still experiencing this behavior when I have a where clause in my statement
I'm using v0.5.4

<FirestoreCollection path="/users" where={{ field: 'userId', operator: '==', value: id }}>
    {data => {
      console.log(data)
    }}
</FirestoreCollection>

same issue here, this is spamming so much that the event loop is getting blocked up and my 500ms time outs are taking 5-10 seconds.

from react-firebase.

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.