I have a list of Person objects, currently I use 5 different instances of associative structures (std :: map / multimap, std :: unordered_map) to provide efficient queries for various static results, for example: all people within the age of 20-40 years, or all people named John, etc.
As the Person structure is evolving, I find that I have to deal with adding a new index type manually, figuring out what the correct structure should be for it, etc., and, in general, getting it is very uncontrollable.
In the future, it seems that queries will become more and more complex. - We applied the DB / SQL approach, it is too slow for our needs, at the moment the current solution is fast enough, but it is becoming very unmanageable from the point of view of software development.
My question is: are there libraries or solutions that provide collective indexes (in memory) for a list of objects in a controlled manner?
user814786
source share