-
Committer:
Olivier Dony
-
Date:
2011-02-08 14:09:24 UTC
-
Revision ID:
odo@openerp.com-20110208140924-0bgxqgt1oyrxwz3z
[FIX] osv_memory: expire records only based on age by default + provide configurable settings
This revision introduces two new config parameters and the corresponding
server startup parameters:
- osv_memory_count_limit: limit on number or records in each osv_mem table
- osv_memory_age_limit: limit on maximum age of records in each osv_mem table
The default values have been changed to count=False (disabled), age=1 (hour),
so that in the default config the server will only expire osv_memory records
that are 1 hour old or more, avoiding problems related with some
osv_memory classes that instantiate a large number of short-lived objects.
A corresponding set of YAML tests has been added to test the proper behaviour
of the new parameters, and check the various use cases.