Seems like a good use case for :persistent_term. You could add a GenServer to your app that, on boot, hits the database, looks up the values, and then places them in :persistent_term which provides extremely fast lookups.
Seems like a good use case for :persistent_term. You could add a GenServer to your app that, on boot, hits the database, looks up the values, and then places them in :persistent_term which provides extremely fast lookups.