VALUE_SEPARATOR = "\ 1",
BULK_INSERT_COUNT = 200,
BULK_INSERT_HIGH_COUNT = 200,
- // special value for mail bulk inserts to avoid
- // potential duplication, assuming a smaller number reduces number of queries
- // by some factor, so some tradeoff. CRM-8678
- BULK_MAIL_INSERT_COUNT = 10,
QUERY_FORMAT_WILDCARD = 1,
QUERY_FORMAT_NO_QUOTES = 2;
$recipients->phone_id,
);
$count++;
- if ($count % CRM_Core_DAO::BULK_MAIL_INSERT_COUNT == 0) {
+ if ($count % CRM_Mailing_Config::BULK_MAIL_INSERT_COUNT == 0) {
CRM_Mailing_Event_BAO_Queue::bulkCreate($params, $now);
$count = 0;
$params = array();
$targetParams[] = $field['contact_id'];
$count++;
- if ($count % CRM_Core_DAO::BULK_MAIL_INSERT_COUNT == 0) {
+ if ($count % CRM_Mailing_Config::BULK_MAIL_INSERT_COUNT == 0) {
$this->writeToDB(
$deliveredParams,
$targetParams,
const OUTBOUND_OPTION_MOCK = 4; // seems to be the same as 2, but also calls Mail's pre/post hooks? - see packages/Mail
const OUTBOUND_OPTION_REDIRECT_TO_DB = 5;
+ // special value for mail bulk inserts to avoid
+ // potential duplication, assuming a smaller number reduces number of queries
+ // by some factor, so some tradeoff. CRM-8678
+ const BULK_MAIL_INSERT_COUNT = 10;
+
}