PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
21.24k stars 1.26k forks source link

Data exports: Fine-tuning historical export batch sizes #12046

Open macobo opened 2 years ago

macobo commented 2 years ago

Is your feature request related to a problem?

Exports can be slow. One area to fine-tune is how many events are exported in a given "batch" which is currently 500.

The ideal number depends on a few factors:

Describe the solution you'd like

Allow specifying the batch size default in the plugin source code.

Describe alternatives you've considered

Additional context

cc @yakkomajuri who worked on exports previously for thoughts

Thank you for your feature request – we love each and every one!

yakkomajuri commented 2 years ago

Update the issue name just for clarity.

I think allowing devs to specify batch sizes is valid. Two considerations though:

  1. We should specify a clear max and min
  2. It's important to note that the limiting factor here might become the plugin execution time. Some export plugins already take 10-20s to run (q: for real or are metrics skewed because of asynchronous stuff?) so increasing the batch sizes a lot might be fine from the perspective of the third party service but not from the plugin execution limit side
posthog-bot commented 1 day ago

This issue hasn't seen activity in two years! If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in two weeks.