Pomelo.EntityFrameworkCore.MySql
Pomelo.EntityFrameworkCore.MySql copied to clipboard
Possible issues if NDBCluster engine is used
The issue
I am wondering what kind of issues we might have if we use NDBCluster engine? I understand that NDBCLUSTER is not within supported engines and I guess there are no plans for it. As an example regarding the limitations I see that only read commited
isolation level is supported. How this can affect migrations?
Further technical details
We have tried to test migrations over NDBCluster. What we did:
- Always set maxLength for string columns (text type is not supported)
- Set on query execution
engine=NDBCLUSTER
at Db level.
We experience only one issue when running the migrations. On first run, everything runs properly without issues. However, when you try to re-run migration we see in the output Table x already exists
. It looks like runner doesn't see Migrations table and rows within it.
I hope it will help to understand and mitigate issues if someone will decide to go with NDBCluster.