Problems setting cache size,
694662Apr 5 2009 — edited Apr 5 2009Hi,
I hope I m in the right category for this question:
I m reading in a csv table, and putting it in one primary database ( DB_QUEUE )
and several secondary databases ( DB_BTREE ). I m using the Berkeley DB 4.7
for with C++. For the primary database i leave the standart cache size, for the secondary
databases I want to use 16mb:
unsigned long cache_byte= (1024*1024*16);
sec[a]->set_cachesize(0,cache_byte,1)
sec[*] are the secondary databases
and the cache size is set before opening the databases.
The problem is when i run the programm it allocates more and more memory,
but it should just use a little more than a times 16 mb.
Can somebody help me ?