SHOW ENGINES
this command shows what I have 9 store engines out of the box.
MEMORY Hash based, stored in memory, useful for temporary tables InnoDB (DEFAULT) Supports transactions, row-level locking, and foreign keys
PERFORMANCE_SCHEMA Performance Schema
MyISAM MyISAM storage engine
MRG_MYISAM Collection of identical MyISAM tables
BLACKHOLE YES /dev/null storage engine (anything you write to it disappears)
CSV CSV storage engine
ARCHIVE Archive storage engine
It has workaround for enable storage engine in DataContext in EF code first solution using migration.
Solution:
- Using migrations (Instead of EnsureDatabaseCreated()) you can set innodb engine per db-session. (https://dev.mysql.com/doc/refman/5.7/en/storage-engine-setting.html)
{
migrationBuilder.Sql("SET default_storage_engine=INNODB");
//Another migration code is generated here
}
But then, you can generate data with EF fluent interface code and only one command will be mode all this data to in memory database to fast performance calculations.
ALTER TABLE mytable ENGINE=
MEMORYThank you, Oracle for this convenience.
It is look like a point in strategy where I can to upload normalized graph data from Arango DB to csv and then to the memory to load all data in GPU.
No comments:
Post a Comment