Details
-
Improvement
-
Resolution: Fixed
-
Medium
-
4.0.0alpha1
-
None
Description
Hi
in eZSolr::AddObject() we have:
function addObject( $contentObject, $commit = true ) { (...) if ( $commit ) { // For every 1000 time, call optimize if ( mt_rand( 0, 999 ) == 1 ) { $this->optimize(); } } }
I think the running of optimize() should be controlled a bit better as it can cause a quite big burden on the server. For many setup's I would imagine that it would be way better to only run optimze() one or two times a day at dedicated times in an crontab.
It is also misleading that the $commit parameter actually runs an optimize() operation, and not only a commit().....
Attachments
Issue Links
- relates to
-
EZP-13930 Removing an object forces an optimize()
- Closed