Hello I have this scenario that im trying to find the best algorithm to implement it . Im getting as input array that each element contains key value object
Im my application I need to hold some kind of table structure in memory (fetched from db ) . Each row contains list of values and one more column that represent the name of all the values in that raw. For example:
PKG_TYPE | CHECKED | SUSPEND | FREE pkgFree , 1,0,0 pkgPay , 1,1,1 pkgDemo,0,1,1 all the numbers in this example are primary keys so when im getting the input array I will get : inputArr =>checked,1 inputArr =>suspend,0 inputArr =>free,0
and according to these values I will get the service name in this case pkgFree.
My question is what is the best way to implement the in memory table ( it will contains like 300-500 raws ) And also how to perform this patch from this table when input is arriving.