-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize hangs and stops responding. #27301
Comments
@leniency What is the size of your model? For example, how many entity types? Average number of properties per entity type? |
It's probably medium-small-ish in size.
There are maybe 15 or so keyless views in there as well. |
@leniency Is it possible to create a project you can share with us that reproduces this behavior so that we can investigate? |
Yes, I trimmed down the project and setup a private repo - invited you as a collaborator and can add anyone else needed. There's a readme in the root with the exact command I've been running. |
@leniency Thanks. Please add @AndriySvyryd |
…e T that implements a IEnumerable<T> (such as Json.net's JArray) causes and infinity loop when adding namespaces. Added a check for the sequence type's namespace so it won't attempt to re-add.
I made some progress on this one and tracked down the specific property that was giving issues. I have several json properties around, and most of them are either strongly typed or
JArray implements
I have a fix and unit test in my fork here: Should I send this in as a pull request, or look at a different method to solve? |
@leniency Nice work. Please send a PR, but instead of stopping recursion on all known namespaces stop it when |
…eferences itself. Fixes #27301 # Conflicts: # src/EFCore.Design/Scaffolding/Internal/CSharpRuntimeModelCodeGenerator.cs
I'm having troubles with the dbcontext optimizer. The tool, both the powershell and cli versions, hang at a certain point in model generation. It doesn't proceed any further, just sits and does nothing.
The various web projects that use the DbContext work fine, it's just the optimizer. Here's an extract of the verbose logs that come out. Everything builds successfully, it logs some info about the configuration, and then hangs.
I've let it sit for 20+ minutes.
EF Core version: 6.0.1
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 6.0
Tool: dotnet-ef 6.0.1
The text was updated successfully, but these errors were encountered: