I'm experiencing a performance issue with ArcGIS Query Layer using non-sde Sql Server 2008 R2.
Actually, I'm using a rather comprehensive view that pulls and joins data from multiple databases and executes in Sql Management Studio in about three minutes and produces 170k records.
The same query used in a Query Layer definition hangs up for multiple hours. However, limiting the output to 100 records, I was able to create a query layer in ArcMap.
It would be appreciated, if somebody could provide an insight into spatial, attribute indexes and primary keys in relation to query layers. It seems to me that the issue lays in one of the above.