Project

General

Profile

Actions

Task #5223

open

migrate sinedon to be compatible with InnoDB sql engine

Added by Anchi Cheng over 6 years ago. Updated over 5 years ago.

Status:
Assigned
Priority:
Normal
Assignee:
Category:
-
Start date:
09/20/2017
Due date:
% Done:

0%

Estimated time:
Deliverable:

Description

This will open up the possibility of several features that helps database management.


Related issues 2 (1 open1 closed)

Related to Appion - Task #5318: avoid calling MySQLdb directly to connect when sinedon.cfg is read as input kwargsClosedAnchi Cheng11/16/2017

Actions
Related to Appion - Feature #5951: Create a MariaDB Galera multi-master Cluster using DockerAssignedNeil Voss08/16/2018

Actions
Actions #1

Updated by Anchi Cheng over 6 years ago

  • Related to Task #5318: avoid calling MySQLdb directly to connect when sinedon.cfg is read as input kwargs added
Actions #2

Updated by Anchi Cheng over 6 years ago

The default is still MyISAM. To switch to create new tables in InnoDB, you need to

  1. change /etc/my.cnf default_storage_engine to InnoDB
  2. restart mysql service
  3. modify your working sinedon.cfg to include at global level
    engine: InnoDB
    
Actions #3

Updated by Neil Voss over 5 years ago

Anchi, have we done anything to address the FOREIGN_KEY aspect of InnoDB

CREATE TABLE Orders (
    OrderID int NOT NULL,
    OrderNumber int NOT NULL,
    PersonID int,
    PRIMARY KEY (OrderID),
    FOREIGN KEY (PersonID) REFERENCES Persons(PersonID)
);

ALTER TABLE AcquisitionImageData
ADD FOREIGN KEY (`REF|SessionData|session`) REFERENCES SessionData(DEF_id); 

I am trying to learn the ins and outs of InnoDB vs. MyISAM and what I can tell it looks we'll need to connect the tables using the FOREIGN KEY flag, especially if we want the multi-master setup to work. Otherwise, it wouldn't know how to properly connect the tables together when locking rows.

Actions #4

Updated by Neil Voss over 5 years ago

  • Related to Feature #5951: Create a MariaDB Galera multi-master Cluster using Docker added
Actions #5

Updated by Anchi Cheng over 5 years ago

No, I have not looked at Foreign Key, yet.

Actions

Also available in: Atom PDF