Actions
Task #5223
openmigrate sinedon to be compatible with InnoDB sql engine
Status:
Assigned
Priority:
Normal
Assignee:
Category:
-
Target version:
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.
Updated by Anchi Cheng about 7 years ago
- Related to Task #5318: avoid calling MySQLdb directly to connect when sinedon.cfg is read as input kwargs added
Updated by Anchi Cheng about 7 years ago
The default is still MyISAM. To switch to create new tables in InnoDB, you need to
- change /etc/my.cnf default_storage_engine to InnoDB
- restart mysql service
- modify your working sinedon.cfg to include at global level
engine: InnoDB
Updated by Neil Voss over 6 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.
Updated by Neil Voss over 6 years ago
- Related to Feature #5951: Create a MariaDB Galera multi-master Cluster using Docker added
Updated by Anchi Cheng over 6 years ago
No, I have not looked at Foreign Key, yet.
Actions