Refactor event sync worker
What does this MR do and why?
Refactor event sync worker
This commits adds strategy pattern to sync tables from postgresql to clickhouse. Also onboards event sync strategy for events table.
Changelog: other
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Setup ClickHouse https://docs.gitlab.com/ee/development/database/clickhouse/clickhouse_within_gitlab.html#gdk-setup
- Run
ClickHouse::EventsSyncWorker.new.perform
in rails console
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #427738
Edited by Harsimar Sandhu