database project takes a long time to open

岁酱吖の 提交于 2019-12-23 09:32:45

问题


Whenever I open my SLN that has multiple database projects under it, it takes a very long time (10 to 15 mintues) to open. The messages I get are:

Analyzing database schema. Your database projects will be ready after 23000 operations are completed.
Analyzing database schema. Your database projects will be ready after 45000 operations are completed.
Analyzing database schema. Your database projects will be ready after 59871 operations are completed.
Analyzing database schema. Your database projects will be ready after 63254 operations are completed.
Analyzing database schema. Your database projects will be ready after 87698 operations are completed.

Visual Studio does not give me an indication of what it is analyzing?

Is there any way for me to speed up this process?


回答1:


It's serializing a DBMDL file. This takes quite a long time depending on the size/complexity of your project. One of ours is 150MB, for example and it takes almost 20 minutes to complete all of the "operations."

I would recommend having one project per solution - it continually updates these DBMDL files in your Temp folder until they are finished, then copies them to your working folder and can cause quite a bit of disk activity.

I'm also going to see about optimizing these - the amount of time it takes is really a roadblock in some cases.



来源:https://stackoverflow.com/questions/1255416/database-project-takes-a-long-time-to-open

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!