Replies: 3 comments 7 replies
-
@dilab Have you thought about using projectors and projections to aggregate data into more convenient form for your report generation process? |
Beta Was this translation helpful? Give feedback.
-
Ah, okay. So that presents a problem indeed. Well, when you figure out a solution, please care to post it here if possible so we can all learn from it! :) Best of luck! |
Beta Was this translation helpful? Give feedback.
-
A separate DB is a common solution for this scenario and a good one. The beauty of the projections is that you can create tables (etc.) the way you need for the reports and create better indexes to handle the query load. And as you having performance issues on MySQL, check if the indexes are really being used (it can be tricky). |
Beta Was this translation helpful? Give feedback.
-
Our event stored(
stored_events
table) has grown to12861457
records. which is in 9.9 GiB in size.We are facing a challenge when generating some reports.
It will need to read all the events of an aggregate and build the reports (this is correct way of doing it). However due to the size of the data, it has become slow, and it also jams the MySQL, because I have a report server (which spins up 10 workers) to speed up the report generation.
My Question is what I can do to optimize it?
Beta Was this translation helpful? Give feedback.
All reactions