![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||
| ||||
|
|
hi, i'm using the BerkeleyDB perl module with berkelydb 4.2. i am have an application that stores images of about 40K each. and often, there will be concurrent (?) writes, but not to the same key... (forgive my terminology if off) |
|
my current env is: my $env = new BerkeleyDB::Env -Cachesize => 131072, -Flags => DB_CREATE | DB_INIT_LOCK | DB_INIT_MPOOL; with -PageSize => 65536 using BerkeleyDB::Hash my first question is about -Page and -Cache size. do these seem reasonable values? or can i optimize? i cant find too much docs about larger db entries. |
|
2nd question about locking: i tried switching to BerkeleyDB::Btree because entries with similar keys will tend to be requested at the same time. |
|
however, it seems that when multiple writes (to different keys) occur at near the same time, some just fail. i tried changing the env flags to: -Flags => DB_CREATE | DB_INIT_MPOOL | DB_INIT_CDB but same problem. must i acquire a lock on the entire file? any help or direction to pertinent docs is appreciated, |
#3
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |