Skip to content

Scaffolding huge database (3235 tables) takes 12 min compared to MySql.EntityFrameworkCore with 1 min #2005

@dietrichha

Description

@dietrichha

Hello,

the performance of scaffolding in Pomelo.EntityFrameworkCore.MySql is very slow compared to MySql.EntityFrameworkCore. Both provider succeed in scaffolding a huge database with 3235 tables.
Only the time to complete the operation differs extremly. Pomelo.EntityFrameworkCore.MySql takes 12 min and MySql.EntityFrameworkCore takes 1 min for the scaffolding operation. I would not complain at all, but i wanted to report this behaviour, as the difference is huge, and could be a simple bug.

To Reproduce
Pomelo.EntityFrameworkCore.MySql:

dotnet ef dbcontext scaffold "name=Connection" Pomelo.EntityFrameworkCore.MySql --no-onconfiguring
--context Context --context-dir ..\Project\Data
--output-dir ..\Project\Model --force
--namespace "Project.Model" `
--context-namespace "Project.Data"

MySql.EntityFrameworkCore:

dotnet ef dbcontext scaffold "name=Connection" MySql.EntityFrameworkCore --no-onconfiguring
--context Context --context-dir ..\Project\Data
--output-dir ..\Project\Model --force
--namespace "Project.Model" `
--context-namespace "Project.Data"

Expected behavior
I would expect Pomelo.EntityFrameworkCore.MySql to take double the time of another db provider, but not 12x.

Technical details (please complete the following information):

  • Database server version: MySQL 8.0.39
  • Operating system: Windows 11
  • Pomelo.EntityFrameworkCore.MySql version: 9.0.0-preview.3.efcore.9.0.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions