Comments (5)
I've noticed that EF connects to the database to when we ask it for metadata. I assume it's to check for schema updates. I don't know how to turn that off.
from breeze.server.net.
I figured it would be an EF problem. Just putting this out there, more for documentation purposes.
This is the dummy connection string I'm using. The call to Metadata with it takes about 1.6 seconds. Again, if you do this in a static, or do it once and then just use the results in a static file, that solves the problem in production.
Data Source=(LocalDb)\v11.0;Initial Catalog=dummy;Integrated Security=True;Connection Timeout=1
from breeze.server.net.
Did you set the DB Initializer to null as in the example? Without that, EF will try to create the database.
Database.SetInitializer<NorthwindDtoContext>(null)
from breeze.server.net.
I did. It still hung for about 15 seconds. Using the dummy connection string cut it down to under 2 seconds.
from breeze.server.net.
I am going to close it because I don't really think this is a problem with Breeze itself.
I would suggest that, whenever you have time, a note in the documentation that describes this way of doing things can incur a heavy delay. Either don't do it at all in production, or do it once and hold the metadata in a static and return it in the Metadata method.
from breeze.server.net.
Related Issues (20)
- bug when using contains on a literal which matches property name HOT 2
- Persistence Core has arbitrary incompatibility with Angular 7 during Migration from 3.x to 5.0 HOT 9
- [NotMapped] properties are returned when querying the entity HOT 1
- The binary operator GreaterThan is not defined for the types 'System.String' and 'System.String' HOT 3
- .NET 6 Support HOT 9
- inlineCount() does not work when is used alone HOT 3
- How comes copied sources for .net 6, 5, and 3 HOT 1
- Breeze.server and FIPS HOT 8
- EF 6 with MySql - error HOT 5
- Json Column support? HOT 2
- FEATURE REQUEST: Provide advanced OrderBy of compound Predicate HOT 1
- Support aggregate functions in queries HOT 2
- Generation of metadata fails when an entity has two properties with the same owned type. HOT 2
- Many-to-many EF metadata maps Dictionary to "Dictionary'2" which is not a valid TS class name HOT 1
- Updates cause all properties of an entity to be marked as modified HOT 8
- Cancellation Token HOT 3
- Duplicate owned entity causes MetadataBuilder to throw ArgumentException HOT 2
- Do we need .8 sln/csprojs? HOT 3
- OnActionExecutionAsync not overridable HOT 15
- enums datatype is now Int32 after migrating to .net 8 HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from breeze.server.net.