Increased maximum load chunk size to 50000 to allow efficient loading of large caches.
Clarified the relation between hash list size and cache limit. git-svn-id: http://yate.null.ro/svn/yate/trunk@4507 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
b6022e03b9
commit
7b449282d6
|
@ -15,13 +15,13 @@
|
|||
;ttl=
|
||||
|
||||
; limit: integer: Maximum number of stored cache items
|
||||
; This value must be at least the power of 2 of cache size, e.g. for
|
||||
; This value must be at least the power of 2 of cache hash list size, e.g. for
|
||||
; cache size 5 limit must be at least 25
|
||||
; This parameter is applied on reload and can be overridden in cache sections
|
||||
;limit=
|
||||
|
||||
; loadchunk: integer: The number of items to load in a database request
|
||||
; Minimum allowed value is 500, maximum allowed value is 10000
|
||||
; Minimum allowed value is 500, maximum allowed value is 50000
|
||||
; Set it to 0 to load the whole cache using a single database request
|
||||
; This parameter is applied on reload and can be overridden in cache sections
|
||||
; NOTES for non 0 value:
|
||||
|
|
|
@ -291,9 +291,9 @@ static inline unsigned int adjustedCacheLoadChunk(int val)
|
|||
{
|
||||
if (val <= 0)
|
||||
return 0;
|
||||
if (val >= 500 && val <= 10000)
|
||||
if (val >= 500 && val <= 50000)
|
||||
return val;
|
||||
return val < 500 ? 500 : 10000;
|
||||
return val < 500 ? 500 : 50000;
|
||||
}
|
||||
|
||||
// Show cache item changes to output
|
||||
|
|
Loading…
Reference in New Issue