I need to maintain a 200 entries, 12 column table at extremely high speed, can I simply use boost multiindex to cutoff the sql overhead?
Has anyone ever tried to do this? What are the cons and pros of such a solution?
thanks
I need to maintain a 200 entries, 12 column table at extremely high speed, can I simply use boost multiindex to cutoff the sql overhead?
Has anyone ever tried to do this? What are the cons and pros of such a solution?
thanks
If you no need to use T-SQL and you no need in benefits of full SQL server, then you could use multi_index
with no problems. Additionally may be you will want to use custom allocator for your records (pool_allocator
or something else).
A multi-index container will be much faster than a SQL table under certain circumstances:
For best performance you will need to set up indexes on any fields you will be searching, obviously. If you need to look at multiple fields use a composite key, since you can't use two separate indexes together.