Typesense Firestore Real-Time Update Query
TLDR DomijKu required help with real-time updates on frontend when backends changes occur. Jason, CaptainCodeman and Loic explained triggering updates via direct subscription to Firestore, cloud function triggers, and stream subscriptions. Loic recommended switching to Typesense for searches beyond 20 documents.
2
1
1
May 26, 2022 (17 months ago)
DomijKu
01:56 PMGot a bit desperate so here I am :)) Anyone use Search Firestore with Typesense extension and know how to "listen" for a collection update in Typesense and refetch data as soon as that happens? E.g. creating or deleting a document and updating the collection in real time, something like how Firestore's snapshot works? It of course works with a setTimeout delay and manually refetching, but surely that's not the way to do it..
Thank you!
Jason
02:36 PMDomijKu
02:39 PMJason
02:40 PMDomijKu
02:43 PM1
1
CaptainCodeman
11:37 PM1
May 27, 2022 (17 months ago)
Loic
04:46 AMFor real-time in your UI, you should get a stream subscription from firestore.
If you have to get results from Typesense (for technical or price reasons for example), you could trigger a call to Typesense with a periodic timer but it is a little hacky
DomijKu
05:44 AM1
Loic
04:07 PMMay 28, 2022 (17 months ago)
DomijKu
07:09 AMTypesense
Indexed 2779 threads (79% resolved)
Similar Threads
Realtime Updates with Typesense Database
Adrian inquired about realtime updates on the client side using typesense database, but struggled despite following the documentation. Kishore Nallan and Jason provided guidance, with CaptainCodeman clarifying the connection to firestore. Further debugging is necessary.
Handling Order of Firestore Events for Synchronization with Typesense.
Ross ran into an issue with Firestore events triggering out of order, causing synchronization inconsistency between Firestore and Typesense. With advice and input from Jason and Kishore Nallan, they implemented a debouncing solution using redis, ensuring that the latest Firestore data is synced to Typesense accurately.
Typesense and Firebase Integration Troubleshooting
Bobby struggled with getting data to Typesense from Firebase. After sharing his logs and settings screenshots, Jason helped him fix the path configuration and suggested ways to successful re-trigger a backfill. This resolved the issue.
User Queries About TypeSense Cloud and Firebase Integration
Loic had various queries about TypeSense Cloud and Firebase integration including modifying schema, existing documents, and geopoint and timestamp indexing. Kishore Nallan, Jason, and Harpreet provided clarifications and solutions.
Troubleshooting 409 Errors with Firestore to Typesense Cloud Function
Orion encounters 409 errors with `ext-firestore-typesense-search-indexToTypesenseOnFirestoreWrite` cloud function. Jason suggests possible solutions like querying Firestore on each change or tracking sync state in a collection. Both agreed on adding a config option. Orion proposed contributing a PR for the change.