After several rounds of conversations with the bot the number of events in tracker store rose to significant amount and this leads to high latency in the coming responses.
What is best way to maintain the response time because when server starts the response time lies ~300-600ms but after few hours it increases to ~8s - 12s , sometimes more.
Not able to find any solution for the problem.
Here is a snap of events number:
Our bot is selection based and on click of particular button it sends a specific payload that triggers custom action.
In custom action I am fetching various user details and setting the slots with the values received in custom action.
(just to check events) I have created a loop that runs 50 times and passes the same payload and triggers that custom action mentioned above.
Every time the custom action is new events are appended in the previous ones thus making the event data so large.
We have a short journey of 7-8 steps after that user comes again and flow starts again. I don’t want to store events for that user in memory after chat is done.
Is there any way to manage such large number of events in memory, because after a period of time it results in significant delay in response.