Giter Site home page Giter Site logo

Comments (11)

Haroenv avatar Haroenv commented on May 30, 2024

do you mean an algolia query or firebase query? how are you searching?

from firestore-algolia-search.

nicolopadovan avatar nicolopadovan commented on May 30, 2024

do you mean an algolia query or firebase query? how are you searching?

I mean Algolia query, and Iā€™m currently using Instasearch to perform queries.

from firestore-algolia-search.

Haroenv avatar Haroenv commented on May 30, 2024

there's no logic to do a firebase query on every search query, is it possible you are doing that code manually in your frontend?

from firestore-algolia-search.

nicolopadovan avatar nicolopadovan commented on May 30, 2024

there's no logic to do a firebase query on every search query, is it possible you are doing that code manually in your frontend?

In fact, I thought so: but by removing the extension, the usage stops increasing, while I can still query through the already present records. As soon as I link the extension again, however, the usage starts increasing again.
I am using infinite scrolling, if this info can be helpful at all.

from firestore-algolia-search.

Haroenv avatar Haroenv commented on May 30, 2024

Sorry, I'm not sure how the two can be related. Do you maybe mean that every time you make a change in the firebase data it will incur a read of that data, as it needs to be updated in algolia?

from firestore-algolia-search.

nicolopadovan avatar nicolopadovan commented on May 30, 2024

Sorry, I'm not sure how the two can be related. Do you maybe mean that every time you make a change in the firebase data it will incur a read of that data, as it needs to be updated in algolia?

No, I am not editing the Firestore database at all while querying.
Also, I noticed that even after I removed the extension the problem persists, but I am absolutely sure that I am not reading the data from my client (there isn't any code at all that reads the database in my whole app).
Whenever I query data from Algolia, the FIrestore usage increases, and it's not related to my client or to my own functions (there isn't any).

from firestore-algolia-search.

Haroenv avatar Haroenv commented on May 30, 2024

search doesn't pass through firebase, so I don't know what can explain this. Do you have the code somewhere that it can be tried out (you can erase the credentials)

from firestore-algolia-search.

nicolopadovan avatar nicolopadovan commented on May 30, 2024

search doesn't pass through firebase, so I don't know what can explain this. Do you have the code somewhere that it can be tried out (you can erase the credentials)

Here it is: https://github.com/nicolopadovan/PublicRepo/tree/dev

I moved all the algolia-related data to this project, which doesn't even import Firebase at all, and I tried using it with my API key etc, and the Firestore usage still increased.

To use it, just download it and then run pod install in its directory from the terminal.

from firestore-algolia-search.

Haroenv avatar Haroenv commented on May 30, 2024

cc @VladislavFitz it's iOS

from firestore-algolia-search.

smomin avatar smomin commented on May 30, 2024

hello @nicolopadovan, are you still encountering the extra reads on your firestore db?

from firestore-algolia-search.

nicolopadovan avatar nicolopadovan commented on May 30, 2024

hello @nicolopadovan, are you still encountering the extra reads on your firestore db?

Hello @smomin
Finally, after basically rebooting everything (intended as deleting and re-creating the projects both on Algolia and Firebase and then bridging them together), I am not getting extra reads anymore. I don't know what could have caused the issue, but luckily it appears to be gone.

from firestore-algolia-search.

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.