feat: migrate feeds to use clickhouse client #3963
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
🤖 Generated by Copilot at 665058f
This pull request updates the feeds worker to use the new
@hey/clickhouse
package for querying clickhouse data. This improves the performance and reliability of the feed algorithms and simplifies the configuration of the environment variables and the deployment. The old clickhouse REST client and the related code and files are removed.Related issues
Fixes # (issue)
Type of change
Explanation of the changes
🤖 Generated by Copilot at 665058f
@hey/clickhouse
package (link, link)createClickhouseClient
function from the@hey/clickhouse
package in the algorithm files (link, link)clickhouseQuery
function that was a wrapper around the old REST client (link, link, link)heyMostInteracted
andheyMostViewed
algorithms to use the new clickhouse client and theJSONEachRow
format for the query results (link, link, link)Env
interface and thewrangler.toml
file to use theCLICKHOUSE_PASSWORD
environment variable instead of theCLICKHOUSE_REST_ENDPOINT
(link, link)CLICKHOUSE_PASSWORD
environment variable (link)Emoji
🔐🚀📦