I am trying to find a good way to handle below scenario in C++.
When we start service on server, a parameters table like below will be initialized based on data in database.
ID, filed_1, field_2, .... , field 50
100abc, ***, ***, ...., ***
120def, ***, ***, ...., ***
...
...
500xyz, ***, ***, ..., ***
Fields/Columns: around 50. Count and format of fields are fixed. All fields' types are int, double or char* (not very long char*).
Records/rows: at most 200. Based on the data, number of records will be different every time.
ID is unique.
During calculation, the parameter table will be read and updated for 500 times/per second. (search by id & field name, I assume)
Low latency is important in the system.
What will be best data structure to be used in such scenario?
In case there are methods which can greatly improve efficiency if there is no write(update) operation, please also kindly share the information. I think there are workarounds to do no update on the parameter table.
Thank you so much.