CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • MySQL engine type for civicrm_task_action_temp
Pages: [1]

Author Topic: MySQL engine type for civicrm_task_action_temp  (Read 843 times)

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
MySQL engine type for civicrm_task_action_temp
November 09, 2010, 10:30:48 am
I was just looking at a Joomla! database and noticed that one of the CiviCRM tables used MyISAM rather than InnoDB, and that puzzled me even though it is a temp table. It's created in CRM/Contact/Form/Task.php by

$sql = "CREATE TABLE {$form->_componentTable} ( contact_id int primary key) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci";

Is there a good reason to choose MyISAM here or can I submit a patch to make the storage engine always InnoDB for CiviCRM?
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: MySQL engine type for civicrm_task_action_temp
November 09, 2010, 11:17:03 am

1. its a temp table and using a fast engine is good (ideally we should use memory, but its has some limitations)

2. any specific reason we should only stick to innodb in all cases?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: MySQL engine type for civicrm_task_action_temp
May 10, 2011, 07:15:09 am
This was more of a consistency issue. Using a different storage engine that does not support transactions, and having to remember that for anything that ends up using those tables in the future, just seemed like a potential support trouble spot. I haven't checked the code to see if any transaction support is assumed at present. If it is, the error would only show up very intermittently.
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • MySQL engine type for civicrm_task_action_temp

This forum was archived on 2017-11-26.