3.8 RC "Reading object text" very slow
shadowbob
Posts: 71 Bronze 2
One thing I noticed after installing 3.8 RC, is that when refreshing a cache, the progress pauses for a long time on "Reading object text" -- much longer than the previous version. This makes the overall cache refresh take longer than before. Is Prompt doing more than it used to, or is there a bug?
Jeremy Fuller
VP, Software Development
Organizational Intelligence, Inc.
VP, Software Development
Organizational Intelligence, Inc.
Comments
VP, Software Development
Organizational Intelligence, Inc.
Hi,
@version), whether there are any open transactions in this database (dbcc opentran). Are you including system objects in prompt? In theory prompt should not affect SQL Compare at all (unless it keeps a lock to certain tables, which it should not do). What version of SQL Compare do you have. Also, are there any locking issues (select * from sys.dm_tran_locks)?
Background information: Reading the object text is retrieving the definition of textual objects, like stored procedures, views, constraints, etc. On 2000 it is reading these from dbo.syscomments, on 2005 it is reading from sys.sql_modules. Could you have a look how long a simple query from these tables/views takes?
Regards,
Andras
Red Gate Software Ltd.
There are no open transactions, and there aren't any very often as this is a pretty isolated dev box.
System objects are not included in Prompt for me.
I'm using SQL Compare 6.2.0.271.
SELECT * FROM sys.sql_modules took 18 seconds just now (this is across the Internet, so I certainly expect Prompt to take some time to refresh -- it just seems to have suddenly started to take longer). I'm guessing that since reading the modules is taking 18 seconds, that probably explains the issue. My schema must have grown to the point where I'm really noticing the slow down. That being said, the speed change really seemed to correlate to installing Prompt 3.8 RC, and my database schema really hasn't changed much recently. I'll examine server and/or network issues as the probable cause.
Thanks for the background information!
VP, Software Development
Organizational Intelligence, Inc.
this is using sql express 2005. running select * from sys.sql_modules only returns about 35 records and it returns them virtually instantly.