I’d love feedback on a strategy for quick task search: I am thinking of storing all tasks data in a text file on a server rather than make individual API calls. Id like to know if anyone has done this or if its a sub-optimal strategy.
Here’s the context: Im developing a chatbot that provides a list of tasks during conversation. Unfortunately, searching Asana by task name can take about 20 seconds or more from the API to return a list of tasks that match the query. Id like something quicker. Id also like more control over the number of matches per search query.
So, I was going to set up a separate flask script that downloads all the task names and GIDs about every 3 hours onto a text file. That way, during a chatbot session, the bot has much quicker access to names and can respond at conversational speed. Id also like more control over the search quality than currently provided by Asana’s current API.
The tasks don’t really get updated more than once a day, so it works for my purposes.
Is this a sound strategy? Am I missing something or doing task search wrong?
Thanks for any feedback!