I often received messages objects and for each of them I need to query the database in order to achieve some additional information from one database table. Since we are performing many requests to dabatase that it's very inefficient.
So, how I could improve the performance ? I think I need to persist the table data to a local
list or hashtable and update it when some modifications are happened in the database.