I am working on a content management webapp. I have one instance of a folder with a large amount of content in it (2500 pages), and I am noticing that when I load that folder in SQL Server the CPU on my machine spikes for 15-20 seconds while rending the folder content.
All of the content is stored in a database, so when I say "folder" that folder is represented by a record in a table, as well as each page being a record in another table.
I suspect that the query generated to get these pages from the folder is something along the lines of SELECT (some fields here) FROM page_table WHERE parentFolderId = 'theParentFolderId', which in general should be a highly optimized query because I have the parentFolderId indexed.
I have captured a trace file from this use case and run it through the profiler for suggestions on index strategies and the suggestions it makes have yet to yield any significant performance increases, so I am starting to think it is more an issue with how the server/database is set up rather than my indexing schemes or table structures.
What I am seeing is that the memory usage is not going up, however the CPU usage is spiking.
Has anyone experienced this before? Does anyone know of good resources available for tweaking SQL Server? I am running the 2005 developer edition.
Thanks for any help you can provide!
All of the content is stored in a database, so when I say "folder" that folder is represented by a record in a table, as well as each page being a record in another table.
I suspect that the query generated to get these pages from the folder is something along the lines of SELECT (some fields here) FROM page_table WHERE parentFolderId = 'theParentFolderId', which in general should be a highly optimized query because I have the parentFolderId indexed.
I have captured a trace file from this use case and run it through the profiler for suggestions on index strategies and the suggestions it makes have yet to yield any significant performance increases, so I am starting to think it is more an issue with how the server/database is set up rather than my indexing schemes or table structures.
What I am seeing is that the memory usage is not going up, however the CPU usage is spiking.
Has anyone experienced this before? Does anyone know of good resources available for tweaking SQL Server? I am running the 2005 developer edition.
Thanks for any help you can provide!