Skip to content

Supabase:Algolia Sync #638

Answered by inian
dommarr asked this question in Questions
Jan 29, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

We will launch Supabase functions during the last week of March which is perfect for this use case, so stay tuned!

In the meantime, you could write a database function using pg_cron and psql_http which is installed in your Supabase DB to trigger the sync. I am assuming there is a way to update the Algolia index via a REST API call. Or a typical cron job as you mentioned would work too.

If you want the index to be updated in realtime, you can use our client libraries to subscribe to changes and send it to Algolia as they arrive. This would require the script to be running continuously on a server somewhere (until we launch functions).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dommarr
Comment options

@inian
Comment options

inian Feb 1, 2021
Maintainer

Answer selected by dommarr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants