I imported the Stack Overflow data dump into SQL Server 2008. Some queries, especially on the Posts table, are taking more than a minute to return.
Example query:
SELECT
Id, PostTypeId, AcceptedAnswerId, CreationDate,
Score, ViewCount, Body, OwnerUserId, OwnerDisplayName,
LastEditorUserId, LastEditDate, LastActivityDate, Title,
Tags, AnswerCount, CommentCount, FavoriteCount, ClosedDate, ParentId
FROM dbo.Posts
The query returns 881665 Rows and takes just under 2 minutes to complete. I do have in index set up for this and the other tables. Is there anything I can do to speed this thing up?