数据库项目打开时间很长

7

每当我打开包含多个数据库项目的SLN文件时,它需要很长时间(10到15分钟)才能打开。我收到的消息如下:

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没有告诉我它正在分析什么?

有没有办法加速这个过程?

1个回答

6

正在对DBMDL文件进行序列化。根据您的项目大小/复杂程度,这可能需要很长时间。例如,我们有一个150MB的项目,完成所有“操作”需要近20分钟。

我建议每个解决方案只有一个项目-它会在Temp文件夹中不断更新这些DBMDL文件,直到完成,然后将其复制到您的工作文件夹中,并可能导致相当多的磁盘活动。

我还要考虑优化这些内容-它所需的时间确实是某些情况下的障碍。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接