ralphberger wrote:I was having abysmally slow performance until I did two things. First, make sure you disable any .netcore logging, if you have any specified. Second, precompile Microsoft.EntityFramworkCore.dll on the server.
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\ngen install Microsoft.EntityFrameworkCore.dll
This should dramatically speed up your site.
I tried to precompile dll but it gave error
C:\Users\Administrator>%WINDIR%\Microsoft.NET\Framework\v4.0.30319\ngen install Microsoft.EntityFrameworkCore.dll
Error: The specified file or directory "Microsoft.EntityFrameworkCore.dll" is in
valid.
I tried also
C:\Users\Administrator>%WINDIR%\Microsoft.NET\Framework\v4.0.30319\ngen install C:\vhosts\domain.com\Microsoft.EntityFrameworkCore.dll
but it gave dozen of errors.