Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable using PostgreSQL as source of truth for indexer document data #509

Merged
merged 1 commit into from
Dec 16, 2023

Conversation

jfreda
Copy link
Contributor

@jfreda jfreda commented Dec 15, 2023

The indexer was still using Algolia as the source of truth for document data, which isn't ideal for v2 of the Hermes API — effectively, this could result in race conditions where depending on when the indexer indexes a document vs. when changes like approving a document make it to Algolia in v2 of the API. This PR improves this by enabling the indexer to use PostgreSQL as the source of truth for document data.

New config attribute

indexer {
  ...
  use_database_for_document_data = true
  ...
}

@jfreda jfreda requested a review from a team as a code owner December 15, 2023 18:10
@jfreda jfreda added the enhancement New feature or request label Dec 15, 2023
@jfreda jfreda merged commit f1e10dc into main Dec 16, 2023
2 checks passed
@jfreda jfreda deleted the jfreda/use-db-for-indexer-doc-data branch December 16, 2023 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants