dbTalk Databases Forums  

Environment Settings vs Database Settings

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Environment Settings vs Database Settings in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Peter
 
Posts: n/a

Default Environment Settings vs Database Settings - 04-12-2006 , 04:16 AM






Hello,
a newbie question- I confess ;-)...

It is possible to specify the number of caches and cachesize in the
EnvironmentConfig as well as in the DatabaseConfig.

- What sense do the EnvironmentConfig settings wrt. caching make if I
can make the same settings in the DatabaseConfig? At first glance it
seems redundant- where is the difference?

- It seems to me that if I open a Database in an Environment, the cache
settings of the Environment are not used in the Database(?)

- Is there a way (aside from the manual way of get/set) to inherit the
cache settings of the Environment to the Database in that specific
Environment?

- What is the purpose of the cache-count? Does each concurrent user
need his own cache?

Thanks for any hints you could give!

Regards,

Peter


Reply With Quote
  #2  
Old   
Ron
 
Posts: n/a

Default Re: Environment Settings vs Database Settings - 04-17-2006 , 01:33 PM






Hi Peter,

Quote:
- What sense do the EnvironmentConfig settings wrt. caching make if I
can make the same settings in the DatabaseConfig? At first glance it
seems redundant- where is the difference?
In general, if you have defined your own environment then you would NOT
set the same parameter setting at the database level. You could set
them at the database level if you are not working with your own
Berkeley DB environment.

Because databases opened within Berkeley DB environments use the cache
specified to the environment, it is an error to attempt to set a cache
in a database created within an environment.

Ron



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.